This table describes the parameters of the PLC_R system variable (PLC_R_STRUCT type):
Modbus Address (1) |
Variable 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).
Value per controller:
|
60002 |
i_dwSerialNumber |
DWORD |
Controller Serial Number |
60004 |
i_byFirmVersion |
ARRAY[0..3] OF BYTE |
Controller Firmware Version
|
60006 |
i_byBootVersion |
ARRAY[0..3] OF BYTE |
Controller Boot Version
|
60008 |
i_dwHardVersion |
DWORD |
Controller Hardware Version.
NOTE: Reserved parameter for internal use only. For the Product Version (PV), consult the product label.
|
60010 |
i_dwChipVersion |
DWORD |
Controller Coprocessor Version. |
60012 |
i_wStatus |
State of the controller. |
|
60013 |
i_wBootProjectStatus |
Returns information about the boot application stored in non-volatile memory. |
|
60014 |
i_wLastStopCause |
Cause of the last transition from RUN to another state. |
|
60015 |
i_wLastApplicationError |
Cause of the last controller exception. |
|
60016 |
i_lwSystemFault_1 |
LWORD |
Bit field A bit at low level (0) means that an error has been detected:
|
60020 |
i_lwSystemFault_2 |
LWORD |
Bit field If i_wIOStatus1 = PLC_R_IO_SHORTCUT_FAULT, the meaning of i_lwSystemFault_2 is:
|
60024 |
i_wIOStatus1 |
Embedded Expert I/O status. |
|
60025 |
i_wIOStatus2 |
TM3 I/O status. |
|
60026 |
i_wClockBatterystatus |
WORD |
Status of the battery of the RTC: 100 = Battery fully charged Not applicable for M262 Logic/Motion Controller. |
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. |
n/a |
i_sVendorName |
STRING(31) |
Name of the vendor: “Schneider Electric”. |
n/a |
i_sProductRef |
STRING(31) |
Reference of the controller. |
n/a |
i_sNodeName |
STRING(99) |
Node name on EcoStruxure Machine Expert Network. |
n/a |
i_dwLastStopTime |
DWORD |
The time of the last detected STOP in seconds beginning with January 1, 1970 at 00:00 UTC. |
n/a |
i_dwLastPowerOffDate |
DWORD |
The date and time of the last detected power off in seconds beginning with January 1, 1970 at 00:00 UTC.
NOTE: Convert this value into date and time by using the function SysTimeRtcConvertUtcToDate. For more information about Time and Date conversion, refer to the Systime Library Guide.
|
n/a |
i_uiEventsCounter |
UINT |
Number of external events detected on inputs configured for external event detection since the last cold start. Reset by a Cold Start or by the PLC_W.q_wResetCounterEvent command. |
n/a |
i_wTerminalPortStatus |
Status of the USB Programming Port (USB Mini-B). |
|
n/a |
i_wSdCardStatus |
Status of the SD card. |
|
n/a |
i_wUsrFreeFileHdl |
WORD |
Number of available File Handles. A File Handle is the resource allocated by the system when you open a file. |
n/a |
i_udiUsrFsTotalBytes |
UDINT |
User FileSystem total memory size (in bytes). It is the size of the non-volatile memory for the directory "/usr/". |
n/a |
i_udiUsrFsFreeBytes |
UDINT |
User FileSystem free memory size (in bytes). |
n/a |
i_uiTM3BusState |
TM3 bus state. i_uiTM3BusState can have the following values:
|
|
n/a |
i_ExpertIO_RunStop_Input |
BYTE |
Run/Stop input location is:
|
n/a |
i_x10msClk |
BOOL |
TimeBase bit of 10 ms. This variable is toggling On/Off with period = 10 ms. The value toggles when the controller is in STOPPED and in RUN state. |
n/a |
i_x100msClk |
BOOL |
TimeBase bit of 100 ms. This variable is toggling On/Off with period = 100 ms. The value toggles when the controller is in STOPPED and in RUN state. |
n/a |
i_x1sClk |
BOOL |
TimeBase bit of 1 s. This variable is toggling On/Off with period = 1 s. The value toggles when the controller is in STOPPED and in RUN state. |
(1) Not accessible through the application as %MW. n/a means there is no pre-defined Modbus address mapping for this system variable. |