beautypg.com

Setbit, Settablepolling – Det-Tronics Mac - w/Supercard User Manual

Page 75

background image

S

ET

B

IT

S

ET

T

ABLE

P

OLLING

4.11

95-8434

This command sets the state (1) of any single bit in the PLC. Refer to the section on
addressing for the correct format of the address. This command can set any bit to
one, in any PLC accessible on the network that is not protected. The ports are num-
bered as follows:

Modem

0

Printer

1

not used for this command

Port 1

2

if you have a multi-port board

Port 2

3

these numbers apply

Port 3

4

Port 4

5

SetBit PLCNum,address

Example:

on mouseUp

SetBit 27,2,”42100/3”

end mouseUp

The EagleVision™ system uses a set of tables configured to read data from the
PLC. These tables poll the PLC in a circular nature. The system continuously starts at
table zero and polls all of the tables that have the enable bit set for the port(s) that
are used. When the last table is polled, the system starts at table zero again.
Some table(s) may only need to be polled every hour or when the operator is on a
certain screen. For example, a screen that shows the value of a timer and is not
used in any other manner. When the operator selects the screen, enable the timer
polling and when the operator leaves the screen, disable the polling of that timer.
This will reduce the highway and computer loading. If an event is configured to the
timer then the event will only trigger if the system is polling the timer and the event
becomes true.

SetTablePolling tableNumber,state

Example:

on mouseUp

SetTablePolling 14,1 — on

end mouseUp

on mouseUp

SetTablePolling 14,0 — off

end mouseUp

This manual is related to the following products: