GetFirmwareVersion: Returns Information About the Firmware, the Boot and the Coprocessor Versions

Function Description

This function returns the following information about the Controller:

oFirmware version

oBoot version (Kernel for firmware update)

oCoprocessor version (ASIC dedicated to embedded I/O management)

NOTE: The similar information are also available through the System Variables PLC_R.i_byFirm­Version, PLC_R.i_byBootVersion and PLC_R.i_byChipVersion

Graphical Representation

G-RU-0010328.2.gif-high.gif

 

 

IL and ST Representation

To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.

I/O Variable Description

The following table describes the output variable:

Output

Type

Comment

GetFirmwareVersion

FIRMWARE_VERSION

Firmware, Boot and Coprocessor version.

Example

This example describes how to use the structured variable to get the versions values:

VAR
       MyFirmwareVersion : FIRMWARE_VERSION;
       MyFwVersion : DWORD;
       MyBootVersion : WORD;
       MyCoProcVersion : WORD;
END_VAR
MyFirmwareVersion := GetFirmwareVersion();
MyFwVersion := MyFirmwareVersion.FwVersion;
MyBootVersion := MyFirmwareVersion.BootVersion;
MyCoProcVersion := MyFirmwareVersion.AsicVersion;