ACL (ASCII clear buffer)
The ACL instruction clears the receive and transmit buffers, and removes instructions from the ASCII queue.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L20E, L50E, and L70E controllers.
ACL

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
IN | Input | BOOL | Rung input state.
|
ACLInput | Input | ACLI | The channel to be operated, and the state of the transmit and receive buffers. Use the ACL data type to define the Channel, RXBuffer, and TXBuffer parameters for ACLInput. |
Q | Output | BOOL | Indicates when the ASCII queue clearing process is ongoing or complete.
|
Error | Output | BOOL | Indicates the existence of an error condition.
|
ErrorID | Output | UINT | A unique numeric that identifies the error. The errors for this instruction are defined in ABL error codes. |
Error code | Error description |
---|---|
03 | Transmission cannot be completed because the Clear-to-Send signal was lost. |
06 | Illegal parameter was detected. |
07 | Cannot complete ASCII send or receive because channel configuration has been shut down using the channel configuration dialog. |
08 | Cannot complete ASCII Write due to an ASCII transmission already in progress. |
09 | ASCII communication requested is not supported by current channel configuration. |
10 | The Cancel was set, stopping instruction execution. No action required. |
11 | The requested length for the string is either invalid, a negative number, greater than 82, or 0. Applies to ARD and ARL function blocks. |
14 | The ACL function block was cancelled. |
16 | Serial port is not supporting RTS or CTS control lines. |
ACL examples
ACL function block diagram example

ACL ladder diagram example

ACL structured text example

Provide Feedback