9
PROGRAMMING
9.2 Program Example for Normal System Configuration
9.2.1 Automatic communication parameters
9
- 12
9
P
R
OGRAM
M
ING
10
D
E
DICA
TED
INSTRUC
TI
ONS
11
TR
O
U
BLE
S
HOOTING
A
P
P
E
NDICE
S
INDE
X
(4) Program example
The following is an example of the sequence program required to perform the
communication shown in (2).
(a) Program example for automatic communication parameter setting
The program example is shown below.
When automatic communication parameters are set from GX Configurator-MB,
this program is not required.
Figure 9.11 Automatic communication parameter setting program example
Setting
command
Module
READY
CH2
Automatic
communication
operation
status
Initializing automatic communication
parameter setting area
Setting parameter existence (1
H
)
Target station No. (2)
Request interval timer value (6s)
Response monitoring timer
value (5s)
CH2 Automatic
communication
parameter 1
Head buffer memory address
(2100
H
)
Access points (1024 points)
Setting parameter existence (1
H
)
Target station No. (1)
Request interval timer value (0)
CH2 Automatic
communication
parameter 2
Response monitoring timer value
(5s)
Head buffer memory address
(4A00
H
)
Access points (100 points)
CH2 Automatic communication parameter setting
request/Automatic communication start request
CH2 Automatic communication parameter setting,
normally completed
CH2 Automatic communication parameter setting,
error completed
Processing for normal completion
Processing for error completion
Type specification of the target
MODBUS device (0100
H
)
R
Target MODBUS device
head number (15000)
R
Type specification of the target
MODBUS device (0005
H
)
R
Target MODBUS device head
number (0)
R
*1
Intelligent function
module switch
setting change
status
Summary of Contents for QJ71MB91
Page 1: ......
Page 2: ......
Page 366: ...App 14 Appendix 4 External Dimensions APPENDICES Memo ...
Page 371: ......
Page 372: ......