Embedded PLC
Instruction Manual
155
Instructions Description
ASC
String Search
Use the ASC instruction to search an existing string for an occurrence of the source string.
Enter the following parameters when programming this instruction:
• Source is the string you want to find when examining the search string.
• Index is the starting position (from 1 to 82) of the source string. (An index of 1
indicates the left-most character of the string.)
• Search is the string you want to examine.
• Result is an integer where the processor stores the position of the search string where
the source string begins. If no match is found, result is set equal to zero.
ASR
ASCII String Compare
Use the ASR instruction to compare two ASCII strings. The system looks for a match in length
and upper/lower case characters. If two strings are identical, the rung is true; if there are any
differences, the rung is false.
AWT
ASCII Write
Writes a source string to the designated channel. Provides a Result integer for the status of the
write.
Channel 0 = Serial port
Channel 1 = Display
Channel 2 = Ethernet
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.
BND
Branch End
Marks the end of a branch.
BST
Branch Start
Marks the beginning of a new branch on a rung.
CLR
Clear
Sets the value of a destination word to zero.