Download  Print this page

Mitsubishi Electric MELSEC-Q Series User Manual Page 123

Melsec-q/l anywireaslink master module.
Hide thumbs

Advertisement

(2) Program examples
This section provides examples of programs that read the status details and sensing level information.
Parameter of a threshold value can be written in the same way as parameter read.
(a) Example of a program that reads the status details (I/O disconnection)
The following shows an example of a program that reads the status details of the slave module (address 20)
when the start I/O number of the master module is assigned to X/Y00 to X/Y1F.
Module
DP/DN
Transmission
DP/DN
ready
short error
cable voltage
disconnection
drop error
error
Status details
2)
Status details
2)
*1
For details on the parameter storage area, refer to the following.
Page 110, Section (15) (a)
The status details of the slave module (address 20) is stored in 40th (Un\G12567) of 48 words of Parameter
storage area 6 (Un\G12528 to Un\G12575). ( Page 111, Section (15) (b))
Parameter storage location memory
number of the slave module (address 20)
Reading the status details
Interlock the read program.
Specification method using the
Status details
parameter storage location start address
storage location
Add 39 to the parameter storage location
start address of the slave module (ID 214
1)
address 20) and store the address of status
*1
details to Z 1).
1)
2)
Store the status details to D 2).
Detect the I/O disconnection of the status
error.
Turn on bit b2 of status details.
Detect the status error.
Turn on any of the bits of status details.
APPENDICES
A
of
H
121

Advertisement

Table of Contents

   Related Manuals for Mitsubishi Electric MELSEC-Q Series

This manual is also suitable for:

Qj51aw12alMelsec-l seriesLj51aw12al

Comments to this Manuals

Symbols: 0
Latest comments: