ecd8215 ethercat digital i/o module - automation
TRANSCRIPT
ECD8215
EtherCAT Digital I/O module
User's Manual (V1.0)
健昇科技股份有限公司
JS AUTOMATION CORP.
新北市汐止區中興路 100號 6樓
6F., No.100, Zhongxing Rd., Xizhi Dist., New Taipei City, Taiwan
TEL:+886-2-2647-6936
FAX:+886-2-2647-6940
http://www.automation.com.tw
E-mail:[email protected]
1
Correction record
Version Record
1.0 firmware version 1.0 up
2
Contents
1. Forward ................................................................................................................................................ 4
2. Features ................................................................................................................................................ 5
3. Specifications ....................................................................................................................................... 6
3.1 Digital input ................................................................................................................................ 6
3.2 General ........................................................................................................................................ 6
4. Layout and dimensions ........................................................................................................................ 7
4.1 ECD8215 Layout ........................................................................................................................ 7
5. Pin definitions ...................................................................................................................................... 8
5.1 JM0 pin definitions ..................................................................................................................... 8
5.2 JM1 pin definitions (Input connector) ........................................................................................ 8
5.3 JM2 pin definitions (Input connector) ........................................................................................ 9
6. I/O Interface diagram ......................................................................................................................... 10
6.1 Input diagram ............................................................................................................................ 10
7. Applications ....................................................................................................................................... 12
8. Ordering information ......................................................................................................................... 13
9. ECD8215 Basic specifications........................................................................................................... 14
10. List of registers .................................................................................................................................. 15
11. Comment register ............................................................................................................................... 16
3
Warranty
The product ECD8215 is warranted against defects in materials and workmanship for a period of
two years from the date of shipment, as evidenced by receipts or serial no. on board. JS automation Corp.
will, at its option, repair or replace product that proves to be defective during the warranty period. This
warranty includes parts, labor and shipping costs of returning.
Except as specified herein, JS automation Corp. makes no warranties, express or implied, and
specifically disclaims any warranty of merchantability or fitness for a particular purpose. Customer’s
right to recover damages caused by fault or negligence on the part of JS automation Corp. shall be
limited to the amount theretofore paid by the customer. JS automation Corp. will not be liable for
damages resulting from loss of data, profits, use of products, or incidental or consequential damages,
even if advised of the possibility thereof. This limitation of the liability of JS automation Corp. will
apply regardless of the form of action, whether in contract or tort, including negligence. Any action
against JS automation Corp. must be brought within one year after the cause of action accrues.
JS automation Corp. shall not be liable for any delay in performance due to causes beyond its
reasonable control. The warranty provided herein does not cover damages, defects, malfunctions, or
service failures caused by owner’s failure to follow the JS automation Corp. installation, operation, or
maintenance instructions; owner’s modification of the product; owner’s abuse, misuse, or negligent acts;
and power failure or surges, fire, flood, accident, actions of third parties, or other events outside
reasonable control.
If any defect occurs, you should email to us ([email protected]) as the following
form to get the fast response:
Detailed Company Information
Company/Organization:
Contact Person:
E-mail:
Address:
Country:
Tel/Fax:
Web Site:
Product information
product model:
serial no.:
Environment to Use: such as CPU board, Operating System, target application...
description of defect: (as detail as possible)
4
1. Forward
Thank you for your selection of EtherCAT module ECD8215 digital input interface.
Thanks to the booming of network, EtherCAT become a reliable and low cost solution of real
time control data communication standard. To utilize the EtherCAT as data communication highway
of industrial control devices is more attractive than ever.
ECD8215 module is a multifunction digital input control module. We provide the dll’s of
Window’s or Linux system, enabling you to code the flexible application as if it is an add-on card
without the knowledge of EtherCAT protocol. But for the expert of EtherCAT, you can also use the
basic EtherCAT command to your application.
Stable, high reliability and remote addressable module give you a new approach of application.
In the same series:
ECD8208 EtherCAT DIO module, 8 photo isolated input and 8 relay output
ECD8216N EtherCAT DIO module, 16 photo isolated input and 16 photo isolated NMOS output
ECD8216P EtherCAT DIO module, 16 photo isolated input and 16 photo isolated PMOS output
ECD8217N EtherCAT DIO module, 32 photo isolated NMOS output
ECD8217P EtherCAT DIO module, 32 photo isolated PMOS output
Any comment is welcome,
please visit our website
http://www.automation.com.tw/
http://www.automation-js.com/ for the up to date information.
5
2. Features
- EtherCAT compliant slave module
- Bi-directional photo-coupler input with multiple input configuration
- Digital I/P as counter input
- EtherCAT distributed clock (DC) function enabled
- No extra real time master stack software
- Easy to program as if traditional add-on card
6
3. Specifications
3.1 Digital input
3.1.1 Photo isolated input :32
3.1.2 Logic high level: 3mA(max)
3.1.3 Logic low level: 6mA(min)
3.1.4 Counter input : any digital input
3.1.5 Counter speed : 100Hz (max) square wave
3.2 General
3.2.1 Power requirement: 24Vdc (18-36Vdc) 0.5A
3.2.2 Operation Temperature: 0 ~ +70 degree C
3.2.3 Storage Temperature: -20 ~ +80 degree C
3.2.4 Operation Humidity: 5~95% RH, non-condensing
3.2.5 Dimension: 158(D)*120(W)*58(H) mm
6.3(D)*4.8(W)*2.3(H) in
7
4. Layout and dimensions
4.1 ECD8215 Layout
JM0: external power 18-36Vdc connector
JM1、JM2 : Input connector
DISP0: CardID or module address display
OK: system active LED, flashing per second
RUN: ESC (EtherCAT slave controller) status LED, while
LED off: ESC initialization
LED blinking (slow): ESC in pre op state
LED single flash: ESC in safe op state
LED on: ESC in op state
LED flickering(fast): ESC in bootrap state
ERROR: ESC (EtherCAT slave controller) error LED, while
LED off: ESC no error
LED flickering (fast): ESC error in bootrap state
LED blinking (slow): ESC error in pre op state
LED single flash: local application error
LED double flash: master is disconnected
LED on: local controller fail
P0: EtherCAT RJ45 input socket
P1: EtherCAT RJ45 output socket
Input LED: Input status display
8
5. Pin definitions
5.1 JM0 pin definitions
+V External power supply +24V(18-36Vdc)
G External power supply ground
FG Frame ground for the device
5.2 JM1 pin definitions (Input connector)
COM0 Common reference of input port0 COM1 Common reference of input port1
IN00 input point 0 of port 0 IN10 input point 0 of port 1
IN01 input point 1 of port 0 IN11 input point 1 of port 1
IN02 input point 2 of port 0 IN12 input point 2 of port 1
IN03 input point 3 of port 0 IN13 input point 3 of port 1
IN04 input point 4 of port 0 IN14 input point 4 of port 1
IN05 input point 5 of port 0 IN15 input point 5 of port 1
IN06 input point 6 of port 0 IN16 input point 6 of port 1
IN07 input point 7 of port 0 IN17 input point 7 of port 1
Dry ground of
Dry contact input or 5V TTL input
Dry ground of
Dry contact input or 5V TTL input
for the input connection, please refer 6.1 Input diagram
9
5.3 JM2 pin definitions (Input connector)
COM3 Common reference of input port3 COM2 Common reference of input port2
IN30 input point 0 of port 3 IN20 input point 0 of port 2
IN31 input point 1 of port 3 IN21 input point 1 of port 2
IN32 input point 2 of port 3 IN22 input point 2 of port 2
IN33 input point 3 of port 3 IN23 input point 3 of port 2
IN34 input point 4 of port 3 IN24 input point 4 of port 2
IN35 input point 5 of port 3 IN25 input point 5 of port 2
IN36 input point 6 of port 3 IN26 input point 6 of port 2
IN37 input point 7 of port 3 IN27 input point 7 of port 2
Dry ground of
Dry contact input or 5V TTL input
Dry ground of
Dry contact input or 5V TTL input
for the output connection, please refer 6.1 Input diagram
10
6. I/O Interface diagram
6.1 Input diagram
I/P WIRING Input interface
For input: IN00~IN07, IN10~IN17
IN20~IN27, IN30~IN37
I/P specification:
II (input current)
IIH (max) 3mA
IIL (min) 6mA
** IIH, High-level input current
** IIL, Low-level input current
Suggestion of input connection
for dry contact input
for TTL input
11
Positive polarity with source input
Negative polarity with source input
Positive polarity with sink input
Negative polarity with sink input
12
7. Applications
Synchronous sample
For remote contact sensing, such as:
-- window or door open/close signal sensing
-- alram signal sensing
-- fire detector signal sensing
Multi-channel low speed counter (100Hz)
13
8. Ordering information
Product Descriptions
ECD8215 EtherCAT DIO module, 32 photo isolated input
JD52038 110/220Vac to 24Vdc @1.5A power supply
JS52026 110/220Vac to 24Vdc @0.75A power adapter
14
9. ECD8215 Basic specifications
Based function:
--Software config CardID
--Auto increment addressing
--Addressing mode
--I/O Led light level config
--Firmware version
Digital I/O:
--32 isolated digital input
--digital input with software debounce
--digital input have polarity
IN COUNTER:
--32bit counter for all digital input
Description Relay NMOS PMOS
Make Relay contact operate NMOS saturation, output short to
ground
PMOS saturation, output short
to Vc
Brake Relay contact release NMOS cutoff, output floating. PMOS cutoff, output floating.
15
10. List of registers
Direct
address
R/W Descriptions Mnemonics Ref.
2000H R/W card ID register CARD_ID
0x2000
2001H R/W Auto increment addressing AP_ADDRESS
2002H R/W Addressing mode ADDRESS_MODE
2003H R/W I/O led level LED_LEVEL
2004H RO Firmware version FIRMWARE_VERSION
2010H R/W select inport debounce frequency INPUT_DEBOUNCE
2040H R/W Inport counter enable / disable IN_COUNTER_CONTROL
2041H R/W In counter mask IN_COUNTER_MASK
2048H R/W In_00 counter ~ In_07 counter IN_PORT0_COUNTER
2049H R/W In_10 counter ~ In_17 counter IN_PORT1_COUNTER
204AH R/W In_20 counter ~ In_27 counter IN_PORT2_COUNTER
204BH R/W In_30 counter ~ In_37 counter IN_PORT3_COUNTER
0x6000
6000H R input state 8bit. (byte array) INPORT_U8
6002H R/W Input polarity 8bit. (byte array) IN_POLARITY_U8
6020H R input state bit. (Boolean array) INPORT_BIT
6030H R/W Input polarity bit. (Boolean array) IN_POLARITY_BIT
6100H R input state 16 bit. (U16) INPORT_U16
6102H R/W Input polarity 16 bit. (U16) IN_POLARITY_U16
6120H R input state 32 bit. (U32) INPORT_U32
6122H R/W Input polarity 32 bit. (U32) IN_POLARITY_U32
16
11. Comment register
CARD_ID
User defined modules ID
Index Data type AL-state Access SDO/PDO range Default
2000H UINT8
Pre-Op
Safe-Op
Op
R/W SDO 0x00 ~ 0xFF 0x00
AP_ADDRESS
Auto Increment Address
Index Data type AL-state Access SDO/PDO range Default
2001H UINT8
Pre-Op
Safe-Op
Op
R/W SDO 0x00 ~ 0xFF 0x00
ADDRESS_MODE
Select SEG7 show address
0x1 is CARD_ID, 0x2 is AP_address
Index Data type AL-state Access SDO/PDO range Default
2002H UINT8
Pre-Op
Safe-Op
Op
R/W SDO 0x1 or 0x2 Show
CARD_ID
LED_LEVEL
Led light level, Light level = (LED_level + 1) * 2.5%
Index Data type AL-state Access SDO/PDO range Default
2003H UINT8
Pre-Op
Safe-Op
Op
R/W SDO 0 ~ 39 30
FIRMWARE_VERSION
When value = 0x0120, Firmware Version is V1.2
Index Data type AL-state Access SDO/PDO Range Default
2004H UINT16
Pre-Op
Safe-Op
Op
RO SDO
0x0000
~
0xFFFF
Version
17
Input function
INPUT_DEBOUNCE
Choose input debounce time level by port.
Debounce = 0 is no debounce(pass)
Debounce = 1 is 50Hz
Debounce = 2 is 100Hz
Debounce = 3 is 200Hz
Debounce = 4 is 1KHz
Index Data type AL-state
2010H UINT8 Array Pre-Op / Safe-Op / Op
Sub Index Data
type Description Access SDO/PDO Range Default
00h UINT8 Number Of
Debounce channel RO N/A 4 4
01h UINT8 Inport0 debounce
R/W SDO 0 ~ 4 2 02h UINT8 Inport1 debounce
03h UINT8 Inport2 debounce
04h UINT8 Inport3 debounce
Debounce Table
Debounce
Mode
HEX
Debounce
counter value
based on 10KHz
Number of
samples
sample
frequency
(10KHz)
0 0 (PASS) 0 0 PASS
1 50Hz 40 5 250Hz
2 100Hz 20 5 500Hz
3 200Hz 10 5 1KHz
4 1KHz 2 5 5KHz
18
INPORT_U8
Read input state by U8 type.
Index Data type AL-state
6000H UINT8 Array Pre-Op / Safe-Op / Op
Sub Index Data
type Description Access SDO/PDO Range Default
00h UINT8 Number Of
In port RO N/A 4 4
01h UINT8 Inport0 state
RO
SDO
and
PDO mapping
0x00
~
0xFF
0xFF 02h UINT8 Inport1 state
03h UINT8 Inport2 state
04h UINT8 Inport3 state
IN_POLARITY_U8
Input polarity by U8 type.
Index Data type AL-state
6002H UINT8 Array Pre-Op / Safe-Op / Op
Sub Index Data
type Description Access SDO/PDO Range Default
00h UINT8 Number Of
In polarity RO N/A 4 4
01h UINT8 In0_polarity
R/W
SDO
and
PDO mapping
0x00
~
0xFF
0x00
02h UINT8 In1_polarity
03h UINT8 In2_polarity
04h UINT8 In3_polarity
05h UINT8 In4_polarity
06h UINT8 In5_polarity
07h UINT8 In6_polarity
08h UINT8 In7_polarity
19
INPORT_BIT
Input state by boolean type.
Index Data type AL-state
6020H boolean Array Pre-Op / Safe-Op / Op
Sub Index Data
type Description Access SDO/PDO Range Default
00h UINT8 Number Of
In polarity RO N/A 32 32
01h Boolean In00_state
RO SDO
True
or
False
True
02h Boolean In01_state
03h Boolean In02_state
04h Boolean In03_state
05h Boolean In04_state
06h Boolean In05_state
07h Boolean In06_state
08h Boolean In07_state
To
19h Boolean In30_state
RO SDO
True
or
False
True
1Ah Boolean In31_state
1Bh Boolean In32_state
1Ch Boolean In33_state
1Dh Boolean In34_state
1Eh Boolean In35_state
1Fh Boolean In36_state
20h Boolean In37_state
20
IN_POLARITY_BIT
Input polarity by boolean type.
Index Data type AL-state
6030H boolean Array Pre-Op / Safe-Op / Op
Sub Index Data
type Description Access SDO/PDO Range Default
00h UINT8 Number Of
In polarity RO N/A 32 32
01h Boolean In00_polarity
R/W SDO
True
or
False
True
02h Boolean In01_ polarity
03h Boolean In02_ polarity
04h Boolean In03_ polarity
05h Boolean In04_ polarity
06h Boolean In05_ polarity
07h Boolean In06_ polarity
08h Boolean In07_ polarity
To
19h Boolean In30_ polarity
R/W SDO
True
or
False
True
1Ah Boolean In31_ polarity
1Bh Boolean In32_ polarity
1Ch Boolean In33_ polarity
1Dh Boolean In34_ polarity
1Eh Boolean In35_ polarity
1Fh Boolean In36_ polarity
20h Boolean In37_ polarity
21
INPORT_U16
Read input state by U16 type.
Index Data type AL-state
6100H UINT8 Array Pre-Op / Safe-Op / Op
Sub Index Data
type Description Access SDO/PDO Range Default
00h UINT8 Number Of
In port RO N/A 2 2
01h UINT16 Inport1_0 state RO SDO
0x0000
~
0xFFFF
0xFFFF
02h UINT16 Inport3_2 state
IN_POLARITY_U16
Input polarity by U16 type.
Index Data type AL-state
6102H UINT8 Array Pre-Op / Safe-Op / Op
Sub Index Data
type Description Access SDO/PDO Range Default
00h UINT8 Number Of
In polarity RO N/A 2 2
01h UINT16 In1_0_polarity
R/W SDO
0x0000
~
0xFFFF
0x0000 02h UINT16 In3_2_polarity
22
INPORT_U32
Read input state by U32 type.
Index Data type AL-state
6120H UINT8 Array Pre-Op / Safe-Op / Op
Sub Index Data
type Description Access SDO/PDO Range Default
00h UINT8 Number Of
In port RO N/A 1 1
01h UINT32 Inport3_0 state RO SDO
0x00000000
~
0xFFFFFFFF
0xFFFF_
FFFF
IN_POLARITY_U32
Input polarity by U32 type.
Index Data type AL-state
6122H UINT8 Array Pre-Op / Safe-Op / Op
Sub
Index
Data
type Description Access SDO/PDO Range Default
00h UINT8 Number Of
In polarity RO N/A 1 1
01h UINT32 In3_0_polarity R/W SDO
0x00000000
~
0xFFFFFFFF
0x0000_
0000
23
In_counter function
IN_COUNTER_CONTROL
In_counter_control = 1, Enable in_counter function In_counter_control = 0, Disable in_counter function
Index Data type AL-state Access SDO/PDO Range Default
2040H UINT8
Pre-Op
Safe-Op
Op
R/W SDO 0x0 or 0x1 Disable
24
IN_COUNTER_MASK
inportx_counter_mask b0 for inx0_counter(x is port number)
inportx_counter_mask b1 for inx1_counter(x is port number)
….
inportx_counter_mask b7 for inx7_counter(x is port number)
Any bit =0, mask off (default)
Any bit =1, no mask
Index Data type AL-state
2041H UINT8 array Pre-Op / Safe-Op / Op
Sub Index Data
type Description Access SDO/PDO Range Default
00h UINT8 Number Of
Debounce channel RO N/A 4 4
01h UINT8 Inport0_counter_mask
R/W SDO
0x00
~
0xFF
0x00 02h UINT8 Inport1_counter_mask
03h UINT8 Inport2_counter_mask
04h UINT8 Inport3_counter_mask
25
IN_PORT0_COUNTER
Read back in_counter value, or write / clear in_counter value
Index Data type AL-state
2048H UINT8 array Pre-Op / Safe-Op / Op
Sub Index Data type Description Access SDO/
PDO Range Default
00h UINT8 Number Of
Debounce channel RO N/A 8 8
01h UINT32 In00_counter
R/W SDO
0x00000000
~
0xFFFFFFFF
0x0000_
0000
02h UINT32 In01_counter
03h UINT32 In02_counter
04h UINT32 In03_counter
05h UINT32 In04_counter
06h UINT32 In05_counter
07h UINT32 In06_counter
08h UINT32 In07_counter
IN_PORT1_COUNTER
Read back in_counter value, or write / clear in_counter value
Index Data type AL-state
2049H UINT8 array Pre-Op / Safe-Op / Op
Sub Index Data type Description Access SDO/
PDO Range Default
00h UINT8 Number Of
Debounce channel RO N/A 8 8
01h UINT32 In10_counter
R/W SDO
0x00000000
~
0xFFFFFFFF
0x0000_
0000
02h UINT32 In11_counter
03h UINT32 In12_counter
04h UINT32 In13_counter
05h UINT32 In14_counter
06h UINT32 In15_counter
07h UINT32 In16_counter
08h UINT32 In17_counter
26
IN_PORT2_COUNTER
Read back in_counter value, or write / clear in_counter value
Index Data type AL-state
204AH UINT8 array Pre-Op / Safe-Op / Op
Sub Index Data type Description Access SDO/
PDO Range Default
00h UINT8 Number Of
Debounce channel RO N/A 8 8
01h UINT32 In20_counter
R/W SDO
0x00000000
~
0xFFFFFFFF
0x0000_
0000
02h UINT32 In21_counter
03h UINT32 In22_counter
04h UINT32 In23_counter
05h UINT32 In24_counter
06h UINT32 In25_counter
07h UINT32 In26_counter
08h UINT32 In27_counter
IN_PORT3_COUNTER
Read back in_counter value, or write / clear in_counter value
Index Data type AL-state
204BH UINT8 array Pre-Op / Safe-Op / Op
Sub Index Data type Description Access SDO/
PDO Range Default
00h UINT8 Number Of
Debounce channel RO N/A 8 8
01h UINT32 In30_counter
R/W SDO
0x00000000
~
0xFFFFFFFF
0x0000_
0000
02h UINT32 In31_counter
03h UINT32 In32_counter
04h UINT32 In33_counter
05h UINT32 In34_counter
06h UINT32 In35_counter
07h UINT32 In36_counter
08h UINT32 In37_counter