Mitsubishi QJ71MB91 User Manual page 263

Table of Contents

Advertisement

9
PROGRAMMING
(b) Program example for automatic communication parameter setting
CH2 Automatic
Setting
Module
Intelligent function
READY
command
communication
module switch
operation status
setting change
status
Processing when ZP.REMTO instruction is completed in error
Processing for Automatic comm. parameter setting, normally completed
Processing for Automatic comm. parameter setting, error completed
Figure 9.37 Program example when mounted to MELSECNET/H remote I/O station
The program example is shown below.
When automatic communication parameters are set from GX Configurator-MB,
this program is not required.
9.3 Program Examples for Use in MELSECNET/H Remote I/O Network
Initializing automatic communication
parameter setting area
Setting parameter
existence(1
Target station No. (2)
Request interval timer value
(6s)
Response monitoring timer
value (5s)
Type specification of the target
MODBUS
(0100
)
H
Head buffer memory address
(2100
)
H
Target MODBUS device
head number (15000)
Access points (1024 points)
Setting parameter
existense(1
Target station No. (1)
Request interval timer value
(0)
Response monitoring timer
value (5s)
Type specification of the target
MODBUS
(0005
)
H
Head buffer memory address
(4A00
)
H
Target MODBUS device
head number (0)
Access points (100 points)
Writing parameters by REMTO instruction.
When REMTO instruction is
completed normally
When REMTO instruction is
completed with an error
CH2 Automatic communication parameter
setting, normally completed
CH2 Automatic communication parameter
setting, error completed
*1
9.3.1 Automatic communication parameters
)
H
CH2 Automatic
communication
R
device
parameter 1
R
)
H
CH2 Automatic
communication
device
R
parameter 2
R
9
- 34
9
10
11

Advertisement

Table of Contents
loading

Table of Contents