Comat Releco AF-10MR-A2 User manual

BoxX 2 series
PLC
User Manual
1
BoxX 2 series PLC is an upgraded version of
BoxX series PLC. Before you use the product,
please kindly read the manual carefully so as to
ensure proper use of the product.

2
Contents
1 Introduction...................................................................................................3
1.1 Structure of BoxX 2 ............................................................................3
1.2 Specifications and models..................................................................4
1.3 BoxX 2 Features.................................................................................5
2 Installation and wiring ...................................................................................7
2.1 Installation..........................................................................................7
2.1.1 Methods....................................................................................7
2.1.2 Dimensions(unit:mm)................................................................8
2.2 Wiring of BoxX 2.................................................................................8
2.2.1 Connection of power supply......................................................9
2.2.2 BoxX 2 Input Connection ..........................................................9
2.2.3 BoxX 2 output connection...................................................... 11
3 Programming on BOXX 2 panel..................................................................13
3.1 BoxX 2 status display interface ........................................................13
3.2 Password confirming........................................................................13
3.3 Function Interface.............................................................................14
3.3.1 FAB/Rom Interface .................................................................15
3.3.2 Setting interface......................................................................19
4 Communication connection.........................................................................20
4.1 BoxX 2 download port ......................................................................20
4.2 BoxX 2 485 interface........................................................................20
4.2.1 BoxX 2 A1B1 interface............................................................20
4.2.2 BoxX 2 A2B2 interface............................................................21
5 Functional comparison................................................................................23
6 Technical Parameters.................................................................................24
6.1 General technical parameters ..........................................................24
6.2 AF-10MR-A2/AF-20MR-A2...............................................................25
6.3 AF-10MT-D2/AF-20MT-D2...............................................................26
6.4 AF-10MR-D2/AF-20MR-D2..............................................................27
6.5 AF-10MT-E2/AF-20MT-E2 ...............................................................28
6.6 AF-10MR-E2/AF-20MR-E2...............................................................29
6.7 AF-10MT-GD2/AF-20MT-GD2 .........................................................30

3
1
2
4
5
8
6
7
3
1 Introduction
BoxX 2 series PLC is an upgraded version of old BoxX PLC, which is
programmed by the use of a Function Block Diagram. The programming of
BoxX 2 is simpler and easier to learn than that of a conventional PLC, which
uses ladder diagrams and associated instructions. In the design concept of
BoxX 2 series products, it adds power indicator, comes with 2-way 485
communication interface, supports standard MODBUS RTU protocol and can
modify parameters and other functions through the LCD panel, which greatly
reduces the user's cost investment, and for the operation It brings great
convenience. The volume of BoxX 2 series products follows the old BoxX 2's
small size, light weight and other characteristics, and is especially suitable for
internal installation and use. Now BoxX 2 are being widely used in many fields
such as industry,commerce,mining, agriculture, home automation etc.
1.1 Structure of BoxX 2
1 - Power terminals
2 - Input terminals
3 - Output terminals(Relay or transistor)
4 - Program download port
5 - Operating keys
6 - Two channel of 485 communication interface
7 - LCD display panel
8 - Power Indicator(Red Indicator,Flashing frequency 1hz)

4
BoxX 2 series PLC INTRODUCTION
1.2 Specifications and models
Item
Type
Power
supply
Input
Output
1
AF-10MR-A2
AC110-220V
6 points AC digital
input
4 points relay output
2
AF-10MR-E2
AC/DC
12-24V
6 points AC/DC
digital input
4 points relay output
3
AF-10MT-E2
DC12-24V
6 points DC digital
input
4 points transistor
output(equivalent
NPN)
4
AF-10MR-D2
DC12-24V
6 points DC(with
analog) digital input
4 points relay output
5
AF-10MT-D2
DC12-24V
6 points DC(with
analog) input
4 points transistor
output(equivalent
NPN)
6
AF-10MT-GD2
DC12-24V
6 points DC(with
analog) input
4points transistor
output(equivalent
PNP)
7
AF-20MR-A2
AC110-220V
12 points AC digital
input
8 points relay output
8
AF-20MR-E2
AC/DC
12-24V
12 points AC/DC
digital input
8 points relay output
9
AF-20MT-E2
DC12-24V
12 points DC digital
input
8points transistor
output(equivalent
NPN)
10
AF-20MR-D2
DC12-24V
12 points DC(with
analog) digital input
8 points relay output
11
AF-20MT-D2
DC12-24V
12 points DC(with
analog) input
8 points transistor
output(equivalent
NPN)
12
AF-20MT-GD2
DC12-24V
12 points DC(with
analog) input
8 points transistor
output(equivalent
PNP)
13
AF-HMI
The removable LCD panel that can modify
parameters through the panel
14
AF-C232-2
232 interface communication lines for downloading
programs
15
AF-DUSB2
USB interface communication lines for
downloading programs
16
RTD module
Detect the temperature signal directly

