Required Libs: SysTarget
Tested on: Raspberry Pi V3.5.15.40
PROGRAM PLC_PRG VAR Result: SysTarget.RTS_IEC_RESULT; psSN: POINTER TO STRING(255); sSN : STRING(255); maxLen: DINT := 255; END_VAR
//Required Libs: SysTarget IF psSN = 0 THEN Result := SysTarget.SysTargetGetSerialNumber(ADR(psSN),ADR(maxLen)); END_IF sSN := psSN^;