You are on page 1of 44

Peter Lu

2014/6/10

Version: 1.1.3

http://zh.scribd.com/doc/162168510/Embedded-PLC-User-Guide

Wind Shear

1.

Wind Shear ............................................................................. 4


1-1 ........................................................................................... 4
1-2 ............................................................................................... 5
1-3 ............................................................................................. 14

2.

...................................................................................................... 17
2-1 ..................................................................................................... 17
2-1-1 ................................................................................................. 17
2-1-2 ................................................................................................. 18
2-1-3 ............................................................................................. 18
2-1-4 ............................................................................................. 19
2-1-5 ............................................................................................. 19
2-1-6 ..................................................................................... 20
2-1-7 ..................................................................................... 21
2-2 ............................................................................................. 22
2-2-1 I/O ................................................................................. 22
2-2-2 ................................................................................. 23
2-2-3 ................................................................................. 24
2-2-4 ............................................................................. 26
2-2-5 ............................................................................. 27
2-2-6 ............................................................................. 28
2-2-7 I/O ......................................................................... 30

3.

Modbus ..................................................................................................... 31
3-1 Modbus ..................................................................................... 31
3-2 Modbus ................................................................................. 32
3-3 ......................................................................................... 35

4.

.................................................................................................. 38
4-1 ................................................................................. 38
4-1-1 ......................................................................................... 38
4-1-2 ......................................................................................... 39
4-1-3 ............................................................................. 40
4-2 I/O ......................................................................................... 40
4-3 I/O ......................................................................................... 41
4-3-1 ............................................................................. 42
2

4-3-2 ......................................................................................... 44
4-4 RS-232 ...................................................................................... 44

1. Wind Shear
1-1

Windows XP
IP 192.168.1.x
4

IP 192.168.1.100 255.255.255.0
IP
IP
IP
WindShear

IP IP

1-2

I/O

I/O I/O
I/O I/O

Page Page Page


Page Page

Page

Page Page
Page Page

AI2AI310
DI2AI310

Page

DIDOW
M W1
Page

Page

(1)

(2)

ANDORXORNOT

TRUEFALSE

AND OR
input
AND TRUE

Uni-direction Line

Page

10

I/O
I/O

ByteWord
Double Word
I/O

11

WindShear
Group ID Machine IDGroup ID IPv4
Machine ID IPv4
keep alive

12

WindShear

SCAN
reboot
SCAN

13

1-3
IP
WindShear PLC
IP PLC HMI
IP HMI WindShear HMI
192.168.1.255 PLC keep alive
(UDP ) WindShear HMI
PLC TCP TCP keep alive
WindShear

UDP TCP
IP

RTC
PLC RTC

14

WindShear PLC
PLC RTC

PLC

Modbus
PLC Modbus RS-232 RTU TCP
PLC
PLC Modbus RTU
RS-232 baud rateparity check stop bit
115200 bps
Modbus
PLC RS-232
Modbus
RTU PLC
Modbus TCP

RS-232
PLC RS-232 6
RS-232
LCD

RS-232
RS-232/485 port port PLC
port

15

WSTP PLC

PLC

16

2.
2-1
2-1-1

0 1 1 0 ON OFF
PLC WindShear

PLC
WindShear

17

2-1-2

PLC WindShear

2-1-3
PLC M
WindShear 0 1PLC
X1 M
WindShear

18

2-1-4
0.1
0.01

PLC
WindShear
2.5
ON 2.5 ON
PLC

2-1-5

PLC

19

PLC C0 X1 C0
K10 10 C0 C0
0 1C0 Y1X2 RESET (RST)

2-1-6
PLC

20

PLC

2-1-7
WindShear I/O

Bit MByte
WordDWord
N Word DWord

21


ANDORXORNOT

2-2
2-2-1 I/O

(1) OR/AND
AND

(2) DI1 1 OFF ON DO1


1 ONDI1 ON OFF
DO1 OFF
(3) DI1 ON DI1 DO1
Group ID 0Machine ID 0
DI1 DO1

22

(1) OR/AND OR

(2) DI2 DI3 ON ON


DO2 ON
(3) OFF DO2 OFF

(1) OR AND

(2) DI4DI5 ON
DI6 ON
DO3 ON
(3) DO3 OFF

2-2-2

(1)
(2) DI7 OFF ON 1 DI7
23

ON OFF
(3) DI8 OFF ON 1
DI8 ON OFF

