Interface PositionProfileConfig

Configuration for runPositionProfile.

Hierarchy

  • PositionProfileConfig

Properties

acceleration: number

Profile acceleration (0x6083:00).

deceleration: number

Profile deceleration (0x6084:00).

holdingDuration?: number

Delay, in milliseconds, to hold at the target before issuing a quick stop. Only effective when targetReachTimeout is set.

monitoringInterval?: number

Interval, in milliseconds, at which to poll the target reached bit (0x6041:00). Only effective when targetReachTimeout is set. Defaults to 1000 ms.

positionOptionCode?: number

Position option code (0x60F2:00) for a relative move. Bits 0 and 1 select what the drive adds the offset to: 0 the previous target, 1 the demand position, 2 the actual position.

When not given, bits 0 and 1 are set to 1 (demand position) and the other bits are kept. The drive resets the previous target to 0 every time it is enabled, so with 0 the first relative move after enabling goes to the target as an absolute position. With 1, a relative move starts from the drive's own target. After a move that was interrupted, for example by a quick stop, the demand position keeps the target of that move, so the next relative move goes to that target plus the offset.

0x60F2 is an on-demand object. When the value changes, the drive is taken through Switch On Disabled and Ready To Switch On to apply it, which disables the drive if it is enabled. Only used when relative is true and the firmware is v5.6.0 or newer.

relative?: boolean

If relative is true, the target is an offset. The drive adds it to the position selected by the position option code (0x60F2), see positionOptionCode. The target is written to 0x607A and the set point is applied with the relative bit (6) of the controlword set. On firmware older than v5.6.0, which ignores the relative bit, the target is added to the actual position (0x6064) and the sum is written as the absolute target position (0x607A). If relative is false, the target is used as the absolute target position (0x607A).

skipQuickStop?: boolean

Controls whether a quick stop is issued after the target is reached.

  • false (default): issues a quick stop after the target is reached and holdingDuration elapses, then waits for the CiA402 state determined by the quick stop option code (0x605A): Quick Stop Active if the code is 6, Switch On Disabled otherwise. Requires targetReachTimeout to be a positive number, otherwise an error is thrown.
  • true: the device remains in the Operation Enabled state; no quick stop is issued. If targetReachTimeout is also set, the function still waits for the target reached bit before returning, but does not stop the drive.
target: number

Target position (0x607A:00).

targetReachTimeout?: number

Time, in milliseconds, to wait for the target reached bit to be set in the statusword (0x6041:00). An error will be thrown if the target is not reached within this duration.

velocity: number

Profile velocity (0x6081:00).

window?: number

Position window (0x6067:00).

windowTime?: number

Position window time (0x6068:00).

Generated using TypeDoc