![Allen-Bradley MicroLogix 1400 Скачать руководство пользователя страница 428](http://html1.mh-extra.com/html/allen-bradley/micrologix-1400/micrologix-1400_instruction-manual_2900205428.webp)
Publication 1766-RM001A-EN-P - October 2008
426
Communications Instructions
Example 1 - Local Read from a 500CPU
Message Instruction Setup
In this example, the controller reads 10 elements from the target’s (Local
Node 2) N7 file, starting at word N7:50. The 10 words are placed in the
controller’s integer file starting at word N7:0. If five seconds elapse before
the message completes, error bit MG11:0/ER is set, indicating that the
message timed out.
Target Device
Message Timeout
Defines the amount of time the controller waits for the reply before the message errors. A
timeout of 0 seconds means that the controller waits indefinitely for a reply. Valid range is
from 0…255 seconds.
Data Table Address
(500CPU and PLC5
message types)
For a Read, this is the address in the processor which is to return data.
Valid file types are S, B, T, C, R, N, L, and ST.
For a Write, this is the address in the processor which receives data.
Valid file types are I, O, S, B, T, C, R, N, L, RTC
(1)
, and ST.
Data Table Offset
(485CIF message types)
This is the word offset value in the common interface file (byte offset for PLC device) in the
target processor, which is to send the data.
MB Data Address
Specifies the Modbus address in the target device. Valid range is from 1…65,536.
Local Slave Node
Address
Specifies the node number of the device that is receiving the message. Valid range is 0…31
for DH-485 protocol, 0…254 for DF1 protocol, 0…63 for DeviceNet, or 0…247 for Modbus.
Local/Remote
Specifies whether the message is local or remote. (Modbus messages are local only.)
Parameter
Description
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive