SM6_Set_Attribute - Set Drive Attribute
SM6_Set_Attribute - Set Drive Attribute
Description
Set the attribute specified by Attribute ID to the Attribute_Value passed in.
Operands
Operand
Data Type
Operand
Type
Description
SM6_Set_Attribute
SM6_Set_Attribute
Tag
Control tag for this AOI
Axis
SM6_Axis
Tag
The targeted drive
Message_Type
SINT
Immediate
Value
16#1a - Position Controller
Supervisor
16#1b - Position Controller
Attribute_ID
DINT
Immediate
Value
The index to one of these
application objects: Position
Controller Supervisor (0x24)
on page 84 or Position Con-
troller (0x25) on page 86.
Attribute_Value
DINT
Tag
The value of the attribute.
Structure
Field
Type
Description
.DN
BOOL
Set when the drive indicates the instruction has been processed.
.ER
BOOL
Set if there are any timeout or processing errors.
Operation
Scan Mode
Description
Prescan
Initialize variables and reset timeout.
Rung-condition-in is FALSE
Initialize variables and reset timeout.
Rung-condition-in is TRUE
Send a message to the SmartMotor to set the attribute spe-
cified by Attribute_ID to Attribute_Value.
Moog Animatics Class 6 EtherNet/IP Guide, Rev. B
Page 118 of 160