Supported Instructions and File Types
QB Expert Alpha Controller
154
Instructions Description
ACI
String to Integer
Use the ACI instruction to convert a numeric ASCII string to an integer value between -32,768
and 32,767.
ACL
ASCII Clear Buffer
Clears the send and/or the receive buffers.
ACN
String Concatenate
Combines two strings using ASCII strings as operands. The second string is appended to the
first and the result stored in the destination.
ADD
Use the ADD instruction to add one value (source A) to another value (source B) and place the
result in the destination.
AEX
String Extract
Use the AEX instruction to create a new string by taking a portion of an existing string and
moving it to the new string.
Enter the following parameters when programming this instruction.
• Source is the existing string. The source value is not affected by this instruction.
• Index is the starting position (from 1 to 82) of the string to extract (an index of 1
indicates the left-most character of the string).
• Number is the number of characters (from 1 to 82) to extract (startis at the indexed
position). If the index plus the number is greater than the total characters in the source string,
the destination string will be the characters from the index to the end of the source string.
• Destination is the string function (ST14:X) where the extracted string is stored.
AIC
Integer to String
Converts an integer value, between -32,768 and 32,767, to an ASCII string.
AND
Performs a bit-by-bit logical AND. The operation is performed using the value at source A and
the value at source B. The result is stored in the destination.
ARD
ASCII read characters
Performs a read from a source channel and moves the value into a destination string. Provides
a Result integer for the status of the read.
Channel 0 = Serial port
Channel 2 = Ethernet port
The internal PLC supports reading from and writing to the Network Ethernet port on the Expert
controllers. Here are the rules:
If Channel ID is set to 2 then the virtual port 8786 will be used.
If a Channel ID >1024 is used then that number is the virtual port used.
Only one virtual port can be used and the first rung in the logic with an ARD or ARW command
with a Channel ID >1024 determines which virtual port will be used.
The Channel ID cannot be set to an address, it must be an integer.