BioMax2 / KBio2-Online
Installation and Programming Manual
Page
34 of 91
8.1.2. Event configuration
BioMax2
and
KBio2-Online
electronics are able to start communications to the Host
when any event occurs in the machine (e.g. a key is pressed). The following parameters
can be configured:
The following section explains the meaning of each of these configuration bytes.
ECHO
. This generates an OpCode for each status change (digital
inputs, time-locking relays and optical barrier, among others). We can configure
from which type of signal we want to obtain the Echo.
Permitted values:
- Bit 3: ECHO ON – Reset Output.
- Bit 4: ECHO ON – Status change in digital inputs.
- Bit 5: ECHO ON – Ends digital output timing (Relay, LED, buzzer).
- Bit 6: ECHO ON – Optical barrier (notifies erroneous status)
- Bit 7 (MSB): ECHO ON – Reserved (keep at 0)
- 0x00: ECHO OFF: - silent (only responds if it is asked for the digital inputs).
Default value:
- 0x50: ECHO ON, for digital inputs and optical barrier
SCI Timeout
. This configures the maximum time-out between
consecutive characters received by the terminal from the RS232 reader to be
interpreted as part of the same command frame.
Permitted values:
- 0x01 .. 0xFE: Time-out value in tenths of a second.
- 0x00, 0xFF: Automatic time-out value (from 150 ms for 9600 baud and 20 ms for
115200 baud)
Default value:
- 0xFF: Automatic time-out.
Table 4: Event configuration
No.
Description
Def.
$01
CFG_ECHO
Defines the events reported to the Host
$50
$04
CFG_
SCITimeout
Time-out of the reception of the UART from the
RS232 reader (UART1, UART0)
$FF
$0D
CFG_EventCH
Communications channel through which the elec-
tronics will generate the event frame. Refer to
$FF