2-2-3

(1)
(2) DI9 OFF ON 1 DI9
ON OFF 1

(3) 1 5 DO4 ON
(4) DI10 OFF ON 1 DO4
OFF

24

DI9
DI10 DI10
DO4

(1)
0.1 0.01
(2) DI11 OFF ON 1
DI11 ON OFF 1
DO5 OFF
(3) 1 0.1 DO5 1
1 0.1 DO5

25

DI11
DO5

2-2-4

(1) WDWM
ByteW Word
DW Double Word M ON/OFF
Byte 8-bit
(2) W2 W3 5 DO5 ON 5 DO5
OFF
(3) W2 W3

(1) W4 W5 20 DO6 ON 20 DO6


OFF

26


(1) W4 W5 1 DO7 ON 1 DO7
OFF

(1) DI4 3 DI4 ON 3


3
(2) 3 W 3 W1
DO4 M1 ON

2-2-5

(1) ANDORXOR
27

(2) W4 W5 AND 2 DO8 ON


DO8 OFF

(1) W4 W5 OR 10 DO9 ON
DO9 OFF

(1) W4 W5 XOR 8 DO10 ON


DO10 OFF

2-2-6

(1)
28

(2) W6 5 DO11 ON DO11 OFF


(3) (W5W6) 5 DO12 ON DO12 OFF

(1) W7 5 DO13 ON DO13 OFF


(2) (W7W8) 5 DO14 ON DO14 OFF

(1) W9 5 DO15 ON DO15 OFF


(2) (W9W10) 5 DO16 ON DO16 OFF

29

2-2-7 I/O

(1) 0-5V 0-10V


(2) AI1 50% AO1 W1
0-10V AI1 5V AO1

30

3. Modbus
WindShear Modbus Modbus 1
Modbus RTU TCP

WindShear Modbus IP WindShear


IP 192.168.1.100 Modbus 100
Modbus (Function Code) 0x01~0x060x0F 0x10

3-1 Modbus

Modbus PLC Modbus


IP IP Modbus
PLC IP

MODBUS http://www.modbus.org/specs.php
31

Modbus
RTU
PLC Modbus RTU RS-232
RS-232
. 115200 bps

PLC Modbus RTU TCP/IP

PLC

OFF
Modbus RS-232
RTU
ON Modbus TCP Modbus RS-232
RTU

3-2 Modbus
WindShear PLC I/O IO
I/O I/O PLC
BitByteWord Double Word
I/O Modbus
I/O

32

PLC Modbus
I/O

R/W

Modbus ID

DI

1 bit

512

1-512

Digital In

DO

1 bit

R/W

512

1-512

Digital Out ( LED)

AI

2 bytes

256

1-256

Analog In

AO

2 bytes

R/W

128

1-128

Analog Out

COUNTER

2 bytes

R/W

16

129-144

TIMER

2 bytes

R/W

145-152

1 bit

R/W

512

513-1024

(DI/O) 257~512

2 bytes

R/W

32

153-184

(AI/O) 17~32

Counter 065534
9~16
0.1 6553.5 (
109 ) 5~8

WORD W1->WF1
WF

1 bit

32

513-544

W2->WF2 17~32
RESET
(NETWORK)DSP

1 bit

16

545-560

READONLY 9~16

1 byte

1024

257-1280

Time Chart
0.01

HTIMER

2 bytes

R/W

185-192

655.35 ( 10.9 )
5~8
2010/1/1
AM12:00:00

DT

4 bytes

R/W

80

705-784

DT16~80
DT

DTF

1 bit

80

561-640

DT1->DTF1DT2->DTF2
RESET

DW

4 bytes

R/W

32

785-816

17~32
DT
DT1->DTF1DT2->DTF2

DWF

1 bit

32

641-672

17~32
RESET

1 byte

R/W

64

193-256

33

Byte


PLC Modbus 0x01~0x060x0F 0x10
0x01 / 0x02 / 0x05 / 0x0F Bit 0x03 / 0x04
/ 0x06 Byte 0x10 Double Word
=0x02 (Read Discrete Inputs)() PLC
(DI)(WFNDTFDWF) Modbus

I/O

Modbus ID

DI

1-512

WF

513-544

545-560

DTF

561-640

DWF

641-672

Digital In
WORD W1->WF1W2->WF2 17~32
RESET
(NETWORK)DSP READONLY 9~16

