Txcom1 / txcom2 (n) 237 [nnn] / 238 [nnn, Valid wt 219 – Industrial Data Systems IDS Scale Basic User Manual

Page 34

Advertising
background image

Scale Basic 4.2E

Reference

Fn. 4: All off

turn off all timers, relays, etc.

End

End

of

function.

Txcom1 / Txcom2 (n)

237 [nnn] / 238 [nnn]

Purpose: to transmit a message from serial communications port 1 / port 2.
Remarks: the Txcom instructions transmit formatted page output with n = 1, 2, 3, or 4 (for

pages 1, 2, 3 & 4). The Txcom instructions transmit labels if n = 32, 33, 34, 84, 85, 86, 87
where 32, … = print labels. The print labels can be fixed messages or can be embedded with
register data.

Embedded Code

EZ Link Entry

Keyboard Entry

Comments

any ASCII code

<nnn>

nnn

nnn = any number 0 - 255

register, min. size

<reg. name>

253, rr

rr = register number

register, 7 char. field size [reg. name]

254, rr

7 char field, right justified


NOTE1: The indicator waits for COM port 1 to complete its transmission i.e. nothing else is
processed. If COM port 1 is unable to transmit, press the Clear key to exit.

NOTE2: COM port 2 transmits each message using interrupts (the indicator continues
operation while the message is sent in the background). If a second message is sent, COM
port 2 waits up to 2 seconds for the first message to complete. Message 2 aborts after waiting
for 2 seconds. Use ‘Tx2ready’ status check before sending if all messages must be sent or if
sending only if not busy.

Example: all messages sent:

Loop1

If

not,

Tx2ready

Next1

End

if

Txcom2,

Label90


Example: send only if not busy:

If,

Tx2ready

Txcom2,

Lable32

End

if


Example: use Print label 34 to transmit ASCII -STX, Net weight, ASCII-CR. Print Net in 7

character field, right justified. Configure Print label 34: <02>[Net]<13>

keyboard entry = 02, 66, 13, 0


F1:

Txcom1, 34

transmit print label 34 out serial communications port 1.

End

end

of

function.

Valid

wt

219

Purpose: wait for valid, printable (hb44) weight. Reads scale and updates display.

Advertising