Modes
Leuze electronic
MA 258
i
65
TNT
35/7-2
4
V
11.1.3
Command mode
One specific feature is the so-called Command mode, which is defined via the output control
byte 0 (bit 0) ... and enables the control of the connected device per bit.
If the command mode is activated (command mode = 1), no data is sent by the PLC to the
Leuze end device via the gateway. The data from the MA to the PLC is transmitted in the
selected operating mode (Transparent/Collective).
With the Command mode, it is possible to set various device-specific bits in the data- or
parameter field that execute the corresponding serial commands (e.g., v, +, -, etc.). If, for
example, the version of the Leuze end device is to be queried, the corresponding bit is to
be set so that a "v" is sent to the Leuze device with the <STX> v <CR> <LF> frame.
The Leuze end device also answers the gateway with data (e.g. bar code content, NoRead,
device version, etc.) in response to most commands. The answer is immediately passed on
to the PLC by the gateway.
Notice!
The parameters available for the individual Leuze devices are listed in chapter 16.
Command mode cannot be used with hand-held scanners.
Examples for the activation of a Leuze device
In Command mode, control or output byte 0.0 is to be set for activating the Command mode.
Only the corresponding bit (control or output byte 2.1) then needs to be set for activating
and deactivating the reading gate.
7
6
5
4
3
2
1
0
0
0
0
0
0
0
0
1
Output byte 0
0
0
0
0
0
0
0
0
Output byte 1
0
0
0
0
0
0
1
0
Output byte 2
0
0
0
0
0
0
0
0
Output byte 3