Mitsubishi Electric MELSEC-Q Series User Manual page 198

Simple motion module
Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

(d)
Checking the data link status of station No.17 (head module)
SB49
SW0B1.0
Writing a digital value
X22
X1000
X1007
Enabling analog output
X21
X1000
X1007
X21
X1000
X1007
Reading the warning output flag
SM400
M22
M23
M24
X100E
X100E
Y100E
Error code display and reset processing
X100F
X25
X100F
Y100F
Program example
1) Create the following program in the project for the master station using GX
Works2.
POINT
• If a response is not received for several link scans, the station is determined as a
cyclic transmission faulty station, and the status is stored in Data link status (each
station) (SW00B0 to SW00B7).
2) Write the program to the CPU module on the master station. Then reset the
CPU module or turn off and on the power.
[Online]
[Write to PLC]
RESET
3) Set the CPU module on the master station to RUN.
RUN
MC
N0
MOV
K10000
MOV
K8000
SET
SET
RST
RST
MOV
W1008
Processing for warning output (upper limit)
Processing for warning output (lower limit)
SET
RST
BCD
W1010
SET
RST
MCR
or Power OFF
ON
11 - 12
Chapter 11 PROGRAMMING
M0
CH1 Digital value setting
W1
CH2 Digital value setting
W2
CH1 Output enable/disable flag
Y1001
CH2 Output enable/disable flag
Y1002
CH1 Output enable/disable flag
Y1001
CH2 Output enable/disable flag
Y1002
Checks CH2 warning output.
K2M20
CH2 Warning output processing
(upper limit)
CH2 Warning output processing
(lower limit)
Turns on Warning output clear.
Y100E
Turns off Warning output clear.
Y100E
Outputs the error code in BCD.
K4Y30
Error clear request
Y100F
Y100F
N0
END

Advertisement

Table of Contents
loading

Table of Contents