5
BoxX 2 series PLC user manual
1.3 BoxX 2 Features
1. Removable LCD display (AF-HMI)
AF-HMI (Removable LCD display) can be used flexibly according to your
needs.When you need it, you can install and use the keys on the panel to
query/set the BOXX 2 address, BOXX 2 system time, modify the function
block parameters and manually calibrate the analog quantity, etc.When you
don't need it, you can disassemble it and replace it with an ordinary panel,
which will greatly reduce your cost of use.However, compared with AF-LCD,
the AF-HMI operator panel cannot be programmed manually.
2. FB programming and big program storage capacity
BOXX 2 uses a function block to realize the control function that the previous
PLC needed a large section of the program to realize, and several functional
blocks are connected in a certain way to complete more complicated control
functions. The BOXX 2 can accommodate up to 127 function block programs.
There are enough resources for you to implement complicated control
requirements. Once the program is written, it will never be lost. BOXX 2 uses
a larger memory capacity chip than BoxX.
3. Exquisite and compact design
If you are looking to make your device delicate, BOXX 2 will be your
best
partner. It only needs to occupy you
AF-10 Series:71.6mm*90.4*57.6mm
AF-20 Series:126.4mm*90.4*57.6mm
4. Free programming software
The free QUICKII programming software is an extremely friendly human-
machine programming interface.It not only can edit function charts, but also
can provide functions such as off-line simulation of your programs and on-line
monitoring of I/O status. It solves many inconveniences such as customer
online testing.
5. Real-time clock function
The BOXX 2 has a clock-recording function that can run at any time you need,
and you can set up to 127 different time periods, especially for systems that
require time control. The timing is accurate to the second, and BOXX 2's RTC
precision error is greatly improved to 20s/month compared with BoxX, making
your time control more accurate.

6
BOXX 2 series PLC INSTRODUCTION
6. Analog inputs
BOXX 2 can receive analog input except for switch input so as to complete the
control of temperature, humidity, pressure, flow, liquid level, etc., and can
monitor the analog value status of the PC through short distance or long
distance.And BOXX 2 simulation accuracy and BoxX greatly improved to 10
(0.1v)
7. Security password lock function
BOXX 2 has absolute confidentiality for the program you write. You can set
your own password before burning the program. You can modify the
application only after entering the correct password. When the AF-HMI panel
enters the function interface, it must enter the correct password and protect it
with the * symbol.
8. Power indicator
BOXX 2 adds red power indicator to facilitate the customer to visually check
whether the machine is properly connected to the power supply. When
customers use BoxX before, it is necessary to use a multimeter to test the
voltage across the power supply to determine whether the power supply is
properly connected to the customer, causing inconvenience to the customer.
9. Communication interface
In addition to downloading the communication port, BOXX 2 also adds two 485
ports to save the cost and space for customers directly. BOXX 2's A1B1
interface supports the standard MODBUS RTU protocol and can communicate
with other manufacturers' branded touch screens and other devices. BOXX 2's
A2B2 interface is used to communicate with our SH300 text display. A detailed
description of the communication interface is given chapter 4.
10. Communication protocol
In addition to the custom protocol for the download port, BOXX 2 adds the
standard MODBUS RTU protocol. The old BoxX only supports custom
protocols.

7
Screw mounting hole
35mmDINrail
Screw mounting hole
Buckle atthe bottom
2 Installation and wiring
2.1 Installation
2.1.1 Methods
BOXX 2 is small so it is suitable to be fit inside panels or
machinery. The installation of BOXX 2 is extremely easy.
1. Use standard 35mm DIN rail mounting BOXX 2
2. Use the screw mounting holes on BOXX 2 for direct mounting
Fig 2.1 Use stand and DIN rail for installation of BoxX
Do not remove the AF-HMI while it is powered on. Otherwise it may cause
mechanical damage and even endanger the safety of the operator. We
recommend powering off and plugging the AF-HMI panel.

