Example - Manual - SIMATIC AX - Instructions that can be used for Freeport communication. - Siemens.Simatic.S71500.CommunicationsProcessor.PointToPoint,library

Siemens.Simatic.S71500.CommunicationsProcessor.PointToPoint library

Portfolio
SIMATIC AX
Product
SIMATIC AX
Software version
0.1.59
Edition
09/2023
Language
English (original)
Package Name
@ax/simatic-1500-pointtopoint
USING Siemens.Simatic.S71500.CommunicationsProcessor.PointToPoint;

PROGRAM ReceiveResetProgram
    VAR
        resetData : ReceiveResetData;
        receiveReset : ReceiveReset;
    END_VAR
    // set resetData
    resetData.PORT := WORD#16#115;
    // ...

    receiveReset( request := resetData.REQUEST,
                  PORT := resetData.PORT,
                  DONE => resetData.DONE, 
                  ERROR => resetData.ERROR, 
                  STATUS => resetData.STATUS);
END_PROGRAM

TYPE
    ReceiveResetData : STRUCT
        REQUEST : BOOL;
        PORT : WORD := WORD#16#0;
        DONE : BOOL; 
        ERROR : BOOL;
        STATUS : WORD := WORD#16#7000;
    END_STRUCT;
END_TYPE