Bradley Smoker PLC-5 user manual Asc, Asr, Awa, Awt

Models: PLC-5

1 388
Download 388 pages 13.97 Kb
Page 329
Image 329

Instruction Set Quick Reference

D-29

 

 

Instruction

Description

 

 

ASC

STRING SEARCH

Source ST38:40

Index35

Search ST52:80

Result42

ASCII String Search

If input conditions are true, search ST52:80 starting at the

ASC

35th character, for the string found in ST38:40. In this

 

example, the string was found at index 42. If the string is

 

not found, the ASCII instruction minor fault bit S:17/8 is set

 

and the result is zero.

ASR

ASCII STRING COMPARE

Source A

ST37:42

Source B

ST38:90

ASCII String Compare

If the string in ST37:42 is identical to the string in ST38:90,

ASR

the instruction is true. Note that this is an input instruction.

 

An invalid string length causes the ASCII instruction error

 

minor fault bit S:17/8 to be set, and the instruction is false.

AWA

ASCII WRITE APPEND

Channel

0

Source

ST52:76

Control

R6:32

String Length

50

Characters Sent

 

ASCII Write Append

If input conditions go from false-to-true, read 50 characters

AWA

from ST52:76 and write it to channel 0 and append the two

 

character configuration in the channel configuration

Status Bits

(default CR/LF). The number of characters sent is stored in

EN - Enable

R6:32.POS and displayed in the characters sent field of the

DN - Done Bit

instruction display.

ER - Error Bit

 

UL - Unload

See page F-8 for a description of prescan operation for this

EM - Empty

instruction.

EU - Queue

 

 

AWT

 

 

 

 

 

 

ASCII WRITE

 

 

Channel

0

 

Source

ST37:40

 

Control

R6:23

 

String Length

40

 

Characters Sent

 

ASCII Write

If input conditions go from false-to-true, write 40 characters

AWT

from ST37:40 to channel 0. The number of characters sent

 

is stored in R6:23.POS and displayed in the characters sent

Status Bits

field of the instruction display.

EN - Enable

 

DN - Done Bit

See page F-8 for a description of prescan operation for this

ER - Error Bit

instruction.

UL - Unload

 

EM - Empty

 

EU - Queue

 

Publication 1785-UM012D-EN-P - July 2005

Page 329
Image 329
Bradley Smoker PLC-5 user manual Asc, Asr, Awa, Awt