AXIS_SET(setOfAxes,…)
Specifies a set of axes to be used with the SEND_CMD_MULTI function. If the SEND_CMD_MULTI function is used to send a command to axis numbers greater than 31, then this function must be used to pass in the specified axes to the SEND_CMD_MULTI function’s setOfAxes parameter.
Parameters
setOfAxes(DWORD)
Specifies the axes to send the command to. Each bit in the DWORD corresponds to an axis. Up to four setOfAxes parameters are allowed. The bits in each parameter correspond to an axis as follows:
Parameter: | First | Second | Third | Fourth |
---|---|---|---|---|
Bits: | 0-31 | 0-31 | 0-31 | 0-31 |
Axes: | 0-31 | 32-63 | 64-95 | 96-127 |
Return Value
The AXIS_SET function does not return a value. It can only be used directly in the SEND_CMD_MULTI function.
Remarks
Axes are numbered beginning with zero. The least significant bit (bit 0) of a hexadecimal value is on the right. For example, in the hexadecimal value 16#80000000, the most significant bit, bit 31, is set.
Examples
AXIS_SET(16#FFFFFFFF, 16#2)
Selects axes 0-33, for use in the SEND_CMD_MULTI function.
AXIS_SET(16#0, 16#0, 16#0, 16#C0000000)
Selects axes 126 and 127, for use in the SEND_CMD_MULTI function.
AXIS_SET (16#00100000, 16#100)
Selects axes 20 and 40, for use in the SEND_CMD_MULTI function.
AXIS_SET (MyDWORD0, MyDWORD1)
Uses DWORD variables to select the axes. Because there are two parameters, axes between 0 and 63 may be selected.
See Also
SEND_CMD Function | SEND_CMD_MULTI Function | Standard Functions
Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion