10
DEDICATED INSTRUCTIONS
10.4 ZP.UINI
10
- 32
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
(6) Program example
The program introduced in this section changes the intelligent function module switch
settings to the following.
The I/O signals of the QJ71MB91 are X/Y00 to X/Y1F.
Switch No.
Description
Default
Reference
Switch 1
CH1 Mode Setting
0000
H
Master function
Switch 2
CH1 Communication
speed/transmission
setting
0740
H
Communication speed: 19200bps
Data bit: 8
Parity bit presence: Present
Even/odd parity: Even
Stop bit: 1
Frame mode: RTU mode
Online change: Enable
Switch 3
CH2 Mode setting
0001
H
Slave function
Switch 4
CH2 Communication
speed/transmission
setting
0560
H
Communication speed: 9600bps
Data bit: 8
Parity bit presence: Present
Even/odd parity: Even
Stop bit: 1
Frame mode: ASCII mode
Online change: Enable
Switch 5
CH1/CH2 Station No.
setting
0200
H
CH1: Station No. 0, CH2: Station No. 2
Figure 10.20 UINI instruction program example
Processing for normal completion
Processing for error completion
Dedicated instruction start command
is changed to pulses.
Control data is cleared to "0".
Completion status is cleared to "0".
Execution type is specified.
CH1 Mode Setting (Switch 1)
CH1 Communication speed/
transmission setting (Switch 2)
CH2 Mode setting (Switch 3)
CH2 Communication speed/
transmission setting (Switch 4)
CH1/CH2 Station No. setting (Switch 5)
Execution of dedicated instruction
Normal completion (M0: ON, M1: OFF)
Error completion (M0: ON, M1: ON)
Instruction
completion
Summary of Contents for QJ71MB91
Page 1: ......
Page 2: ......
Page 366: ...App 14 Appendix 4 External Dimensions APPENDICES Memo ...
Page 371: ......
Page 372: ......