INDUSTRIAL SHIELDS ARDBOX RELAY Compact PLC User Guide
Anuncio
Anuncio
ARDBOX RELAY
USER GUIDE
Version:
15-07-15_Ardbox_Relay
Ardbox User Guide:
1 Contents
COMPACT PLC
2 ARDBOX FAMILY GUIDE
A compact PLC based in Open Source Hardware technology. With different
Input/Outputs Units.
COMPACT PLC ARDUINO 24Vdc ARDBOX RELAY
Input Voltage
Max. current
Size
Clock Speed
Flash Memory
SRAM
EEPROM
Communications
TOTAL Input points
24Vdc
0,5A
100x45x115
16MHz
32KB of which 0,5KB are used by bootlader
2KB
1KB
I2C
1 – USB – RS485 – RS232 - SPI
10
10
TOTAL Output points
Type of signals
* An/Dig Input 10bit
(0-10Vdc /24Vdc)
* Digital Input
(24Vdc)
* Interrupt Input HS
6
4
4
(the 4 Digital Inputs can work as Interrupt)
* Analog Output 8bit
(0-10Vdc)
2
* Relay (220Vac - 5A)
8
Expandability
Reference
I2C
1
- 127 elements - RS485
– RS232 -SPI
IS.AB20REL.base
* By using this type of signal you can no longer use Digital signal (24Vdc)
You must read product Datasheet.
(1) With previous request. IMPORTANT
1
10k pull-up resistance required (IS.ACI2C-4.7K)
3 Precautions
3.1 Arduino Board
All Ardbox family products use Arduino LEAONARDO Board.
3.2 Intended Audience
This manual is intended for the following personal, which must also have knowledge of electrical systems.
3.3 General Precautions
The user must operate the product according to the performance specifications described in the operation manuals.
Before using the product under conditions, which are not described in the manual or applying the product to nuclear control systems, railroad systems, aviation systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment and other systems, machines, and equipment that may have a serious influence on lives and property if used improperly, consult your INDUSTRIAL SHIELDS representative.
Make sure that the rating and performance characteristics of the product are sufficient for the systems, machines, and equipment, and be sure to provide the systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating the Unit. Be sure to read this manual before attempting to use the Unit keep this manual close at hand for reference during operation.
Warnings:
Unused pins should not be connected. Ignoring the directive may damage the controller.
Improper use of this product may severely damage the controller.
Refer to the controller’s User Guide regarding wiring considerations.
Before using this product, it is the responsibility of the user to read the product’s User
Guide and all accompanying documentation.
4 Technical Specifications
4.1 General Specifications:
Power supply voltage
DC power supply
24Vdc
Operating voltage range
Power consumption
DC power supply
DC power supply
12 to 25.4Vdc
30VAC max.
External power supply
Power supply voltage
Power supply output capacity
Insulation resistance
Dialectric strength
Shock resistance
24Vdc
700Ma
20MΩ min.at 500Vdc between the AC terminals and the protective earth terminal.
2.300 VAC at 50/60 HZ for one minute with a leakage current of 10mA max. Between all the external AC terminals and the protective earth terminal.
80m/s2 in the X, Y and Z direction 2 times each.
Ambient temperature (operating)
Ambient humidity (operating)
Ambient environment (operating)
Ambient temperature (storage)
0º to 45ºC
10% to 90% (no condensation)
With no corrosive gas
-20º to 60ºC
Power supply holding time
2ms min.
Programming language
Microcontroller
340g max.
Weight
4.2 Performance Specification:
Arduino Board ARDUINO LEONARDO
Control method
Stored program method
I/O control method
Combination of the cyclic scan and immediate refresh processing methods.
Arduino IDE. Based on wiring (Wiring is an Open Source electronics platform composed of a programming language. “similar to the C”. http://arduino.cc/en/Tutorial/HomePage
ATmega32u4
Flash Memory
Program capacity (SRAM)
EEPROM
Clock Speed
32kb of which 4 kb are used by bootloader
2.5kb
1kb
16MHz
5 Software interface
Arduino IDE is compatible for programming these PLCs. You must to download a start code in www.industrialshields.com at product page in “document files” section and then It is necessary open it with Arduino IDE.
Configuration about Arduino IDE:
6 How to connect PLC arduino to PC
- Connect USB port from PLC to PC.
NOTE:
Ardbox Family use micro USB cable.
- Open Arduino IDE interface:
You can install with this link: http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe
- Select Arduino Board
NOTE:
Ardbox Family use Arduino leonardo.
- Select correct port.
IMPORTANT:
Verify the USB port is detected:
7 How to connect PLC to power supply
- Ardbox Family PLCs are 24Vdc supplied. IMPORTANT: The polarity IS NOT REVERSAL!
- Make sure that the live and GND connector of the power supply match the PLC.
- Make sure that the power supply mains output is not higher than 24Vdc.
- Suggested power suppliers
* Not recommended for industrial applications. The
Jack connector needs to be removed and use the live and GND connectors.
8 Ardbox Relay I/O Pinout:
8.1 Zone Connections
LEFT
ZONE
Base
(common unit)
RIGHT ZONE
DE
RE
Q0.1
Q0.0
R4
2
R5
I0.9
I0.8
I0.7
I0.6
I0.5
I0.4
I0.3
2
I0.2
2
I0.1
2
I0.0
2
R6
2
R7
R8
1
0
A3
A2
A1
A0
3
2
11
7
4
6
5
9
10
A5
A4
12
13
RS485/
SPI SS
RS485/
SPI SS
Analog Output
Analog Output
Relay 4 Out
Relay 5 Out
Analog/Digital Input
Analog/Digital Input
Analog/Digital Input
Analog/Digital Input
Analog/Digital Input
Analog/Digital Input
Digital Input/
Interrupt
Digital Input/
Interrupt
Digital Input/
Interrupt
Digital Input/
Interrupt
Relay 6 Out
Relay 7 Out
Relay 8 Out
Switch config*
(see section 14 for Communications configuration.
Enabling Communications disable s some I/Os)
Communications pinout
Relay Outputs
Power supply connectors
(24Vdc – Gnd)
Communications pinout
Outputs Pinout
Relay Outputs
Inputs pinout
Relay Outputs
MISO
MOSI
SCK
RESET
B
A
TX-PIN1
RX-PIN0
SDA-PIN2
SCL-PIN3
R1
2
R2
2
R3
Gnd
24V
TOP ZONE
Base
(common unit)
LEFT ZONE
-
3
4
7
8
-
-
-
1
0
2
-
-
-
-
SPI-MISO
SPI-MOSI
SPI-CLOCK
SPI-RESET
RS485
RS485
Serial/RS232
Serial/RS232
I2C/SPI SS
I2C/SPI SS
Relay 1 Out
Relay 2 Out
Relay 3 Out
Gnd
-
RIGHT
ZONE
2
See section 10 to enable these connections.
TOP ZONE
Config switch *
(see section 12 for communications configuration. Enabling Communications disable s some I/Os)
Arduino Reset button
Relay led indicator Input/Output Power led indicator
led indictors
9 I/O Pinout (summary pinout/Arduino PIN)
LEFT Zone
Base (common unit)
RIGHT Zone TOP Zone
MISO
MOSI
SCK
RESET
B
A
TX*
RX*
SDA-PIN2*
SCL-PIN3*
R1*
R2*
R3
Gnd
24V
-
-
1
0
2
3
-
-
-
-
4
7
8
-
-
SPI-MISO
SPI-MOSI
SPI-CLOCK
SPI-RESET
RS485
RS485
Serial/RS232
Serial/RS232
I2C/SPI SS
I2C/SPI SS
Relay 1 Out
Relay 2 Out
Relay 3 Out
Gnd
-
DE*
RE*
Q0.1
Q0.0
R4
R5*
I0.9
I0.8
I0.7
I0.6
I0.5
I0.4
I0.3*
I0.2*
I0.1*
I0.0*
R6*
R7
R8
RS485/
SPI SS
RS485/
SPI SS
Analog Output
Analog Output
Relay 4 Out
Relay 5 Out
Analog/Digital
Input
Analog/Digital
Input
Analog/Digital
Input
Analog/Digital
Input
Analog/Digital
Input
Analog/Digital
Input
Digital Input
Digital Input
Digital Input
Digital Input
Relay 6 Out
Relay 7 Out
Relay 8 Out
7
4
6
5
9
10
A5
A4
A3
A2
1
0
3
A1
A0
2
11
12
13
R8
R7
R6
R5
R4
R3
R2
R1
Q0.1
Q0.0
I0.9
I0.8
I0.7
I0.6
I0.5
I0.4
I0.3
I0.2
I0.1
I0.0
R8
R7
R6
R5
R4
R3
R2
R1
Q0.1
Q0.0
I0.9
I0.8
I0.7
I0.6
I0.5
I0.4
I0.3
I0.2
I0.1
I0.0
*NOTE: To enable these connections see section 10.
Relay Output
Relay Output
Relay Output
Relay Output
Relay Output
Relay Output
Relay Output
Relay Output
Analog Output
Analog Output
An/Dig Input
An/Dig Input
An/Dig Input
An/Dig Input
An/Dig Input
An/Dig Input
Digital Input
Digital Input
Digital Input
Digital Input
10 Switch Configuration
LEFT Zone
SWITCH CONFIG
Arduino
Pin
7
OFF*
4
1
0
3
2
DE
RE
TX
RX
SCL
SDA
ON
R1
R2
I0.3
I0.2
I0.1
I0.0
*IMPORTANT:
TOP ZONE
ENABLED*
CONNECTION
R6
RO
R5
DI
ON OFF
R6
RO
R5
DI
RO
R6
DI
R5
LEFT ZONE. To enable communication connections the switchs must be set to “OFF”. Set to “ON” position to enable I/Os PLC connection. Communications and I/Os on the chart can not work simultaneously. For exemple if DE is enabled (OFF), R1 will not work. OFF position provides direct connection to Arduino Pin (so they can be programmed according to Arduino pin features).
TOP ZONE. Communications and relays can not work simultaneously. If R6 is enabled RO must be disabled and conversly.
11 I/0 technical details
Signal
Ardbox family products
Vdc
Maxim current consumption
Digital Input
24 Vdc
60mA
Analog/Digital Input configurable
Analog
0-10Vdc
Digital
24Vdc
60mA
60mA
Digital Output
24Vdc
3
200mA
Analog/Digital/PWM Output configurable
Cumulative outputs
Relay Output
Analog
0-10Vdc
80mA
Digital
24 Vdc
80mA
PWM
24Vdc
80mA
All outputs can be working simultaneously at its max current value
220V-5A
3
You can select 24Vdc or 10Vdc (with correctly switch configuration). Digital output will be 12Vdc If you connect PLC to 12Vdc power supply
12 Connector details
The connector inside the PLCs that mounts on the PCB is MC 0,5/10-G-2,5 THT – 1963502 from Phoenix contact. MC0,5/10-G-2,5THT
For I/O and power supply there is a FK-MC 0,5/10-ST-2,5 - 1881406 connector from Phoenix contact. FK-MC 0,5/10-ST-2,5
Connection details:
Article reference
MC 0,5/10-G-2,5 THT
Height
8,1mm
Pitch
2,5mm
Dimension
Pin dimensions
Pin spacing
22,5mm
0,8x0,8mm
2,50mm
Article refernce
Rigid conduit section min.
Rigid conduit section max.
Flexible conduit section min.
Flexible conduit section max.
Conduit section AWG/kcmil min.
Conduit section AWG/kcmil max.
FK-MC 0,5/10-ST-2,5
0,14 mm²
0,5 mm²
0,14 mm²
0,5 mm²
26
20
13 Connection Type
13.1 Analog (0-10Vdc) / Digital Inputs “configurable”
13.1.1 Analog configuration mode:
Switch configuration
(Select Analog position)
- Programation Code (example):
int I01 = A05; // select the Analog (0-10Vdc) / Digital (24Vdc)IN //**warning"" (if Analog selection connect 10Vdc MAX).
int I02 = A04; // select the Analog (0-10Vdc) / Digital (24Vdc)IN //**warning"" (if Analog selection connect 10Vdc MAX).
void setup() {
pinMode(I01, INPUT);
}
Void loop(){
value = analogRead(A5);
/* Lo que se quiera */ = digitalRead(I01);
}
NOTE:
Some digital Inputs have an isolated signal. In this case is necessary to connect correctly ground (GND) in correctly “com” pin.
13.1.2 Digital configuration mode:
Switch configuration
(Select digital position)
- Programation Code (example):
int I01 = A05; // select the Analog (0-10Vdc) / Digital (24Vdc)IN //**warning"" (if Analog slection connect 10Vdc MAX).
int I02 = A04; // select the Analog (0-10Vdc) / Digital (24Vdc)IN //**warning"" (if Analog slection connect 10Vdc MAX).
void setup() {
pinMode(I01, INPUT);
}
Void loop(){
value = analogRead(A5);
/* Lo que se quiera */ = digitalRead(I01);
}
14 How does it work:
14.1 Digital Inputs
- Programation Code (example): int I01 = 12; // Digital (24Vdc)
void setup() { pinMode(I01, INPUT);
}
Void loop(){
/* Lo que se quiera */ = digitalRead(I01);
}
NOTE:
Some digital Inputs have an isolated signal. In this case is necessary to connect correctly ground (GND) in correctly “com” pin.
14.2 Relay Outputs
- Programation Code (example):
int Q06 = 3; // Relay output (220Vac, 5A)
void setup() { pinMode(Q06, OUTPUT);
}
Void loop(){ digitalWrite(Q06, HIGH); // Relay ON
delay(1000); // wait for a second digitalWrite(Q06, LOW); // Relay OFF
}
15 Communications pinout configuration
In LEFT Zone and TOP Zone Arduino communication PINS can be enabled:
15.1 LEFT Zone
Arduino
Pin
7
4
1
0
3
2
Switch mode
OFF*
DE
RE
TX
RX
SCL
SDA
Switch mode
ON
R1
R2
I0.3
I0.2
I0.1
I0.0
15.2 TOP Zone
TOP Zone
ENABLED*
CONNECTION
R6
RO
R5
DI
ON
R6
RO
R5
DI
OFF
RO
R6
DI
R5
*IMPORTANT:
LEFT ZONE. To enable communication connections the switchs must be set to “OFF”. Set to “ON” position to enable I/Os PLC connection. Communications and I/Os on the chart can not work simultaneously. For exemple if DE is enabled (OFF), R1 will not work. OFF position provides direct connection to Arduino Pin (so they be programmed according to Arduino pin features).
TOP ZONE. Communications and relays can not work simultaneously. If R6 is enabled RO must be disabled and conversly.
For RS485 communication protocol the defined Arduino Mega pins are showed in the chart below.
RS485 pinout
Function Arduino Pin
DI
RO
RE
DE
10
11
4
7
For I2C communication, Ardbox family products are directly connected to Arduino Mega
Board. In order to implement this communication a 10kΩ pull-up resistor is required. http://www.industrialshields.com/accesories
16 ARDBOX Family Dimensions:
45mm width
17 DIN rail mounting:
18 Software Interface:
Arduino IDE is compatible to program these PLCs. You must download a start code in www.industrialshields.com at product page in “document files” section and then open it with
Arduino IDE.
Configuration of Arduino IDE:
All Ardbox PLCs use an Arduino Leonardo and you need to choose these option in Arduino IDE.
About Industrial Shields:
SPAIN
Avda. Castell de Barberà 26, nave 9
08210 Barberà del Vallès (Barcelona)
Tel.+34 635693611
Mail: [email protected]
Descargar
Anuncio