Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(EOD).Mechatronics.pdf
Скачиваний:
81
Добавлен:
23.08.2013
Размер:
5.07 Mб
Скачать

page 537

This can also be done with an AWT (Analog WriTe) command

AWT

Channel 0

String Location ST9:0

Length 3

ST9:0 = ABC

--- This will result in ABC being printed on the terminal

31.4.1.1 - ASCII Functions

ASCII functions can be used to interpret and manipulate strings in PLCs.

These functions include,

ABL(channel, control, )- reports the number of ASCII characters including line endings ACB(channel, control, ) - reports the numbers of ASCII characters in buffer ACI(string, dest) - convert ASCII string to integer

ACN(string, string,dest) - concatenate strings

AEX(string, start, length, dest) - this will cut a segment of a string out of a larger string AIC(integer, string) - convert an integer to a string

AHL(channel, mask, mask, control) - does data handshaking

ARD(channel, dest, control, length) - will get characters from the ASCII buffer ARL(channel, dest, control, length) - will get characters from an ASCII buffer ASC(string, start, string, result) - this will look for one string inside another AWT(channel, string, control, length) - will write characters to an ASCII output

• An example of this function is given below,

Соседние файлы в предмете Электротехника