8
BOXX 2 series PLC Installation and Wiring
2.1.2 Dimensions
Fig 2.2 AF2-10 Series(mm)
Fig 2.3
AF2-20
Series(mm
)
2.2 Wiring of BOXX 2
Screwdriver with a spade tip width of 3mm is needed for the wiring of
BOXX 2 series. As for the cross section of a wire. The following two
sizes are at choice:
* 1×2.5mm2
* 2×1.5mm2

N
L
L N I1 I2 I3 I4 I5 I6
M
L+
L+ M I1 I2 I3 I4 I5 I6
9
BOXX 2 series PLC user manual
2.2.1 Connection of power supply
1.For BOXX 2s like AF-10MR-A2 and AF-20MR-A2, its applicable power
supply is 100~240VAC,50/60Hz.The grid voltage fluctuation range is about
10%.
2.For BOXX 2s like AF-10MR-D2,AF-20MR-D2,AF-10MT-D2,AF-20MT-D2,AF-
10MT-GD2, AF-20MT-GD2,AF-10MT-E2,AF-20MT-E2,Its applicable power
supply voltage is DC12V-24V.
3.For BOXX 2s like AF-10MR-E2 and AF-20MR-E2, its applicable power
supply voltage is AC/DC12V-24V.
BOXX 2 series power wiring diagram is as shown in Fig 2.4 and Fig 2.5,
Fig 2.4 AC type Fig 2.5 DC Type
2.2.2 BOXX 2 Input Connection
BOXX 2 input can be either switch, such as on/off switches and photoelectri c
baffle and sunshine switch etc.,or analog, such as pressure,temperatur
e,humidity,flow and so on.The specific requirements are as follows,
Demand
AF-10MR-A2
AF-20MR-A2
AF-10/20MR-D2
AF-10/20MT-D2
AF-10/20MT-GD2
AF-10MR-E2
AF-20MR-E2
AF-10MT-E2
AF-20MT-E2
switch
status 0
<AC40V
<DC3.5V
<AC/DC4.5V
<DC3.5V
Input
current
<0.1mA
<0.4mA
<0.2mA
<0.5mA
switch
status1
AC85-240V
DC10-24V
AC/DC
10-24V
DC10-24V
Input
current
<0.2mA
<2.5mA
<2mA
<2.5mA

BOXX 2 series PLC Installation and Wiring
Proximity switch type with direct input 2-wire system/3-wire system/4-wire
Note:
1. Analog can be input into analog-receivable BOXX 2s like
AF-10/20MR-D2,AF-10/20MT-D2,AF-10/20MT-GD2 through all the input
ports(I1-I6/I1-IC).As long as the analog-related function blocks are used in
the program,Its port is automatically set to analog input. If in the program do
not use the analog-related function blocks, its port is automatically set to
digit input.
2. The analog inputs require DC 0V~10V voltage signals, which are divided
equally in 0.1V increments. When you edit the program, all the block
parameters related to the analog inputs are based on the minimum
increment of 0.1V.
3.When the input voltage is higher than DC10.0V, it can only be used as
switch, not be used as analog.
4.For digit input,when the switch state changes from 0 to 1, the time of the 1
state must be greater than 50ms .When the switch state changes from 1 to
0, the 0 state must also exist for more than 50 ms.
BOXX 2 input connection:
Fig 2.6 AC Type Fig 2.7 DC Type
Fig 2.8 DC Type(D/GD)
10

11
BOXX 2 series PLC user manual
2.2.3 BOXX 2 output connection
AF-10MR-A2/AF-20MR-A2/AF-10MR-E2/AF-20MR-E2/AF-10MR-
D2/AF-20M R-D2 type BOXX 2 is the relay output, the relay's
contact to the power and input is isolated. AF-10MT-D2/AF-20MT-
D2/AF-10MT-GD2/AF-20MT-GD2/AF-10MT-E2/AF-20 MT-E2 type
BOXX 2 is the transistor output.
1. Requirements for the relay outputs
Various loads can be connected to the output of BOXX 2, such as:
incandescent lamps, fluorescent lamps, motors, contactors, etc.The maximum
output current that BOXX 2 can provide is: non-inductive load 10A, inductive
load 2A.
The connection is shown as shown in Fig 2.9,
Fig 2.9 Relay output
2.Requirements for the transistors outputs
The transistor is divided into D type and GD type
The load connected to BOXX 2 must have the following characteristics:
When the switch is ON(Q=1), the maximum current is 2A.
1)Type D connection is shown in Fig 2.10

