8. USAGE EXAMPLE
IMR01Y36-E2
86
8.4 Sample Programs
8.4.1 Polling I/O communication (When the SYSMAC CJ)
Polling I/O communication is called “Remote I/O communication” in OMRON PLC related
instruction manuals.
Communication requirement
Contents of communication parameter setting
Communication data items: Measured data item (IN): Measured value (PV) [Attribute ID: 1]
Set data item (OUT):
Set value (SV) [Attribute ID: 45]
Number of communication controllers: 2 modules
Number of communication data items: 13 words
Controller address:
1, 2 (Factory set value: 1 to 31)
Module address 1 and Module address 2
Action mode:
1 (Factory set value)
Address setting method: Free setting
PID/AT transfer Polling I/O communication: Invalidate
Automatic acquisition of controller address:
0 (Factory set value)
Do not execute the Automatic acquisition
The above communication parameters can be set via Explicit message communication or by the
configuration tool *.
For details, refer to
Communication parameter setting by configuration tool (P. 33)
, or
Communication parameter setting by Explicit message communication (P. 43)
.
*
Except the setting of the Action mode.
Memory allocation
Allocate the memory by using the configuration tool.
Allocation method: User-set
Data area:
Measured data item (IN) area: D00000 to D00012 (13 words)
Setting data item (OUT) area: D10000 to D10012 (13 words)