AXACT (axis actions)
The STOP input has highier priority as the START input. If a rising edge is presented to both the 'START' and 'STOP' inputs at the same time, the Stop command will be sent to the axis.
The block has the following inputs:
Input | Data type | Description |
---|---|---|
AXID | INT | Axis ID |
START | BOOL | A rising edge at this boolean input sends a start command to the axis. As soon as the block's BUSY output goes FALSE, the bit in the cyclical process image for 'axis has transport instruction' is set, and the NC has accepted the start command for the axis; however, this means neither that the axis has already started physical movement, nor that it has arrived at its target. Only when the bit for 'axis has transport instruction' has returned to zero, without any axis error having occurred in the meantime, has the logical positioning of the axis been completed. If a target position window has been set, it is possible for reaching the target position window to be evaluated as reaching the physical position. |
STOP | BOOL | A rising edge at this boolean input sends a stop command to the axis. Only when the 'axis has transport instruction' bit in the cyclical process image is set to zero has the logical positioning of the axis been completed. |
MODE | DWORD | Start mode: absolute, continuous, modulo – see below. Remark: Not all of the start modes are supported with all axis types ! |
VELOCITY | LREAL | The parameter contains the required transport speed for a following transport instruction, e.g. mm/s. |
TARGPOS | LREAL | Target position in physical magnitudes, e.g. mm, degrees |
TMOUT | TIME | ADS Timeout-Delay |
Output | Data type | Description |
---|---|---|
BUSY | BOOL | This output remains TRUE until the block has executed a command, but at the longest for the duration supplied to the ‘Timeout’ input. While Busy = TRUE, no new command will be accepted at the inputs. Please note that it is not the execution of the service but its acceptance whose time is monitored. |
ERR | BOOL | This output is switched to TRUE if an error occurs during the execution of a command. The command-specific error code is contained in ‘ErrorId’. If the block has a timeout error, ‘Error’ is TRUE and ‘ErrorId’ is 1861 (hexadecimal 0x745). Is reset to FALSE by the execution of a command at the inputs. |
ERRID | UDINT | Contains the command-specific error code of the most recently executed command. Is reset to 0 by the execution of an instruction at the inputs. The error numbers in ErrId can be consulted in the ADS error documentation |
Mode: start types (1D)
supported | Define | Set types for the actual value |
---|---|---|
all | 1 | Absolute (± travel region) |
all | 2 | Relative (± travel region) |
all | 3 | Continuous positive |
all | 4 | Continuous negative |
all | 5 | Modulo (± travel region) (can also be larger than the modulo factor) |
only Servo Axis | 272 | Continuous positive with slow manual speed |
only Servo Axis | 528 | Continuous positive with fast manual speed |
only Servo Axis | 784 | Continuous positive with rapid speed |
only Servo Axis | 288 | Relative positive by pulse width |
only Servo Axis | 544 | Relative positive at 1/1000 |
only Servo Axis | 800 | Relative positive at 1/100 |
only Servo Axis | 1056 | Relative positive at 1/10 |
only Servo Axis | 1312 | Relative positive at 1/1 |
only Servo Axis | 273 | Continuous negative with slow manual speed |
only Servo Axis | 529 | Continuous negative with fast manual speed |
only Servo Axis | 785 | Continuous negative with rapid speed |
only Servo Axis | 289 | Relative negative by pulse width |
only Servo Axis | 545 | Relative negative at 1/1000 |
only Servo Axis | 801 | Relative negative at 1/100 |
only Servo Axis | 1057 | Relative negative at 1/10 |
only Servo Axis | 1313 | Relative negative at 1/1 |
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 | PC (i386) | PlcNc.Lib |
TwinCAT v2.8.0 | PC (i386) | TcNC.Lib |