Longo programmable controller LPC-2.CR1
4 OPERATION
Operation of the CR1 module is also dependent on parameters received on RS-485 communication
channel.
Reader RFID field is active always when module is powered up. If tag is put inside RFID field, reader
tries to resolve RFID tag code. If code is read successfully, module activates status iIDNew,
generates a short beep, OK LED1 blinks and code is transmitted in iIDW1 - iIDW3 status fields. In
MCU application this code can be read out and authenticated. If code has appropriate rights, MCU
should activate oOK command. If code is not authorized, MCU application should activate oFault
command. Regarding command received, following action are triggered on module:
oOK --> OK LED2 blink, short beep.
oFault --> Fault LED1 blink, long beep.
Either command is received or no command is received within 10 sec, module clears iIDNew status
and waits for next RFID tag. While CR1 module is waiting for authorization response, new RFID tags
can not be read.
4.1 Parameters
If parameter is set to logical “1”, is considered to be active, enabled or set. If parameter has
logical value “0” is considered to be inactive, disabled, or cleared.
Parameter can be feedback or command. Parameter as feedback means that CR1 module is sending
information to MCU. On the other hand, command represents request from MCU to module.
Command:
ID Fault [oFault]: Command for rejecting authorization of RFID code.
ID OK [oOk]: Command for authorization of RFID code.
uzzer [oBuzz]: While this command is active, buzzer is active.
'Fault' ID LED [oFaultLD]: While this command is active, fault LED1 is set.
'OK' ID LED [oOkLD]: While this command is active, OK LED2 is set.
Card Type Select [oSelTyp]: 0 Emarine; 1 hitag.→ →
Feedback:
RFID ID Word1 [iDW1]: Upper (most significant) third of RFID code.
RFID ID Word2 [iDW2]: Middle third of RFID code.
RFID ID Word3 [iDW3]: Lower (least significant) third of RFID code.
New ID [iIDNew]: When new RFID tag is recognized, this status is set active for 10sec or till
authorization command is received (oOK or oFault).
Communication [iComm]: Normal state is “0”. If set, there is communication error or no
communication established.
'Up-right' T [iUp TB]: signal from button located up-right corner (this button is disabled
by default and can be enable in EPROM).
'Up-left' T [iUpLTB]: signal from button located up-left corner (this button is disabled by
default and can be enable in EPROM).
4