-

DEVICE_INFO

TypeFunction block
DescriptionThe function block can be used to run the DeviceInfoService of the PLCnext Technology controller from the application program. The Device Info service provides access to Device Information. The function block is executed with a rising edge at the REQ input.

The name (parameter) of the DeviceInfoService to be run is specified at the IDENTIFIER input (see below for a description of the possible parameters available for calling device information). If the function block has been executed successfully, the DONE output is set to TRUE. The result/return value of the executed DeviceInfoService is indicated at the RESULT in-/output. (The data type of the result must match to the parameter of the DeviceInfoService to be run.)

If an error occurs during execution, DONE is set to FALSE and ERROR is set to TRUE. While ERROR = TRUE, the STATUS output provides the error code.

All outputs are reset with a falling edge at the REQ input.
NotesFunction blocks have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.
ParametersInput

REQ

IDENTIFIER

Input/Output

RESULT

Outputs

DONE

BUSY

ERROR

STATUS
DeviceInfoService parametersDeviceInfoService parameters