PLC_R: Controller Read-Only System Variables

Variable Structure

This table describes the parameters of the PLC_R system variable (PLC_R_STRUCT type):

Modbus Address (1)

Var Name

Type

Comment

60000

i_wVendorID

WORD

Controller Vendor ID.

101A hex = Schneider Electric

60001

i_wProductID

WORD

Controller Reference ID.

NOTE:  Vendor ID and Reference ID are the components of the Target ID of the controller displayed in the communication settings view (Target ID = 101A XXXX hex).

60002

i_dwSerialNumber

DWORD

Controller Serial Number

60004

i_byFirmVersion[0..3]

ARRAY[0..3] OF BYTE

Controller Firmware Version [aa.bb.cc.dd]:

oi_byFirmVersion[0] = aa

o...

oi_byFirmVersion[3] = dd

60006

i_byBootVersion[0..3]

ARRAY[0..3] OF BYTE

Controller Boot Version [aa.bb.cc.dd]:

oi_byBootVersion[0] = aa

o...

oi_byBootVersion[3] = dd

60008

i_dwHardVersion

DWORD

Controller Hardware Version.

60010

i_dwChipVersion

DWORD

Controller Coprocessor Version.

60012

i_wStatus

PLC_R_STATUS

State of the controller.

60013

i_wBootProjectStatus

PLC_R_BOOT_PROJECT_STATUS

Returns information about the boot application stored in FLASH memory.

60014

i_wLastStopCause

PLC_R_STOP_CAUSE

Cause of the last transition from RUN to another state.

60015

i_wLastApplicationError

PLC_R_APPLICATION_ERROR

Cause of the last controller exception.

60016

i_lwSystemFault_1

LWORD

Bit field FFFF FFFF FFFF FFFF hex indicates no error detected.

If TM2 error is detected, the bit 1 is FALSE.

60020

i_lwSystemFault_2

LWORD

Not used.

60024

i_wIOStatus1

PLC_R_IO_STATUS

Embedded I/O status.

60025

i_wIOStatus2

PLC_R_IO_STATUS

TM2 I/O status.

60026

i_wBatteryStatus

WORD

Charge remaining in the battery.

This system variable can take the following significant values:

oFFFF hex = 100% = 3.5 V

o7FFF hex = 50% = 2.75 V

o0000 hex = 0% = 2 V

Flashing thresholds of the Batt LED:

o100% = always OFF

o50% = periodic flashing

o0% = always ON

60028

i_dwAppliSignature1

DWORD

First DWORD of 4 DWORD signature (16 bytes total).

The application signature is generated by the software during build.

60030

i_dwAppliSignature2

DWORD

Second DWORD of 4 DWORD signature (16 bytes total).

The application signature is generated by the software during build.

60032

i_dwAppliSignature3

DWORD

Third DWORD of 4 DWORD signature (16 bytes total).

The application signature is generated by the software during build.

60034

i_dwAppliSignature4

DWORD

Fourth DWORD of 4 DWORD signature (16 bytes total).

The application signature is generated by the software during build.

(1) Not accessible through the application.