Industrial Data Systems IDS Scale Basic User Manual

Page 48

Advertising
background image

Scale Basic 4.2E

Reference

S / I
Purpose
: Status / Idle pairs are used to verify that a remote station is available to accept

commands.

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

sends ‘S’ command to the slave unit. The slave replies with an ‘I’ status if it is on line and
available. The Master receives the ‘I’ as a command to execute user function 14.

Example: scan all network addresses for available stations.

1.

Memory10 is used as the current station ID register.

2.

Print label 32 = N<M10><13>S<13> : Select station (Register 10) then send ‘S’
command.

3.

Timer1 is used to determine that a station is not responding. If it times out it activates
function 2.

4.

Function 2 decrements Memory10 and checks for end of scan.

5.

F1 activates function 1 which starts the station scan.

Timer1: 2, 2

Set for 0.2 sec time-out, activate function 2


Fn. 1:

Set Memory10, 0=255

Set current station ID = 255

Goto User2

Goto user function 2

End

End

of

function


Fn. 2:

Dec Memory10

current station ID = current station ID - 1

If positive

If not end of scan

Timer

on,

1

reset

timer

1

Txcom1, Label32

transmit next station request

Else

Else

Timer off, 1

turn off timer 1

Txcom1, Label32

deselect all stations by selecting station 0

End

if

End

if

End

End

of

function


Fn. 14:

Make id, Memory10

Make a new ID with station ID as the ID number

Goto User2

Goto user function 2

End

End

of

function

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

X0 / X1 / X2
Purpose
: to turn off continuous transmit, transmit TX2 data 1 time, or turn on continuous

transmit of TX2 data.

Remarks: EZ Link, I/O Ports, TX Format (Parameter 28) selects a data format that can be sent

out communications port 2. Parameter 27=0 or serial input command X0 turns off
continuous transmit of TX2 data. Parameter 27 = 255 or serial input command X2 turns on
continuous transmit of TX2 data. Serial input command X1 transmits TX2 data 1 time.

Advertising