background image

Longo programmable controller LPC-2.SM7

4.3 IR learn, receive and transmit

LPC-2.SM7 module can be learned to recognize 15 different IR commands. Module enters IR learning
mode as soon as the left pair of DIP switches (S1) are not in position for "No learning - receive only" –
see table 4.

IR learn is demonstrated on the example on how to learn LPC-2.SM7 the IR command "power ON"
from third-party IR remote controller for air conditioning and store it under command 15 in the LPC-
2.SM7 internal memory. IR receive and transmit is demonstrated on the example how to verify
stored IR commands.

IR learn

Set the S1 DIP switches to the setting than corresponds to the number under which IR command will
be stored. In this example, switches must be set to setting "learning mode for command 15". Once
this is done, LPC-2.SM7 is ready to receive the IR command from the remote controller and store it
to internal memory under command 15.

Press the button on the IR remote controller which you want it to be stored under command that is
set with DIP switches on LPC-2.SM7. In this example, press "power ON" button on the IR remote
controller. Once the button has been pressed, the LPC-2.SM7 stores the IR command to internal
memory, in this example under command 15. LPC-2.SM7 will not store any other command under
command 15, unless S1 DIP switches has been changed to other setting and back to the setting
"learning mode for command 15".

IR receive

Which protocol should be used for IR receive, user can select with 

IrProtocolSel 

parameter. To check

if the IR command has been learned and stored correctly 

IrProtocolSel 

parameter must be "0".

Set the DIP switches to the setting "No learning - receive only" and than press button "power ON" on
the IR remote controller. If the received IR command corresponds to any of the IR commands stored
in the LPC-2.SM7 internal memory, the command number under which the received IR command has
been stored will be shown in the feedback parameter 

iIrCmdRecNum

. In this example, number 15

should be shown.

If 

IrProtocolSel

 is set to "0" and DIP switches to the setting "No learning - receive only" than LPC-

2.SM7 will receive learned IR commands only.
If 

IrProtocolSel

 is set to "1" and DIP switches to the setting "No learning - receive only" than LPC-

2.SM7 will receive RC-5 IR protocol only.

Be advised that during IR transmit, IR receive is blocked.

IR transmit

In order to check if the IR command that was stored can also be transmitted correctly, the LPC-
2.SM7 should be used as a substitution of the IR remote controller. On the main module, number 15
should be written to the LPC-2.SM7 command 

oIrCmdSendNum. 

This command selects IR command

which is stored under number 15 for transmit. IR transmit is executed once  

oIrCmdSend  

is set to

logical “1”. In this example, air conditioning should be turned ON.

Procedure for IR learn can be repeated for 15 different IR commands. DIP switch setting corresponds
to learning mode for one of 15 commands and IR receive only mode – see table 4.

The IR commands may also be learned during manufacturing process - consult with Smarteh.

6

Summary of Contents for LPC-2.SM7

Page 1: ...USER MANUAL Longo programmable controller LPC 2 SM7 Multisensor Version 4 SMARTEH d o o Poljubinj 114 5220 Tolmin Slovenia Tel 386 0 388 44 00 e mail info smarteh si www smarteh si...

Page 2: ...Longo programmable controller LPC 2 SM7 Written by SMARTEH d o o Copyright 2017 SMARTEH d o o User Manual Document Version 4 January 2017 i...

Page 3: ...ot include damage due to transport or because of unconsidered corresponding regulations of the country where the module is installed This device must be connected properly by the provided connection s...

Page 4: ...ONS 1 2 DESCRIPTION 2 3 FEATURES 3 4 OPERATION 4 4 1 Operational modes 4 4 2 Parameters 4 4 3 IR learn receive and transmit 6 5 INSTALLATION 7 5 1 Connection scheme 7 5 2 Mounting instructions 9 5 3 M...

Page 5: ...Longo programmable controller LPC 2 SM7 1 ABBREVIATIONS Sorted by order of appearance in document LED Light emitting diode SEL Selector IR Infrared 1...

Page 6: ...ote controller substitution for example air conditioning can be controlled from Smarteh main module via LPC 2 SM7 in parallel with remote controller On the other hand IR receive feature can be used fo...

Page 7: ...gure 1 LPC 2 SM7 multisensor Table 1 Features IR matrix sensor for temperature measurement Lux sensor for light intensity measurement IR receive transmit Mounting with integrated magnets or screws1 2...

Page 8: ...tion for transmit oIrCmdSendNum This parameter is used to select the IR learned command which will be used for transmit Type WORD Raw to engineering data 1 15 IR transmit command 1 IR transmit command...

Page 9: ...rProtocolSel is 0 When LPC 2 SM7 receives an IR command value of iIrCmdRecNum corresponds to the number of the IR learned command Value is set back to 0 after next communication cycle with main module...

Page 10: ...protocol should be used for IR receive user can select with IrProtocolSel parameter To check if the IR command has been learned and stored correctly IrProtocolSel parameter must be 0 Set the DIP swit...

Page 11: ...Longo programmable controller LPC 2 SM7 5 INSTALLATION 5 1 Connection scheme Figure 2 Connection scheme 7...

Page 12: ...5 communication fault OFF RS 485 communication OK LED2 green Power supply ON power supply OK OFF power supply missing or power off Table 4 S1 SEL for IR Switch 1 Switch 2 Switch 3 Switch 4 No learning...

Page 13: ...d 3 Connect interconnection cable to the main module LPC 2 SM7 module must be installed properly isolating any potential connection with electrical sources other than power supply from main module Imp...

Page 14: ...Longo programmable controller LPC 2 SM7 Figure 4 LPC 2 SM7 orientation Figure 5 IR matrix sensor pixel array and viewing field 10...

Page 15: ...1 derivation code 001 version code reserved for future HW and or SW firmware upgrades 3 D C 01 16 is the date code 01 week and 16 year of production Label 2 descriptions 1 S N SM7 S9 1600000003 is the...

Page 16: ...30 IR frequency carrier 38 kHz IR max pulse length in protocol used for learning 16 ms IR min pulse length in protocol used for learning 250 us IR max number of pulses for learning single IR command...

Page 17: ...r LPC 2 SM7 7 SPARE PARTS For ordering spare parts following Part Numbers should be used LPC 2 SM7 Multisensor LPC 2 SM7 P N 225SM716001001 Interconnection cable ICM x P N 203ICMxxxxxxxx Splitter SPL...

Page 18: ...GES The following table describes all the changes to the document Date V Description 15 01 17 4 Technical update 16 11 16 3 Added IR data 28 10 16 2 Parameter added in section 4 2 30 09 16 1 The initi...

Page 19: ...Longo programmable controller LPC 2 SM7 9 NOTES 15...

Reviews: