7 COMMUNICATION EXAMPLE
7.1 Communication Example of the RJ71PN92 and an IO Device
35
7
Program example for data exchange
Classification Label name Description Device
Module label RCPU.stSM.bAlways_ON Always on SM400
Global label that was
updated in the
RJ71PN92
glRJ71PN92_1.stMgmtOutputs.bReq_DataExchangeStartRequest Data exchange start request W0.0
glRJ71PN92_1.SLV001SLOT003DataStructOut.SLOT003_BIT_0 Output data to IO device 1 W100.0
glRJ71PN92_1.SLV001SLOT003DataStructOut.SLOT003_BIT_1 W100.1
glRJ71PN92_1.stMgmtInputs.bSts_ConfigurationStatus Parameter setting status W1000.0
glRJ71PN92_1.stMgmtInputs.bSts_DiagnosticError Module error W1001.0
glRJ71PN92_1.stMgmtInputs.bnSts_IODevicesConnStatus[1] IO device communication status W1023.1
glRJ71PN92_1.stMgmtInputs.bnSts_IODevicesErr[1] IO device error W102B.1
glRJ71PN92_1.SLV001SLOT002DataStructIn.SLOT002_BIT_0 Input data to IO device 1 W1100.0
glRJ71PN92_1.SLV001SLOT002DataStructIn.SLOT002_BIT_1 W1100.1
glRJ71PN92_1.SLV001SLOT002DataStructIn.SLOT002_BIT_2 W1100.2
glRJ71PN92_1.SLV001SLOT002DataStructIn.SLOT002_BIT_3 W1100.3
Label to be defined Define global labels as shown below:
(7) Program to process I/O data to IO device 1