#3 Get Serial Number

Unlicensed
nobody
2020-04-08
2020-04-08
i-campbell
No

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^;

Discussion


Log in to post a comment.