Mitsubishi QJ71MB91 User Manual page 305

Table of Contents

Advertisement

10
DEDICATED INSTRUCTIONS
(6) Program example
Switch No.
Switch 1
Switch 2
Switch 3
Switch 4
Switch 5
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.
Description
Default
CH1 Mode Setting
0000
H
CH1 Communication
speed/transmission
0740
H
setting
CH2 Mode setting
0001
H
CH2 Communication
speed/transmission
0560
H
setting
CH1/CH2 Station No.
0200
H
setting
Processing for normal completion
Processing for error completion
Figure 10.20 UINI instruction program example
Reference
Master function
Communication speed: 19200bps
Data bit: 8
Parity bit presence: Present
Even/odd parity: Even
Stop bit: 1
Frame mode: RTU mode
Online change: Enable
Slave function
Communication speed: 9600bps
Data bit: 8
Parity bit presence: Present
Even/odd parity: Even
Stop bit: 1
Frame mode: ASCII mode
Online change: Enable
CH1: Station No. 0, CH2: Station No. 2
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
Instruction
completion
Normal completion (M0: ON, M1: OFF)
Error completion (M0: ON, M1: ON)
10.4 ZP.UINI
9
10
11
10
- 32

Advertisement

Table of Contents
loading

Table of Contents