Industrial Data Systems IDS Scale Basic User Manual

Page 47

Advertising
background image

Scale Basic 4.2E

Reference

Remarks: xxx can be any valid register number. The data is transmitted in the form:

nnnnnnnnn<cr> where nnnnnnnnn is the contents of register xxx, in a 9 character field, zero
blanked.

Example: the net weight is 1945 lb. The indicator receives R66<cr> then it transmits the

contents of the Net weight register in the form <sp><sp><sp><sp><sp>1945<cr>.


RTxxx<cr> / RQ<status>nnnn<cr>
Purpose
: automatic transfer of register data from the recipient of RT command to the sender of

the RT command.

Remarks: network systems are normally setup in a master/slave configuration. The master units

sends an RT command to the slave unit. The slave unit returns an RQ reply (RQ<scale
status><contents of register xxx><cr>) to the master unit. The RQ command sets the Qflag
true if scale weight is printable (handbook 44), stores the nnnn data into register 15, , and
then executes Scale Basic function 15.

Example: transfer the Net weight from station 25 to the master unit. In the Master unit

configure the following:
Set print label 32 = N<M10><13>RT66<13>

Note: this uses Memory10 for station ID. If Memory10 contains 25 then the following
would be sent: N25<cr>RT66<13> which translates into, select station 25, Request
Transmit of register 66 (Net weight).

Fn. 1:

Set Memory10, 25

Memory10 = station ID 25

Txcom2, Label32

Transmit RT request to station 25

End

End

of

function


The receipt of an RQ reply from the slave unit causes the slave’s Net weight to be stored in
register Memory15 and function 15 is automatically invoked.

Fn. 15:

If, Qstatus

If received data is printable weight

Copy Memory1, Memory15

Memory1 = Unit25’s Net weight

Else

Else

Set

Memory1,

0 Memory1

=

0

End

if

End

if

End

End

of

function


NOTE: On the slave station, only parameter 27 (station ID) needs to be configured. All
other functions in the slave operate automatically and in the background.


RWxxx<cr>nnnn<cr>
Purpose
: write nnnn data into register xxx.
Remarks: xxx can be any valid register number.
Example: the indicator receives: RW5<cr>150.00<cr>. The result is that register Memory5

now contains 150.00.

Advertising