com
Applications
• Home Automation
• Automatic Meter Reading
• Process Control
• Heating & Ventilation, Air conditioning Control
• Lighting Control
• Status Monitoring and Control
• Low Speed Data Communication Networks
• Intelligent Buildings
• Sign and Information Display
• Fire and Security Alarm System
• Remote Sensor Reading
• Data/File Transfer
• Fire & Security Alarm System Back View of Modem
• Power Distribution Management
Information
The module provides bi-directional half-duplex communication over the mains of any voltage up to
250V AC and for frequency 50hz or 60hz. Half Duplex communication means it can either transmit
or receive data at a time but not both at same time. Normally module is in receiving mode all the
time listening to incoming communication on the power line. Once your application gives serial data
to transmit on its RX-IN pin, it switches over to transmit and transmits the data through power line.
Once transmit process is complete it switches back to receive mode. The transmission of data is
indicated by Red LED. The reception of data by modem is indicated by Green LED which is on TX-
out pin itself. Data communication of the modules is transparent to user’s data terminals and
protocol independent, as a result, multiple units can be connected to the mains without affecting the
operation of the others. There is no hassle of building interface circuits. Interface to user’s data
devices is a simple data-in and data-out serial link.
Transmission is based on byte by byte basis. Once you give one byte to module for transmission,
you will have to wait at least 500ms(mili second) before a new byte is given to module again since
the module waits for zero crossing of AC mains to transfer a bit. For AC 50Hz system the zero
crossing of AC signals happens every 10ms and modem needs 50 zero crossings to transmit one
byte with error checking data. That is why it takes 500ms for one byte. For example we want to
transmit character “TEST”, then we will have to transmit ‘T’, then wait 500ms, then transmit ‘E’ and
wait 500ms, then transmit ‘S’ and wait 500ms, then transmit ‘T’ and wait 500ms. This can be quite
slow speed for big data transfer, but the purpose of this module is transfer of small data bytes like
sensor readings and remote control for which this speed is ok to implement.
Application Diagram
AC Power Line
5V 5V
Sunrom.com L
L
L Sunrom.com
GND GND
Customer’s PLC Modem PLC Modem Customer’s
TXD N N TXD
Device Model: 1187 N Model: 1187 Device
RXD RXD
Specs Overview
• Embedded ready-to-go Power Line Carrier Modem module with SMT components
• Small form factor for easy of system integration
• Bi-directional half-duplex data communication over the mains
• Applicable to universal mains voltage and frequency up to 250v, 50 - 60 Hz
• Protocol independent, data transfer transparent to user's data terminals
• High noise immunity and reliable data communication
• Simple serial interface to user's data devices of 9600 bps
• Built-in on board AC coupling circuit with direct connection to mains
• Built-in carrier generation and detection
• Multiple units can be connected to the power line of the distribution transformer
• TTL level serial interface to user's data devices
• Built with industrial grade components for operation under harsh environment
• Indicates Transmit and Receive with LEDs
• Built in Error Checking so it never gives out corrupt data.
AT89S52 100n U4
8051, AVR, PIC or such. Just configure your 39 21 PLC MODEM SUNROM#1187
VCC
38 P0.0/AD0 P2.0/A8 22
P0.1/AD1 P2.1/A9
microcontroller to communicate at 9600 baud rate.
TX-OUT
37 23
P0.2/AD2 P2.2/A10
RX-IN
36 24
GND
P0.3/AD3 P2.3/A11
+5V
35 25
34 P0.4/AD4 P2.4/A12 26
33 P0.5/AD5 P2.5/A13 27
The TXD pin of MCU will go to RX-IN pin of PLC
1
2
3
4
32 P0.6/AD6 P2.6/A14 28
P0.7/AD7 P2.7/A15
modem 1
P1.0/T2 P3.0/RXD
10
2 11
The RXD pin of MCU will go to TX-OUT pin of PLC 3
4
P1.1/T2EX
P1.2
P3.1/TXD
P3.2/INT0
12
13 VCC
P1.3 P3.3/INT1
modem 5
6 P1.4/SS P3.4/T0
14
15
7 P1.5/MOSI P3.5/T1 16
8 P1.6/MISO P3.6/WR 17
P1.7/SCK P3.7/RD
Ground & +5V Power Supply between PLC modem VCC
31
EA/VPP 29
and MCU should be connected. + PSEN
ALE/PROG
30
C8
10uF 16V 9
XTAL1
XTAL2
RST
GND
19
18
Y1
11.0592
C9 C10
33p 33p
U5 VCC
PLC MODEM SUNROM#1187 C16 P2
100n DB9-CONN-F
TX-OUT
U6 1
16
RX-IN
MAX232 6
GND
+5V
11 14 2
VCC
9 T1IN T1OUT 8 7
12 R2OUT R2IN 13 3
1
2
3
4
10 R1OUT R1IN 7 8
T2IN T2OUT 4
1 4 9
VCC + C+ C2+ + 5
C13 C12
10uF 16V 3 5 10uF 16V
C1- C2-
GND
2 6
V+ V-
+ C15
C14 15 +
10uF 16V
10uF 16V
VCC
RS232 INTERFACING
TX-OUT
RX-IN
RX-IN
GND
GND
+5V
+5V
1
2
3
4
1
2
3
4
USB INTERFACING
40
AT89S52 100n U9
39 21 PLC MODEM SUNROM#1187
VCC
38 P0.0/AD0 P2.0/A8 22
Source Code for this application can be P0.1/AD1 P2.1/A9
TX-OUT
37 23
P0.2/AD2 P2.2/A10
RX-IN
downloaded from product page. 36 24
GND
P0.3/AD3 P2.3/A11
+5V
35 25
34 P0.4/AD4 P2.4/A12 26
33 P0.5/AD5 P2.5/A13 27
The source code is in Keil C51 compiler.
1
2
3
4
32 P0.6/AD6 P2.6/A14 28
P0.7/AD7 P2.7/A15
1 10
P1.0/T2 P3.0/RXD
Transmit Code View 2
3 P1.1/T2EX P3.1/TXD
11
12
4 P1.2 P3.2/INT0 13 VCC
5 P1.3 P3.3/INT1 14
6 P1.4/SS P3.4/T0 15
7 P1.5/MOSI P3.5/T1 16
8 P1.6/MISO P3.6/WR 17
P1.7/SCK P3.7/RD
VCC
31 SW1 ON
EA/VPP 29 SW
+ PSEN 30
C17 ALE/PROG
10uF 16V 9
XTAL1
XTAL2
RST
GND
R2 OFF
10K SW2
20
19
18
Y2 SW
11.0592
C11 C18
33p 33p
Receive Code View
VCC
REMOTE UNIT RELAY
U10 C3
40
38 P0.0/AD0 P2.0/A8 22
P0.1/AD1 P2.1/A9
TX-OUT
37 23
P0.2/AD2 P2.2/A10
RX-IN
36 24
GND
P0.3/AD3 P2.3/A11
+5V
35 25
34 P0.4/AD4 P2.4/A12 26
33 P0.5/AD5 P2.5/A13 27
1
2
3
4
32 P0.6/AD6 P2.6/A14 28
P0.7/AD7 P2.7/A15
1 10
2 P1.0/T2 P3.0/RXD 11
3 P1.1/T2EX P3.1/TXD 12
4 P1.2 P3.2/INT0 13 VCC
5 P1.3 P3.3/INT1 14
6 P1.4/SS P3.4/T0 15
7 P1.5/MOSI P3.5/T1 16 VCC VCC
8 P1.6/MISO P3.6/WR 17 LS2
P1.7/SCK P3.7/RD 5V Relay
31 R5 5
VCC EA/VPP CN2
29 1K 3
+ PSEN 30 4
C20 ALE/PROG D3 1
10uF 16V 9 1N4007 2
XTAL1
XTAL2
RST D4
GND
LED PBT2
R3
10K
20
19
18
Y3
R4
4K7
11.0592 Q2
C19 C21 BC547
33p 33p