Program Example - Mitsubishi Electric MELSEC iQ-R AnyWireASLINK User Manual

Master module
Table of Contents

Advertisement

Program example

This section provides examples of programs that read the status details and sensing level information.
Parameters of a threshold value can be written in the same way as parameter read.
Reading the status details (I/O disconnection)
The following shows a program example that reads the status details of the slave module (address: 20) when the start I/O
number of the RJ51AW12AL is assigned to X/Y00 to X/Y1F.
Classification
Label name
Module label
RJ51AW12AL_1.bModuleREADY
RJ51AW12AL_1.bDP_DNShortError
RJ51AW12AL_1.b24V_DPShortError
RJ51AW12AL_1.bTransmissionCableVoltageDdropError
RJ51AW12AL_1.bDP_DNDisconnectionError
Label to be defined
Define global labels as shown below:
Description
Module READY
DP/DN short error
24V/DP short error
Transmission cable voltage drop error
DP/DN disconnection error
3.2 Communication Example When the Slave Module is Added or Deleted
Device
X0
X1
X2
X3
X4
3 PROGRAMMING
69
3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r seriesMelsec iq anywireaslink rj51aw12al

Table of Contents