Instruction Set Quick Reference

D-27

 

 

ASCII Instructions

Status Bits:

EN - EnableEM - Empty Bit

DN - Done BitEU - Queue

ER - Error BitFD - Found Bit

Instruction

 

 

Description

 

 

 

 

 

ASCII Test for Line

If input conditions go from false-to-true, the controller

 

 

ABL

 

 

 

ASCII TEST FOR LINE

ABL

reports the number of characters in the buffer, up to and

 

 

including the end-of-line characters and puts this value into

 

Channel

0

 

 

 

the position word of the control structure (R6:32.POS). The

 

Control

R6:32

 

controller also displays this value in the characters field of

 

Characters

 

 

the display.

 

 

 

 

 

 

 

 

 

 

 

 

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

 

 

 

 

 

 

instruction.

 

 

 

 

 

 

 

 

 

 

 

 

ASCII Characters in

If input conditions go from false-to-true, the controller

 

 

ACB

 

 

 

 

 

 

 

ASCII CHARS IN BUFFER

Buffer

reports the total number of characters in the buffer and puts

 

ACB

this value into the position word (.POS) of the control

 

Channel

0

 

 

structure. The controller also displays this value in the

 

Control

R6:32

 

 

 

characters field of the display.

 

Characters

 

 

 

 

 

 

 

 

 

 

 

 

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

 

 

 

 

 

 

 

 

 

 

 

 

instruction.

 

 

 

 

 

 

 

ACI

STRING TO INTEGER CONVERSION

Source ST38:90

DestN7:123

75

Convert ASCII String to Integer ACI

If input conditions are true, the controller converts the string in ST38:90 to an integer and stores the result in N7:123.

Status

Description

Bit

C

set if a carry was generated during the

 

conversion; otherwise resets

 

Vset if source is > 32,767 or < -32,768, otherwise resets

Z

set if source is zero; otherwise resets

Sset if destination is negative; otherwise resets

ACN

STRING CONCATENATE

Source A

ST38:90

Source B

ST37:91

Dest

ST52:76

ASCII String

If input conditions are true, the controller concatenates the

Concatenate ACN

string in ST38:90 with the string in ST37:91 and store the

 

result in ST52:76.

Publication 1785-UM012D-EN-P - July 2005

Page 327
Image 327
Bradley Smoker PLC-5 user manual Ascii Instructions, Abl, Acb