Serial communications port 2 input – Industrial Data Systems IDS Scale Basic User Manual

Page 46

Advertising
background image

Scale Basic 4.2E

Reference

Example2: a bar code reader is used to read the tare weight for the scale. Setpoint 1 is

configured to trigger when a bar-code message is received. Function 1 reads the bar-code
data into the Tare register.


Setpoint1: Upper register = True, Lower register = Barcode, Function = User1.


Fn. 1:

Get data, Tare

read bar-code data into the tare register.

End

End

of

function

Serial Communications Port 2 Input

Purpose: execute commands received by communications port 2.
Remarks: Communications port 2 operates by it’s own event scanner. It operates in the

background (unnoticed by the operator). The following commands are recognized by
communications port 2:
NOTE: xxx = 3 digit number(1..255), nnnn = up to 10 digit number, <cr> = ASCII carriage
return (13)


CR, CU, CV, CW
Purpose
: Read and write configuration data. These commands are used by EZ Link only.
Fxxx<cr>
Purpose
: execute scale basic function xxx.
Remarks: this instruction provides remote control of any indicator function by way of scale

basic functions.

Example: the indicator receives F130<cr>. Function 130 is executed (Zero the scale).

The indicator receives F2<cr>. User function 2 is executed.


Nxxx<cr>
Purpose
: select station number xxx.
Remarks: Port 2 can be assigned a station ID (EZ Link: I/O Ports / Station ID. Configuration

parameter 27). If the station ID is between 1 and 254 then port 2 powers up in network
mode. In network mode, the port 2 transmitter is turned off and no commands are accepted
until a station select is received.

Example: Station ID is 125. The following commands are received:

N120<cr>F2<cr>

The indicator does nothing because its station ID has not been selected.

N125<cr>F5<cr>N110<cr>F10<cr>

The indicator is selected, executes function 5 and is then deselected when it receives the
N110<cr> command.


RRxxx<cr>
Purpose
: transmit contents of register xxx.

Advertising