12
BOXX 2 series PLC Installation and Wiring
Fig 2.10 Transistor Output(D type)
2)Type GD connection is shown in Fig2.11,
Fig 2.11 Transistor Output(GD type)

13
Fig3.1
Fig3.2
I:□□□□□□
Q:□□□□
1 9 : 3 5 : 5 0
SU
3 Programming on BOXX 2 panel
BOXX 2 operation panel is a simple man-machine interface, which is
completed by the following eight buttons to complete the panel operation.
3.1 BOXX 2 status display interface
After the BOXX 2 is powered on, the AF-HMI enters the BOXX 2 status
display interface.
Take 10 points as an example, as shown in Fig 3.2,
The I listed above is input: the status of 6 input ports
The following Q is output: status of 4 output ports
(* indicate ON,i.e. status “1”,口indicates OFF,i.e. status “0”)
3.2 Password confirming
When the user observes the AF-HMI in the above status display interface,
press the "ESC" and "OK" keys at the same time to enter the password
confirmation screen, as shown in Fig 3.3,BOXX 2 needs to enter the
password value at this time, and the cursor stays at the high position of the
password.You can use the +/- keys to change the numeric value (0-9).

14
BOXX 2 series PLC user manual
When you press the +/- key for the first time, the password value is 0. You can
use the left/right keys to move the password input position and enter the
remaining number of password values. If the user password is entered
correctly, it will enter the panel function interface;If the user password is not
entered correctly, it will stay on the input password interface.
Four-digit password, every time you enter a digit to enter the next digit, the
previous digit is hidden with the * symbol, and you must enter the four-digit
number to enter the BOXX 2 function interface.
Verify
Users
Password
xxxx
Fig 3.3 Password Interface
3.3 Function Interface
When the user enters the following function interface, please kindly use
and keys to move the left ">" key and press OK key to select the function,
including four options.
Editor.. Program Edit (System Reserved, BOXX 2 Not Enabled)
FAB/Rom Read BOXX 2 program, simulate calibration, modify BOXX 2
address, etc.
Set.. Real time clock setting and password setting
Run Run BOXX 2 program, click RUN to return to BOXX 2 status
display
interface
> Editor..
FAB/Rom
Set..
Run
Fig 3.4 Function Interface

15
C A L I B
AI:00
Value:0000
Fig 3.6
BOXX 2 series PLC Panel Operation
3.3.1 FAB/Rom Interface
When the user enters into the FAB/Rom interface as shown above, then
when the user enters the Calibrate interface, Rom → FAB interface and
FAB_Addr interface under the BOXX 2 function interface, the BOXX 2
machine will stop running.
> Calibrate
Rom
→
FAB
FAB_Addr
MODEM
Fig 3.5
Calibrate Analog calibration
Rom→FAB Read BOXX 2 program
FAB_Addr View or set the BOXX 2 address (default address 000)
MODEM System Reserved (BOXX 2 is not enabled for this feature)
3.3.1.1 Analog Calibration Interface
The analog channel calibration method is as follows,
1.When the user enters the Calibrate interface as above, please kindly press
and hold the ok and > keys on the LCD panel to enter the calibration page.
Separate each analog channel by analog (AI1 corresponds to I1), and input
the channel number to be calibrated, and press OK to confirm.

16
Fig3.7
AI:01
Value:3520
C A L I B
Succeed
BOXX 2 series PLC user manual
2. When the minimum value is prompted, an external power supply is
required to input the minimum voltage value for this channel, then press OK
to confirm and mark as Vmin. When the maximum value is prompted,an
external power supply is required to input the maximum voltage value for this
channel. Then Press OK to confirm it and mark as Vmax. After calibrate
successful, the screen will prompt succeed.
The Vmin and Vmax inputs must be between 0V and 10V. (The maximum
calibration value of the value must be greater than the minimum
calibration value)
3. After successful analog calibration, BOXX 2 needs to be powered on again.
4. Other channel calibrations is similar as above. After the analog calibrate
successful,when using an analog-related module, the value of the analog
input pin input (0V–10V) is not the actual input voltage value, but follows the
mathematical calculation formula (V input –Vmin)/(Vmax-Vmin) * 10.
3.3.1.2 Rom→FAB Program Interface
The user can view the function block number of the BOXX 2 program on this
interface, and can modify the parameters of the function block number.Such
as DPR,DDR and UCN and so on.
When the user enters the Rom → FAB program interface through FAB/Rom
interface , select the function block number to be viewed or modified by the +/-
keys.The function block number in the AF-HMI panel starts from 0, and the B0
block number corresponds to the B1 block number in the QUICKII software.

