Download eEXRM100e - LIYAN PLC

Transcript
ÁÁÁ
PROGRAMMABLE LOGIC CONTROLLER
EX series
24V FG 24G S/S X00 X01 X02 X03 X04 X05 X06 X07
Input
D+
Output
D-
C0 Y00 Y01 Y02 Y03 C1 Y04 Y05 Y06 Y07
ÁÁÁ
EXRM0808R/T USER’S GUIDE
ÁÁÁ
Switch Indication
$ This manual contains text, diagrams and
explanations which will guide the reader in the correct
installation and operation of Remote I/O module
EXRM0808R/T.
ÁÁÁ
ÁÁÁ
Terminal Signals
DIP
ON
1
2
3
4
5
6
8
7
SW1
ÁÁÁ
Introduction
EXRM0808R
R: Relay output; T: Transistor output
Output: 8 points
Input: 8 points
Remote I/O
EX series
- This module converts data with PLC main unit by
communication method.
- This module read X input status and store it to
BFM#00, and output Y output status to external
terminal.
ÁÁÁ
ÁÁÁ
External Dimensions
90
87
80
Unit: mm
70
80
ÁÁÁ
Item
DC input (Sink) NPN
DC input (Source) PNP
24V
24V
Circuit
ÁÁÁ
Input Specifications
VCC
24G
24G
S/S
S/S
VCC
X00
X00
Input voltage
DC24V+10%, -15%
DC24V+10%, -15%
Input current
7mA / DC24V
7mA / DC24V
Impedance
3.3KΩ
3.3 KΩ
Response time
About 10 ms(X00~X07 High speed)
About 10 ms(X00~X07 High speed)
RSW2
(two digit number)
RSW1
(single digit number)
Set station no. of RSW2, RSW1:01~99 (can’t set to 00)
Bit0 (SW1-1: Data length) 0= 7bit ; 1= 8 bit
Bit1 (SW1-2) 0= no parity ; 1= with parity
Bit2 (SW1-3) 0= odd parity ; 1= even parity
Bit3 (SW1-4) 0= 1 stop bit ; 1= 2 stop bit
Bit5,4 (SW1-6,5) 00= 9600bps
01= 19200bps
10= 38400bps
11= 57600bps
Bit6 (SW1-7) 0= computer link ; 1= Modbus
When Bit6=0, Bit7=0 Computer Link Format 1
Bit7=1 Computer Link Format 4
When Bit6=1, Bit7=0 Modbus Ascii mode
Bit7=1 Modbus Rtu mode
ÁÁÁ
BFM No.
#0
#1
#2
#3
#4
#5
#6
#7
ÁÁÁ
BFM List
Content
X input relay status
Reserved
Reserved
Reserved
Y output relay status
Reserved
Detection of disconnection
Reserved
Initial value
0
BFM#6: This value is defined by user (unit: ms). When
Input pattern No voltage contact or NPN open collector No voltage contact or PNP open collector
Circuit isolation
Photo coupler
ÁÁÁ
Output Specifications
Item
Relay output
Circuit
RY
CO
ÁÁÁ
Transistor output
TRIGGER CIRCUIT
Y0
Photo coupler
Y0
CO
Load voltage
Under AC250V DC30V
DC5V ~ 30V
Rated current
2A / 1 point
0.5A / 1 point
Rated capacity
100W
12W
Response time
About 10ms
Under 1 ms
Circuit isolation
Machine isolation
Photo coupler
♦Note: Transistor output module is without high resistor 2.2K
value is 0, this function is disable.
Example: value=1000. If there is no communication
data written in after 1000ms, I/O status will be cleared
automatically.
EXRM0808R/T-edoc0610v100
LIYAN ELECTRIC INDUSTRIAL LTD.
TEL: 886-4-25613700
FAX: 886-4-25613408
WEBSITE: http://www.liyanplc.com
E-MAIL: [email protected]
ÁÁÁ
ÁÁÁ
Modbus Ascii mode
♦Command code 03H, read N word
EX.: Read 2 word from BFM#00 of station no. 01H
continuously.
< command message >
< command message >
3Ah
01h
03h
00h
3Ah
00h
00h
02h
FAh
C
M
D
0
S
T
X
Word
Count
Start
Address
E
N
D
0
E
N
D
1
LRC
CHK0
LRC
CHK1
C
M
D
1
01h
10h
00h
04h
A A
D D
R R
1 0
C
M
D
1
C
M
D
0
87h
65h
Start
Address
95h
2’s complement of 06H : FFH-06H+1=FAH
LRC
CHK0
LRC
CHK1
E
Data
N
Data
D
BFM#01
BFM#00
1
CR
‘:’ ‘0’ ‘1’ ‘0’ ‘3’ ‘0’ ‘4’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘F’ ‘8’ (0D)
04h
00h
00h
00h
00h
F8h
E
N
D
0
LF
2’s complement of 08H : FFH-08H+1=F8H
♦ Command code 06H write one word
EX.: Write data 0084H to BFM#04 of station no. 01H.
< command message >
01h
06h
00h
04h
00h
84h
71h
0Dh 0Ah
‘:’ ‘0’ ‘1’ ‘0’ ‘6’ ‘0’ ‘0’ ‘0’ ‘4’ ‘0’ ‘0’ ‘8’ ‘4’ ‘7’ ‘1’ CR LF
A A
D D
R R
1 0
C
M
D
1
C
M
D
0
Data
Content
Data
Address
LRC
CHK0
LRC
CHK1
S
T
X
E
N
D
1
C
M
D
0
Data
Address
Data
Content
E
N
D
1
00h
04h
00h
84h
71h
C
M
D
0
Start
Address
Quantity
01h
10h
00h
04h
00h
E
N
D
1
02h
E9h
0Dh 0Ah
01h
06h
00h
00h
00h
00h
F9h
0Dh 0Ah
‘:’ ‘0’ ‘1’ ‘0’ ‘6’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘F’ ‘9’ CR LF
E
N
D
0
0Dh 0Ah
S
T
X
A A
D D
R R
1 0
C
M
D
1
C
M
D
0
The content
of data
Start
Address
E
N
D
1
< response message >
S
T
X
A A
D D
R R
1 0
C
M
D
1
C
M
D
0
E
N
D
1
E
N
D
0
‘:’ ‘0’ ‘1’ ‘8’ ‘6’ ‘0’ ‘2’ ‘7’ ‘7’ CR LF
♦ CHK (check sum) description
Ascii mode use LRC (Longitudinal Redundancy Check)
check sum. The calculation method of LRC check sum
is that add up ADR to content of last data (only get
binary from result), and get 2’s complement result, then
it is LRC check sum.
E
N
D
0
♦Exception response
In normal situation, Remote I/O device receive
command message from Master Device, and send
back a normal response message (exclude broadcast
message). If because of communication error, Remote
I/O is unable to receive correct message, or receive
correct message but is unable to handle it, then it will
send back an exception response to Master Device. (In
the exception response, the most significant bit of the
original command code is set to 1).
Following is communication command 06H and
response of exception code 02H
LRC
CHK0
LRC
CHK1
06h
C
M
D
1
Exception
code
01h
3Ah
3Ah
‘:’ ‘0’ ‘1’ ‘0’ ‘6’ ‘0’ ‘0’ ‘0’ ‘4’ ‘0’ ‘0’ ‘8’ ‘4’ ‘7’ ‘1’ CR LF
3Ah
E E
N N
D D
1 0
LRC
CHK0
LRC
CHK1
C
M
D
1
LRC
CHK0
LRC
CHK1
A A
D D
R R
1 0
The content
of BFM#04
< command message >
E
N
D
0
< response message >
S
T
X
21h
‘:’ ‘0’ ‘1’ ‘1’ ‘0’ ‘0’ ‘0’ ‘0’ ‘4’ ‘0’ ‘0’ ‘0’ ‘2’ ‘E’ ‘9’ CR LF
(0A)
01H+03H+04H+00H+00H+00H+00H=08H
A A
D D
R R
1 0
S
T
X
0Dh 0Ah
Note: calculation of response message of CHK(check sum)
3Ah
Byte
Count
Quantity
LRC
CHK0
LRC
CHK1
C
M Byte
D Count
0
03h
43h
< response message >
< response message >
3Ah 01h
04h
0Dh 0Ah
LRC
CHK0
LRC
CHK1
The content
of BFM#05
01H+03H+00H+00H+00H+02H=06H
C
M
D
1
02h
‘8’ ‘7’ ‘6’ ‘5’ ‘9’ ‘5’ CR LF
Note: calculation of command message of CHK(check sum)
S A A
T D D
R R
X 1 0
00h
‘:’ ‘0’ ‘1’ ‘1’ ‘0’ ‘0’ ‘0’ ‘0’ ‘4’ ‘0’ ‘0’ ‘0’ ‘2’ ‘0’ ‘4’ ‘4’ ‘3’ ‘2’ ‘1’
0Dh 0Ah
‘:’ ‘0’ ‘1’ ‘0’ ‘3’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘2’ ‘F’ ‘A’ CR LF
S A A
T D D
X R R
1 0
♦ Command code 10H write N word
EX.: Write data 8765H and 4321H to BFM#05 and
BFM#04 of station no. 01H
3Ah
01h
86h
02h
77h
0Dh 0Ah
♦ Exception code list
Exception
code
01
content
False command code
02
False data address
03
False data value
09
Check sum Error
13
Receive buffer overflow
14
Defective receive character (Ascii only)
15
Parity error; overrun error, framing error
E
N
D
0
ÁÁÁ
Modbus Rtu mode
ÁÁÁ
♦ Command code 03H; read N word
EX.: Read 2 word from BFM#00 of station no. 01H
continuously.
♦ Command code 10H write N word
EX.: Write data 8765H and 4321H to BFM#05 and
BFM#04 of station no. 01H
< command message >
< command message >
01h 10h 00h 04h 00h 02h 04h 43h 21h
STOP A
above D
10ms R
C
M
D
Start
Address
Word
Count
CRC CRC STOP
CHK CHK above
Low High 10ms
STOP
above
10ms
A
D
R
C
M
D
Start
Quantity
Address
Byte
Count
01h 03h 00h 00h 00h 02h XXh XXh
Content
of
BFM#04
87h 65h XXh XXh
< response message >
C
M
D
Byte
Count
STOP A
above D
10ms R
STOP
Data
Data CRC CRC
above
BFM#00 BFM#01 CHK CHK
Low High 10ms
01h 03h 04h 00h 00h 00h 00h XXh XXh
Note : Calculation of CRC check sum
Rtu mode use CRC (Cyclical Redundancy Check)
check sum. Calculation method as follows,
(1) Input content is 16bit register of FFFFH(CRC
register)。
(2) Use first byte of command message and lower byte
of 16bit to do Exclusive OR operation, and store
result to CRC register.
(3) Move content of CRC register 1bit to the right.
Maximum bit is filled 0.
(4) Check value of CRC register’s lowest bit. If it is 0,
then repeat (3). If it is not 0, then use CRC register
and A001H to do Exclusive OR operation, and store
result to CRC register.
(5) Repeat (3) and (4) until content of CRC register is
moved 8 bit to the right. At this time, this byte is
finished.
(6) Repeat (2) to (5) to byte of next command message
until all bytes are finished. Content of CRC register
is check sum.
(7) When sending CRC value, send lower bit first and
then send high bit.
♦ Command code 06H write one word
EX.: Write data 0084H to BFM#04 of station no. 01H.
< command message >
01h 06h 00h 04h 00h 84h XXh XXh
STOP A
above D
10ms R
CRC CRC STOP
Start
Data
CHK CHK above
Address Content
Low High 10ms
C
M
D
< response message >
STOP A
above D
10ms R
C
M
D
STOP
Start
Data CRC CRC
above
Address Content CHK CHK
Low High 10ms
01h 06h 00h 04h 00h 84h XXh XXh
Content CRC CRC STOP
CHK CHK above
of
BFM#05 Low High 10ms
< response message >
STOP A
above D
10ms R
C
M
D
CRC CRC STOP
Start
Quantity CHK CHK above
Address
Low High 10ms
01h 10h 00h 04h 00h 02h XXh XXh
<< Protocol format of Computer link >> Format 1
Description
Control protocol
Transmission sequence
Sum check
code
Character
area A
Message
wait time
Command
PC No.
Sum check
code
ETX
Character
area B
PC No.
PC No.
or
Error
code
NAK
Sum check
code
Character
area C
Message
wait time
Command
PC No.
Station
No.
ENQ
PC No.
Station
No.
PC No.
Transmission sequence
Station
No.
ACK
Programmable
controller
Station
No.
Note:
♦ Command code: only BR, BW, BT, WR, WW, WT, and
TT are effective
♦ Character area: only D, X, and Y are effective
Station
No.
STX
Programmable
controller
Computer
To write data
from the
computer to the
programmable
controller
Station
No.
Computer
ENQ
To read data
from the
programmable
controller to the
computer
or
Error
code
NAK
<< Protocol format of Computer link >> Format 4
Description
Control protocol
Transmission sequence
L
C
F
R
Sum check
code
Character
area A
Message
wait time
Command
PC No.
Computer
Station
No.
ENQ
PC No.
L
F
C
R
Error
code
F
R
Station
No.
ACK
Station
No.
NAK
Note: About more detailed information, please refer to user’s manual of Computer Link.
F
R
L
F
C
R
Error
code
PC No.
L
C
F
R
or
L
C
ETX
PC No.
Station
No.
NAK
L
C
Transmission sequence
Sum check
code
Character
area C
Message
wait time
Command
PC No.
Station
No.
ENQ
Programmable
controller
Sum check
code
Character
area B
or
Computer
To write data
from the
computer to the
programmable
controller
PC No.
Programmable
controller
Station
No.
STX
To read data
from the
programmable
controller to the
computer