Vicking electronics
Pag. 19
OFFLINE parameter example
A complete record in the TXT file contains all settings
The timebase is transmitted automatically every 4 sec.
after the first use of the ‘/’ parameter in the print
instruction.
TXT record 5: 011700
PRINT $ADRES,/5 : SEND
Activate reader mode
21
(dec)
16
(dec)
In the old WORKmates the readers are only active in a special mode. These commands (21 for proximity &
magnetic cards, 16 for barcodes) are used in the WORKmate 36 to switch on the reader mode.
The new WORKMATE II is always ready to read barcodes or proximity cards, you don’t have to use these
codes anymore. Be careful when programming an application, it is now possible that you read a barcode in an
input that doesn’t need barcodes. You must now test for reader data in every input and discard it new you
don’t need it.
To be compatible with older software you can set the mode to ‘SOFTWARE ENABLED’, in this mode the
readers are only active if they are activated by these codes. See ‘Barcode & Prox. reader mode’ in the setup
menu.
ONLINE example
Transmit: 29Read barcode16
Clear screen, display ‘Read barcode’, Activate barcode
OFFLINE direct example
CHAIN $BARCOD%16
PRINT $ADRES,$BARCOD : SEND
OFFLINE parameter example
Make field 3 in a TXT file record 00=no reader
01=barcode 02=proximity
TXT record 5: 170101Read barcode
PRINT $ADRES,-5 : SEND
The input port commands
The 2 inputs on the Input/Output board can be used with the following methods. It depends on the application
which method is the best.
§
Read out the input levels directly.
Use this when you don’t want to know when the change occurs, but just the current status.
§
The workmate waits for a change on the input line after it receives one of the ‘input detect‘
commands. Use this if you know when the input needs to change and you want to limit the amount of
function codes the WORKmate transmits.
§
Let the workmate send a function code automatically, during every change on the input line.
Use this if you don’t know when the input is going to change. The chance that you miss input data is
smaller with this method. Don’t use this method on a device that can generate of lot of pulses, you
can overwhelm the concentrator network with the constant transmission of input change codes.
This mode is switched off by default, see ‘input port 1 message mode’ in the setup menu how to
activate it.