FB_ASI_WriteParameter
VAR_IN_OUT
VAR_IN_OUT
stParameterBuffer: ST_ParameterBuffer;
END_VAR
stParameterBuffer: Data buffer for background communication
VAR_INPUT
VAR_INPUT
iParameternumber :WORD;
iParametervalue :DWORD;
bStart :BOOL;
END_VAR
iParameterNumber: parameter number
iParametervalue: Parameter value
bStart: The respective task is carried out via a rising edge at this boolean input
VAR_OUTPUT
VAR_OUTPUT
bBusy :BOOL;
bErr :BOOL;
iErrornumber :DWORD; (*errorcode of ASI-Master*)
END_VAR
bBUSY: This output remains TRUE until the block has executed a command. While Busy = TRUE, no new command will be accepted at the inputs. Please note that it is not the execution of the service but its acceptance whose time is monitored.
bErr: This output shows the error status
iErrornumber: Contains the command-specific error code of the most recently executed command. Is reset to 0 by the execution of an instruction at the inputs.
iParameterReadvalue: I/O ID or ID code of the addressed slave
Requirements
Development environment | Target system type | IO Hardware | PLC libraries to include |
---|---|---|---|
TwinCAT Version >= 2.8.0 Build > 739 | PC (i386) | ASI master terminal | TcIoFunctions.Lib ( Standard.Lib; TcBase.Lib; TcSystem.Lib; TcUtilities.Lib are included automatically ) |