8. USAGE EXAMPLE
IMR01Y09-E3
78
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]
Setting data item (OUT): Set value (SV) [Attribute ID: 45]
Number of communication controllers: 2 controllers
Number of communication words:
7 words (Factory set value)
Controller address:
1, 2 (Factory set value: 1 to 31)
Address of controller 1 and controller 2
Action mode:
0 (Factory set value)
Address setting method: Continuous setting
PID/AT transfer polling I/O communication: Invalid
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, see
Communication parameter setting by configuration
tool (P. 33)
, or
Communication parameter setting by Explicit message communication
(P. 41)
.
*
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 D00006 (7 words)
Setting data item (OUT) area: D10000 to D10006 (7 words)
Data which a master receives [Response: measured data items (IN)]
No.
Items
Storage location of read data
1 Receive
counter
D00000
2
Alarm state (Controller 1 to 16)
D00001
3 Alarm
state
(Controller 17 to 31, Setting update flag)
D00002
4
RUN/STOP state (Controller 1 to 16)
D00003
5
RUN/STOP state (Controller 17 to 31)
D00004
6
Measured value (PV) [Controller 1]
D00005
7
Measured value (PV) [Controller 2]
D00006
Communication data Nos. 1 to 5 (corresponding to 5 words) are fixed communication data items.