Allen-Bradley devicenet modules in logix5000 control systems Manual Do Utilizador

Página de 239
Publication DNET-UM004A-EN-P - March 2004
Control a Device        7-17
Define the Source or Destination Data
In general:
• Use the DINT data type for the source or destination tag, even 
when you set or get less than 4 bytes.
• Make sure the source value stays within the minimum and 
maximum values for the parameter that you are setting.
When setting a value, the CIP Generic MSG instruction takes only the 
specified number of bits from the source tag.
tag that controls the instruction 
• Scope – controller
• Data type – MESSAGE
• The tag cannot be part of an array or a 
user-defined data type.
source or destination for the data that the 
instruction sets or gets
• Scope – controller
• Data type – In general, use the DINT 
data type, even when you set or get 
less than 4 bytes.
• Value – Make sure the source value 
stays within the minimum and 
maximum values for the parameter 
that you are setting.
number of bytes (only if setting a value)
MySource_1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
For example, if Source Length = 1 byte, then the CIP Generic MSG
instruction sends the first byte of MySource_1.