DT DT1->DTF1DT2->DTF2
RESET
DT DT1->DTF1DT2->DTF2
17~32 RESET

=0x01 (Read Coils)()=0x05 (Write


Single Coils)=0x0F (Write Multiple Coils)
PLC (DO)(M) Modbus

I/O

Modbus ID

DO

1-512

513-1024

Digital Out ( LED)


(DI/O) 257~512

=0x04 (Read Input Registers)()


PLC (AI)(X) Modbus

I/O

Modbus ID
34

AI

1-256

257-1280

Analog In

Time Chart

=0x03 (Read Holding Registers)()


=0x06 (Write Single Register)(2 bytes) PLC
(AO)(CounterTimerWHTimerBDT
DW) Modbus

I/O

Modbus ID

AO

1-128

Counter

129-144

Timer

145-152

153-184

HTimer

185-192

193-256

DT

705-784

DW

785-816

Analog Out
Counter 065534 9~16
0.1 6553.5 ( 109 ) 5~8

(AI/O) 17~32
0.01 655.35 ( 10.9 ) 5~8

Byte
2010/1/1 AM12:00:00
DT16~80
17~32

DT DW 0x03 0x06
=0x10 (Write Multiple Registers) PLC
(DTDW)

3-3
Modbus PLC PLC
WindShear WeinTek 2
Modbus PC EasyBuilder
2

www.weintek.com
35

Pro
EasyBuilder Pro ->

HMI
PLC
PLC
PLC

PLC
TCP
RS-232 RTU

PLC
Modbus

PC
->

DOAIWDTDW I/O
WindShear

36

37

4.
PLC

I/O I/O RS-232

4-1
4-1-1

MCU 120 MHz


10/100 Mbps
RTC
SD ( 32GB) FAT32

LED
Modbus RTU TCP HMI
4

1 IP 192.168.1.100 255.255.255.0

192.168.1.1
2 RS-232 115200 bps8 bit None 1 bit Stop

Modbus
38

Modbus RTU 100


3 MCU SD

SD 1

I/O 2
I/O
6 SD SD

4-1-2

5V24V15VGND
8
RJ-11

8 DIO 4 AIO 4
RS-232

PLC
39

2 ID 2-bit

ID
3 5V

24V I/O 15V

4-1-3

2
I/O

4-2 I/O
I/O

12

8 relay
relay 10A250VAC
I/O LED
5V 24V

I/O

1~8
40

1~12+24V

relay DO
DO
TTL 0 5V
On Off

I/O

I/O I/O
1~8 I/O 9~16

4-3 I/O
I/O

8 ( 4 differential mode) 12-bit

(0-5V0-10V) (4-20
mA)

25VDC
4
12-bit

0-10V (4-20 mA)

I/O

3-4 1-2
41

Jump
1~8

Jump

4-3-1

I/O
Jump P5~P6 (pin-1, pin-2)
Jump SP1~SP8 (pin-3, pin-5)
(pin-4, pin-6)

0~10V 0~10V
42

0~5V 3, 4 3, 4
(On, Off) 0~5V 3, 4 (On, On)
0~10V 0~10V
single end() differential(
)
2 2 Off 2 Off

+24V Jump
Jump P5~P6
(pin-2, pin-3) Jump
SP1~SP8 (pin-1, pin-3)(pin-2, pin-4) Jump
PA1~PA8
0~10V
(Off, Off, On, On, Off)

I/O +5V
+5V +24V
+5V +15V
+5V+15V +24V
+5V

+15V

+24V

43

4-3-2
AIO 12-bit 0~4095 0~10V
0~4095
(V)104095
(V)409510
4~20mA 0~4095
(mA)4164095
(4)409516

4-4 RS-232
RS-232

6 RS-232
115200 bps

RS-232
RS-232/485 LCM

3
4
5
6
7
8

Bar code Star Micronics TUP5003


MiFare Sankyo Card Dispenser4
LED C-Power 52005
LCM SD-240B6
KDE MTI-10007

Suntex DC-5110RS8

http://www.starmicronics.com/printer/Kiosk_Printers/TUP500
http://www.extra.nidec-sankyo.co.jp/card/en/products/05.html
http://www.lumenchina.com
http://www.sdec.com.tw
http://www.akde.co.kr/products/3098-2
http://www.suntex.com.tw/en/Products.php
44

You might also like