FB_ASI_Processdata_digital
VAR_IN_OUT
VAR_IN_OUT
stParameterBuffer: ST_ParameterBuffer;
END_VAR
stParameterBuffer: Data buffer for background communication
VAR_INPUT
VAR_INPUT
iSlaveaddress :BYTE;
iSlavevalue :WORD;
bParametermode :BOOL; (*0: Read, 1: Write *)
bCycleMode :BOOL; (*0: Cyclic (permanent Read/Write), 1: Acyclic *)
bCommMode :BOOL; (*0: parameter access, 1: ADS*)
bRegComm :BOOL; (* Register communication: 0: parameter access, 1: Register communication *)
bmaskAccess :BOOL; (*0:usual access, 1:mask access*)
bStart :BOOL;
END_VAR
iSlaveaddress: slave address
iSlavevalue: process value
bParametermode: 0: Read, 1: Write
bCycleMode: 0: Cyclic (permanent Read/Write), 1: Acyclic
bCommMode: 0: parameter access, 1: ADS (currently always 0)
bRegComm: Register communication: 0: parameter access, 1: register communication (currently always 0)
bmaskAccess: 0:normal access, 1:masked access
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*)
iReadValue :WORD;
iParametergroup :WORD;
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.
iReadvalue: process value
iParametergroup: parameter group
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 ) |