Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Jack H.Integration and automation of manufacturing systems.2001.pdf
Скачиваний:
80
Добавлен:
23.08.2013
Размер:
3.84 Mб
Скачать

page 202

SQO

File B3:0

Mask 003F

Destination O:000

Control R6:0

Length 4

Position 0

B3:0

0

0

0

0

0

0

0

0

0

0

0

0

1

1

0

0

 

0

0

0

0

0

0

0

0

0

0

0

0

1

0

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

0

0

0

0

1

0

0

0

0

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B3:3

0

0

0

0

0

0

0

0

0

0

0

1

0

0

0

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

green - EW

yellow - EW

red - EW

green - NS

yellow - NS

red - NS

 

 

 

 

 

 

 

 

 

 

 

7.19 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