beautypg.com

Logtoprinter, Resetbit, Xcmd's & xfcn's l – Det-Tronics Mac - w/Supercard User Manual

Page 74

background image

XCMD's & XFCN's

L

OG

T

O

P

RINTER

R

ESET

B

IT

4.10

This command “Logs” any event in a text format. This command will log the data
passed to the printer. The data will be time stamped when it is logged.

LogToPrinter theThingToLog

Example:

on mouseUp

LogToPrinter “The operator activated the button”

end mouseUp

on mouseUp

LogToPrinter someContainerThatHoldsAValue

end mouseUp

This command resets the state (0) of any single bit in the PLC. Refer to the section
on addressing for the correct format of the address. This command can set to zero
any bit, in any PLC accessible on the network that is not protected. The ports are
numbered 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

ResetBit PLCNum,portNum,,address

Example:

on mouseUp

ResetBit 27,0,”42010/3”

end mouseUp

95-8434

This manual is related to the following products: