TrigTBusCycle
The "TrigTBusCycle" can be used to trigger an additional terminal bus cycle from the PLC task.
FUNCTION TrigTBusCycle : INT
VAR_INPUT
VAR_INPUT
iProcessImage : UINT;
END_VAR
iProcessImage: the number of the process image. Permitted values 0-3.
The error codes are encoded in the return parameter of the function as follows:
Return value | Description |
---|---|
0 | No error |
1 | Terminal bus error |
2 | Access was refused. Terminal bus is active. |
3 | Process Image not initialized |
-2 | Invalid number for the process image. The permitted range is 0 - 3 |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 and above | BCxxxx (165) | PlcSystemBC.Lb6 |