17
Fig3.8
B002
MPLR
Unit Int.M
4 30 30
T
B018
PreC
COUNTU
Counter
000100
Fig 3.9
BOXX 2 series PLC Panel Operation
1) Timing function block
Time unit:
Unit Unit(1-hour,2-minute,4-second)
Int. Integer bit
M Decimal places
As shown in Fig 3.8, B002 function block is MPLR single pulse function
block,The parameter is 30.3 seconds.If you want to modify the parameter, pls
kindly remove the cursor to the modified bit you need, then set up the
parameter via+/- keys.
2) Counting function clock
Counting unit:
Consisting of six digits, the highest position is the leftmost, the lowest position
is the rightmost, and his range is 1-999999
For example. As shown in Fig 3.9
B018 function block is COUNTU ,the parameter of Upward counting function
block is 100 .If you want to modify the parameter, pls kindly remove the
cursor to the modified bit you need, then set up the parameter via +/- keys.
3) Clock switching function
The parameter setting of the clock switch function block is divided into date
type and week type.

SCHD
W 1-6 ON
00-00-00
08-30-00
SCHD
Day__________ OFF
17-07-02
21-00-00
18
BOXX 2 series PLC user manual
For example, as shown in Fig 3.10
B000 function block for SCHD clock switch week type, open Monday to
Saturday 8:30. If you want to modify the parameter, you could remove the
cursor to the modified bit you need, then set up the parameter via +/- key.
B000
Fig 3.10 Week type
For example, as shown in Fig 3.11
B008 function block is SCHD clock switch date type,July 2nd, 2017 Closed
at 21:00.If you want to modify the parameter, you could remove the cursor to
the modified bit you need, then set up the parameter via +/- key.
B008
Fig 3.11 Date Type
3.3.1.3 FAB_Addr address interface
The User can view the address of BOXX 2 machine in Fig 3..12, and can
modify his address.
When the user enters the FAB_Address interface through the FAB/Rom
interface, the BOXX 2 address can be viewed or modified through the +/-
keys.

19
Fig3.13
2 0 1 7-0 7-0 7
D A Y 0 SU
0 0 0 1
2
3 : 5 0 : 3 0
BOXX 2 series PLC Panel Operation
FAB_Addr
001
Fig 3.12
3.3.2 Setting interface
When the user enters the Set.. setting interface on the BOXX 2 function
interface, as shown in Fig 3.13
When the user enters the Set.. setting interface under the BOXX 2
function interface, the BOXX 2 system time and BOXX 2 password can
be viewed or modified.
Real clock time:24HR
Date:Y/M/D
Week:0 for Sunday and 1-6 for Monday to Saturday
Password:BOXX 2 machine password

20
Program
download port
485
interface
Fig 4.1
4 Communication connection
BOXX 2 series PLC not only has a download port custom protocol, but also
supports Modbus RTU protocol, and can communicate with other devices
that support modbus RTU protocol.
The upper right side of the BOXX 2 is the program download port, as
shown Fig 4.1 The upper left side of BOXX 2 front view is 485 interface,
as shown in Fig 4.1
4.1 BOXX 2 download port
The user could communicate with BOXX 2 PLC and QUICKII directly through
AF-C232-2 and AF-DUSB2 so as to realize read and write programs, read
and write BOXX 2 address and online monitoring functions.
4.2 BOXX 2 485 interface
BOXX 2 supports 2-way 485 interface, One way is A1B1 standard MODBUS
RTU protocol, another way is A2B2 and sh300 communication.
4.2.1 BOXX 2 A1B1 interface
A1B1 supports MODBYS RTU protocol.the address of MODBUS RTU is as
below,
This manual suits for next models
11
Table of contents