Longo programmable controller LPC-2.CH1 special module
3 OPERATION
Operation of the CH1 module is also dependent on parameters received on RS485 communication
channel.
If RFID card is inserted into slot, reader tries to resolve RFID tag code. If code is read successfully,
module activates status
iIDNew
and sends RFID code in
iIDW1-iIDW3
status fields. Code is send out
until key-card is removed from slot.
While
iIDNew
status is active and
oOK
or
oFault
is activated, corresponding LED is turned on. (LED3
OK or LED4 fault respectively). This state is sustained until key-card is removed.
Each press on a TB1 or TB2 toggles status
iDNDist
or
iRServ
respectively.
By activating commands
oOkLD, oFaultLD
oDNDist
,
oRServ
corresponding LED is turned-on (LED3,
LED4, LED1, LED2).
CH1 module LED's intensity can be adjusted from MCU application also. By default their intensity is
set to 75%. While
oEnInts
status is active, LED's intensity can be adjusted by changing
oLdInts
parameter.
3.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 status or command. Parameter as status means that CH1 module is sending
information to MCU. On the other hand, command represents request from MCU to module.
iComm:
Normal state is “0”. If set, there is communication error or no communication established.
iIDNew:
When new RFID tag is recognized while inserted into CH1 slot, this status is set active till
RFID card is not removed from the CH1 slot.
iDNDist:
Active status denotes user has requested “do not disturb” message to be displayed - LED1
iRServ:
Active status denotes user has requested “room service” message to be displayed - LED2
oBuzz: While this command is active, buzzer is active.
oOK:
Command for authorization of RFID code.
oFault:
Command for rejecting authorization of RFID code.
oDNDist
: Command for activation of “do not disturb” message, do not disturb LED1 is toggled
oRServ
: Command for activation of “room service” request, room service request LED2 is toggled
oOkLD
: While this command is active, OK LED4 is set.
oFaultLD
: While this command is active, fault LED3 is set.
oEnInts
: Enables changing LED's intensity together with oLdInts value.
oLdInts
: Command for setting LED intensity. Only valid while
oEnInts
active.
iIDW1
: Upper (most significant) third of RFID code
iIDW2
: Middle third of RFID code
iIDW3
: Lower (least significant) third of RFID code
3