User Manual Duo Series
User Manual Duo Series
User Manual
Rev. E 07/2016
Doc. Code: MU213300
altus
General Supply Conditions
No part of this document may be copied or reproduced in any form without the prior written consent
of ALTUS Information Systems S.A. who reserves the right to carry out alterations without prior
advice.
According to legislation in force in Brazil, the Consumer Defense Code, we are giving the following
information to clients who use our products, regarding safety of personal and premises.
The industrial automation equipment, built by ALTUS is strong and reliable due to the stringent
quality control it is subjected to. However the electronic industrial control equipment (programmable
controllers, numerical commands, etc.) can cause damage to the machines or processes controlled by
them when there are defective components and programming or installation errors. This can even put
human lives at risk.
The user should consider the possible consequences of the defects and should provide additional
external installations for security so that, if necessary, the security of the system can be maintained
especially during the initial installation and testing.
Equipment manufactured by Altus does not directly expose the environment to hazards, since they do
not issue any kind of pollutant during their use. However, concerning the disposal of equipment, it is
important to point out that any built-in electronics contain materials which are harmful to nature
when improperly discarded. Therefore, it is recommended that whenever discarding this type of
product, it should be forwarded to recycling plants, which guarantee proper waste management.
It is essential to completely read the manuals and/or about the technical characteristics of the product
before its installation or use.
ALTUS warrants its equipment as described in General Conditions of Supply, attached to the
commercial proposals.
ALTUS guarantees that their equipment works in accordance with the clear instructions contained in
their manuals and/or the technical characteristics, not guaranteeing the success of any particular type
of application of the equipment.
ALTUS does not acknowledge any other guarantee, direct or implied, principally when it is dealing
with supply of other companies.
Requests for additional information about the supply and/or characteristics of the equipment and
ALTUS services should be put in writing. The address for ALTUS can be found on the back cover.
ALTUS is not responsible for supplying information about their equipment without formal
registration.
COPYRIGHTS
Ponto Series, MasterTool, PX Series, Quark, ALNET and WebPlc are the registered trademarks of
Altus Sistemas de Informática S.A.
Windows NT, 2000 and XP are the registered trademarks of Microsoft Corporation.
i
Sumary
Table of Contents
1. INTRODUCTION .......................................................................................................................................1
General Features..........................................................................................................................................4
Digital Inputs ...............................................................................................................................................5
Transistor Digital Outputs (DU350) ............................................................................................................6
Relay Digital Outputs (DU351) ...................................................................................................................7
Fast Digital Outputs.....................................................................................................................................8
Analog Inputs ...............................................................................................................................................9
Voltage Mode ........................................................................................................................................9
Current Mode ...................................................................................................................................... 10
Analog Outputs .......................................................................................................................................... 10
Voltage Mode ...................................................................................................................................... 11
Current Mode ...................................................................................................................................... 11
Fast Counters ............................................................................................................................................. 12
Local Serial Channel.................................................................................................................................. 12
RS-485 Serial Channel ............................................................................................................................... 13
Software Features ...................................................................................................................................... 13
Compatibility with Other Products ........................................................................................................... 13
Performance ............................................................................................................................................... 14
Memory Map ....................................................................................................................................... 14
Application Times ............................................................................................................................... 14
Language Restrictions .......................................................................................................................... 14
Software Restrictions ........................................................................................................................... 15
Variable Types Restriction ................................................................................................................... 15
Startup Times ...................................................................................................................................... 15
Analog Outputs Times ......................................................................................................................... 15
Analog Inputs Times ............................................................................................................................ 15
Cycle Time .......................................................................................................................................... 15
ii
Sumary
3. CONFIGURATION................................................................................................................................... 19
General ....................................................................................................................................................... 19
Bus 19
Inputs ......................................................................................................................................................... 19
Digital Inputs 0/1/2 .............................................................................................................................. 20
Analog Inputs ...................................................................................................................................... 21
Fast Inputs ........................................................................................................................................... 23
Outputs....................................................................................................................................................... 30
Digital Outputs .................................................................................................................................... 30
Analog Outputs.................................................................................................................................... 31
Fast Outputs......................................................................................................................................... 32
Common Output of Counters Comparator ............................................................................................ 41
Positioning Functions................................................................................................................................. 42
ANALOG_INI and PTO_INI Inicialization Functions .......................................................................... 43
Configuration Structure for COUNT_PTO, PTO, COUNT_ANALOG and REFER_PTO .................... 44
Referencing Operation ......................................................................................................................... 46
Referencing Functions and Positioning ................................................................................................ 47
Error Codes ......................................................................................................................................... 51
Communication.......................................................................................................................................... 53
MODBUS Master ................................................................................................................................ 55
MODBUS Slaves ................................................................................................................................. 59
Generic Communication Protocol ........................................................................................................ 60
HMI – Human Machine Interface ............................................................................................................. 70
Graphics LCD Display ......................................................................................................................... 70
Keyboard ............................................................................................................................................. 71
Editing of Variables ............................................................................................................................. 73
Shortcut Keys ............................................................................................................................................. 74
Special Pages .............................................................................................................................................. 74
RTC (REAL TIME CLOCK).................................................................................................................... 75
Clock Page Display .............................................................................................................................. 76
POU Calls................................................................................................................................................... 77
Time Interruption POUs ........................................................................................................................... 77
iii
Sumary
4. INSTALLATION....................................................................................................................................... 82
Electrical Installation................................................................................................................................. 82
Connections ......................................................................................................................................... 83
Grounding ........................................................................................................................................... 83
Analog Interfaces ................................................................................................................................. 83
Square Encoders Interface .................................................................................................................... 84
Digital Output Protection ..................................................................................................................... 84
Mechanical Assembly ................................................................................................................................ 85
Programming Installation ......................................................................................................................... 87
6. MAINTENANCE....................................................................................................................................... 96
Diagnostics ................................................................................................................................................. 96
iv
Sumary
v
1. Introduction
1. Introduction
The Duo series of programmable controllers (PLC) with built-in Human Machine Interface (HMI) is
the ideal solution for applications which require control and supervision in a single product and
environment. This solution was designed through a hardware architecture based on 32-bit processors
and high performance. The main product features are the speed of application processing, the high
density of I/O integrated points, the connectivity with other elements of the environment through two
serial ports and the requirements for axes positioning using fast inputs and outputs.
The programming of the product is performed through a single tool, using for that six PLC
programming languages (five of them described in IEC 61131-3: LD, ST, IL, FBD and SFC) plus an
additional language (CFC). MasterTool IEC has an important simulation feature that allows the user
to test the application without the use of equipment, thus allowing for greater agility in the program
development.
In addition to an HMI that supports text and graphics, alphanumeric keypad, 7 function keys, the
innovation of the product is also found in its presentation. The ID Duo allows the client to customize
the brand design in accordance with the application and the company branding.
The DU350 and DU351 models differ in the type of digital outputs available in each one. While the
DU350 comprises 14 normal outputs and 2 configurable transistor fast outputs, the DU351 has 14
relay normal outputs and two configurable transistor fast outputs.
1
1. Introduction
Visual Inspection
Before the installation, a careful visual inspection of the product is recommended to verify whether
there has been any damage during the freight. Check if the CD-ROM is in perfect condition. In case
of defects, please inform the company or the nearer ALTUS distributor.
WARNING:
Before unpacking the modules, it is important to discharge any static potential accumulated in
the body. To do this, touch (with bare hands) a grounded metal surface before handling the
modules. This procedure ensures that the levels of static electricity supported by the module
will not be exceeded.
It is important to register the serial number of the equipment received, as well as the revision of
software if applicable. This information will be necessary in case there is need to contact Altus
Technical Support.
Technical Support
To contact Altus Technical Support in São Leopoldo/RS please call +55 (51) 3589-9500. For
information on Altus Technical Support centers in other localities, go to our site (www.altus.com.br)
or send an e-mail to [email protected].
If the software is already installed, please have the following information from our assistance upon
2
1. Introduction
request:
The models of the used equipment and the configuration of installed system
The CPU serial number
The revision of the equipment indicated in the tag in the back of the product
The executive software version described in the special screen INFORMATION
The application program content obtained through MasterTool IEC Programmer
The version of the used programmer
DANGER:
Reports potential hazard that, if not detected, may be harmful to people, materials,
environment and production.
WARNING:
Reports configuration, application or installation details that must be taken into consideration
to avoid any instance that may cause system failure and consequent impact.
ATTENTION:
Identifies configuration, application and installation details aimed at achieving maximum operational
performance of the system.
3
2. Technical Description
2. Technical Description
This chapter presents the DU350 and DU351 controllers technical features.
General Features
DU350, DU351
Number of digital input points 20 insulated digital input points:
14 general purpose digital inputs
6 fast digital inputs (fast inputs can be used as counters or general
purpose inputs)
Number of relay/transistor 16 insulated digital output points:
output points 2 fast output points and 14 transistor output points -DU350
2 fast output points and 14 relay output points - DU351
Number of fast output points 2 fast output points: PTO, PWM, frequency or digital output
Fast counters 6 fast points divided into 2 blocks configurable as uni/bidirectional
(2 counters per block)
Analog inputs 4 analog inputs:
0 to 10 V , 0 to 20 mA or 4 to 20 mA
Analog outputs 2 analog outputs:
0 to 10 V or 0 to 20 mA
Real Time Clock RTC Yes, retains data for 15 days without power supply.
Resolution of 1 second and maximum variance of 2 seconds per
day
Display Graphical monochrome LCD display, with a dot-matrix of 128 x 64
pixels, backlight and contrast control.
Keyboard Membrane keyboard with 25 keys
MODBUS protocol Master and Slave RS-232 and RS-485
Field application download Yes, through COM 1, RS-232
Online programming No
RS-232 interface Yes, one port with modem signals: TXD, RXD, RTS, CTS, DTR,
DSR, DCD
RS-485 interface Yes, non-insulated
Watchdog circuit Yes
External power supply voltage 19 to 30 Vdc
24 Vdc input current 350 mA
Power consumption 8.4 W
Maximum power supply 10 ms @ 24 Vdc
interruption
Power supply insulation Yes
Initialization time 10 s
Related standards IEC 61131-3 2003
Weight 600 g
o
Operation temperature 0 to 60 C
Storage temperature -20 to 75°C
Front panel protection IP 54
Back panel protection IP 20
Dimensions 180.1 x 144.1 x 51 mm
4
2. Technical Description
Notes
RTC: In environments with temperature of 25 °C. The retaining time may vary between 10 and 20 days throughout the
temperature range of the product operation.
Digital Inputs
DU350, DU351
Number of inputs 20 digital inputs divided into 3 insulation groups:
I00..I08 - 9 inputs – Group 0
I10..I18 - 9 inputs – Group 1
I20..I21 - 2 inputs – Group 2
Input voltage 14 to 30 Vdc (common reference) for state 1
0 to 5 Vdc (common reference) for state 0
Input current 5 mA (24 Vdc common reference) – general purpose inputs
15 mA (24 Vdc common reference) – fast inputs
Input type “sink” type 1
Input impedance 4.3 K - general purpose inputs
1.5K - fast inputs
Insulation 2000 Vac for one minute between each input group
2000 Vac for one minute between input group and logic circuit
Terminal block configuration The digital inputs are divided in 3 connectors (insulation groups)
insulated among themselves and insulated from the logic circuit.
Each connector is composed of a terminal block for each input and
a terminal block to the reference voltage.
Inputs I00 to I02 and I10 to I12, are fast inputs. Inputs I00 to I02,
belong to Block 0 fast inputs; inputs I10 to I02 belong to the Block
1 fast inputs. Fast inputs can be used as general purpose inputs.
Response time 0.5 ms – general purpose inputs
10 s – fast inputs
Status indication Can be accessed at product standard screens
5
2. Technical Description
DU350
Number of common outputs 14 transistor digital outputs divided into 2 insulation groups:
Q02 to Q07 – 6 outputs – Group 0
Q10 to Q17 – 8 outputs – Group 1
Maximum current per point 0.5 A
Output type Transistor “source” type
Switching time 600 s
Maximum switching frequency 250 Hz, with minimum external load of 12500
with load
Status indication Can be accessed at product standard screens
Protection TVS diode in all transistor outputs
Operation voltage 10 to 30 Vdc
Insulation 2000 Vac for one minute between each output transistor group
2000 Vac for one minute between output transistor group and logic
circuit
Output impedance 500 m
Terminal block configuration Transistor digital outputs are divided into 2 connectors (insulation
groups). Each connector is made up of a terminal block for each
output, a terminal block to the common contact (supply) and a 0 V
reference terminal block.
6
2. Technical Description
DU351
Number of outputs 14 relay digital outputs divided into 2 insulation groups:
Q02 to Q07 – 6 outputs – Group 0
Q10 to Q17 – 8 outputs – Group 1
Maximum current per point 1A
Output type Normally open relay
Minimum load 5 mA
4
Expected useful life 10x10 operations with rated load
Maximum commutation time 10 ms
Maximum switching frequency 0.5 Hz with maximum rated load
Status indication Can be accessed at product standard screens
Maximum voltage (C6,C8) 30 Vdc insulation group 0
30 Vdc insulation group 1
240 Vac insulation group 1
Insulation 2000 Vac per one minute between each output group
2000 Vac per one minute between output group and logic circuit
Resistance contact < 250 m
Terminal block configuration The relay digital output is divided into 2 connectors (insulation
groups). Each connector is made up of a terminal block for each
output, a terminal block to the common contact to all relays of the
same connector and a 0 V terminal block (only used in transistor
outputs).
ATTENTION:
The use of alternated voltage in pin C6 may cause irreparable damage to the product.
7
2. Technical Description
DU350, DU351
Number of outputs 2 fast:
Q00 and Q01
Maximum current per point 0.5 A
Output type Transistor “source” type
Maximum frequency of pulse 50 kHz
generation
Minimum pulse bandwidth MINIMUM EXTERNAL LOAD MINIMUM PULSE TIME
@ 24 Vdc No load 20 us
1000 4 us
50 2 us
Status indication Through reserved fixed operands
Protection TVS diode in all transistor outputs
Operation voltage 10 to 30 Vdc
Insulation 2000 Vac per one minute between each output group
2000 Vac per one minute between output group and logic circuit
Output impedance 700 m
Terminal block configuration Fast outputs are located in the connector of digital output
insulation group 0. The connector is made up of a terminal block
for each output, a terminal block to the common contact (power
supply) and a 0 V terminal block reference.
ATTENTION:
During the product power on, fast outputs may change the output state for approximately 100 us.
8
2. Technical Description
Analog Inputs
DU350, DU351
Number of inputs 4 non insulated (of logic circuit) analog inputs
Input type Voltage: 0 to 10 Vdc
Current: 0 to 20 mA, 4 to 20 mA
Conversion resolution 12 bits
Terminal block configuration AV0 – voltage input channel 0
AI0 – current input channel 0
C9 – common for inputs 0 and 1
AV1 – voltage input channel 1
AI1 – current input channel 1
AV2 – voltage input channel 2
AI2 – current input channel 2
C10 – common for inputs 2 and 3
AV3 – voltage input channel 3
AI3 – current input channel 3
Configurable parameters Inputs type for each point, voltage or current
Scale limit for each channel, maximum 30000
First order filtering with preset time constants
Protections TVS diode in all analog inputs
Updating Time 60 ms
Voltage Mode
DU350, DU351
Precision 0.3% of scale limit @ 25°C
0.015% / ºC of the scale limit
Crosstalk DC at 100 Hz - 30 dB
Input impedance 1.1 M
Maximum / minimum voltage 12 Vdc / -0.3 Vdc
without damage
Filtering Configurable time constant
90 ms, 140 ms, 1 s or 15 s
Scale Range Counting Sensitivity
0 - 10 V 0 - 30.000 2.52 mV
Scale clearance 3%
9
2. Technical Description
Notes
Filtering: the time constant value may vary by 10% of its nominal value. The maximum deviation of the constant time value
is equal to the sampling rate; e.g., by selecting the time constant of 140 ms, the maximum time required for the voltage
value with filter to have 63% of the input value is of 140 ms * 110% + 60 ms = 214 ms
Counting: the scale limit may be modified by software, the maximum value is 30000.
Scale clearance: defines the percentage over limit scale that can be read by analog inputs. This characteristic may be
used to compensate for possible calibration errors of a given sensor which is employed.
Current Mode
DU350, DU51
Precision 0.3% of scale limit @ 25°C
0.015% / ºC of the scale limit
Crosstalk DC @ 100 Hz - 30 Db
Input impedance 124.5
Maximum/minimum continuous 25 mA / -2 mA
current without damage
Filtering Configurable time constant:
2 ms, 90 ms, 1 s or 15 s
Scale Range Counting Sensitivity
0 - 20 mA 0 - 30.000 5,1 A
4 - 20 mA 0 - 30.000 5,1 A
Diagnostic Current below 3.8 mA (valid only with 4 - 20 mA scale; used to
indicate an open circuit)
Scale clearance 4%
Analog Outputs
DU350, DU351
Number of inputs 2 non insulated (of logical circuit) analog outputs
Output type - Voltage: 0 to 10 Vdc
- Current: 0 to 20 mA
Conversion resolution 12 bits
Terminal block configuration C3 – common for AO0 output.
AO0 – analog output 0 (configurable by software as voltage or
current)
C4 – common for AO1 output
AO1 – analog output 1 (configurable by software as voltage or
current))
Protection TVS diode in all analog outputs
Configurable parameters Type of signal in each channel (voltage or current)
Scale limit per channel, maximum 30000
10
2. Technical Description
Voltage Mode
DU350, DU351
Precision 0.3% of scale limit @ 25°C
0.015% / ºC of scale limit
Crosstalk DC @ 100 Hz - 30dB
Output impedance 22
Minimum load impedance 600
Short circuit protection Yes
Updating time 1 ms
Stabilization time 4 ms
Scale Range Counting Resolution
0 - 10 V 0 - 30.000 2.59 mV
Scale clearance 4%
Over load indication Yes (typically loads with impedance lower than 500 )
Current Mode
DU350, DU351
Precision 0.3% of scale limit @ 25°C
0.015% / ºC of the scale limit
Crosstalk DC at 100 Hz - 30dB
Maximum load impedance 600
Updating time 1 ms
Stabilization time 4 ms
Scale Range Counting Minimum Resolution
0 - 20 mA 0 - 30.000 5.2 A
Scale clearance 4%
Open loop indication Yes (typically loads with impedance greater than 650 )
11
2. Technical Description
Fast Counters
DU350, DU351
Number of counters Up to 4 (32-bit) configurable fast counters
Counting modes Unidirectional
Increments or decrements
Bidirectional
A: Increments B: Decrements
A: Counts B: Direction
Square with two countings per period (2x)
Square with four countings per period (4x)
Data format 32-bit unsigned integer
Operation limit 4.294.967.295
Maximum input frequency 40 kHz for Block 0 and 20 kHz for Block 1
Terminal block configuration Block 0
I00 – Input A (bidirectional) or Block 0 counter 0 (unidirectional
mode)
I01 – Input B (bidirectional) or Block 0 counter 1 (unidirectional
mode)
I02 – Configurable input block 0
Block 1
I10 – Input A (bidirectional) or Block 1 counter 2 (unidirectional
mode)
I11 – Input B (bidirectional) or Block 1 counter 3 (unidirectional
mode)
I12 – Configurable input block 1
Configurable parameters Counting mode
Inputs function
Outputs function
Comparison registers
DU350, DU351
Physical layer RS-232
Protocol MODBUS RTU Master and Slave, communication with
MasterTool IEC programmer and generic protocol
Hardware Signs RTS, CTS, DCD, DTR and DSR
Insulation with logical circuit Yes
Connector RJ45
12
2. Technical Description
DU350, DU351
Physical layer RS-485
Protocol MODBUS RTU Master and Slave and generic protocol
Internal termination No
Insulation with logical circuit No
Connector RJ45
Software Features
DU350, DU351
Programming language IL, ST, LD, SFC, FBD and CFC
Online programming No
Language conversion Conversion of available language codes
Application memory 256 kbytes
Average memory per IL 1000 instructions each 7 kbytes
instructions
Memory for source code 256 kbytes
download
I Data type memory 128 bytes
Q Data type memory 128 bytes
M Data type memory 6656 bytes
Global memory 6656 bytes
Retain 1250 bytes non-volatile memory
Number of POUs 300
IHM programmer Included in the same application developer’s interface
Simulator PLC simulator for application tests without the equipment
Advanced functions Available libraries for advanced control
Code Description
MT8200 MasterTool IEC version 1.0 or above
13
2. Technical Description
Notes
Features: Some of the features described in this CT are only available in certain versions of the MasterTool IEC and
DU350/ DU351 software. For more details see the specific features sections.
Performance
Memory Map
DU350 and DU351 controllers have the following storage areas available for the user application:
Memory Type Size
Non-volatile code Application code 256 kbytes
Volatile data Global Operands 6656 bytes
Memory Operands (%M) 6656 bytes
Input Operands (%I) 128 bytes
Output Operands (%Q) 128 bytes
Non Volatile data Retentive Operands 1250 bytes
Application Times
The required time for distinct instructions to be executed by DU350 and DU351 controllers is shown
in the following table. All measurements were done in LADDER language:
Instruction Operands Instruction times (us)
Overhead indifferent 26 us
Language Restrictions
DU350 and DU351 controllers do not support 64-bit type operands. They are: LWORD, LREAL,
LINT, LREAL and ULINT.
ATTENTION:
LREAL may be handled as REAL by checking this option in the MasterTool IEC programmer.
However, this option will only replace these types of variables, causing them to be handled as
REAL, i.e. 32-bit variables.
14
2. Technical Description
Software Restrictions
DU350 and DU351 controllers do not support breakpoint usage (possibility of freezing the
application currently running for monitoring and debugging) in the “logged-in” mode. The restriction
covers the following functions: Toggle Breakpoint, Breakpoint Dialog, Step Over, Step In and Single
Cycle (Online menu).
Startup Times
DU350 and DU351 controllers have a startup time of 10 seconds.
Cycle Time
The CPU cycle time depends on the application and may vary from 1 to 2000 ms.
WARNING:
Communication with the MasterTool IEC programmer is affected by the cycle time. The
bigger the cycle time, the slower data exchange with it. A cycle time which is too close to 2000
ms may cause a communication time-out in MasterTool IEC. In case the long cycle time is
caused by a problem in the application logic, the following procedure is recommended: de-
energize PLC, press ESC, power it up again, wait for the boot screen, and release the ESC key.
Thus the CPU will not start the application, allowing the corrected application to be
downloaded. If the application requires a very high cycle time (but less than 2000 ms), it is
possible to increase the programming interface time-out. In order to do this, it is necessary to
enter “Project” “Options...” “Desktop”, and change the values of the fields
“Communication timeout [ms]” and “Communication timeout for download [ms]”. The
MasterTool IEC default timeout is 2000 ms for both fields.
15
2. Technical Description
16
2. Technical Description
Physical Dimensions
17
2. Technical Description
Ordering Information
Included Items
The product package contains the following items:
DU350 or DU351 modules
8 connectors
installation guide
Product Code
The following code should be used to purchase the product:
Code Denomination
DU350 PLC WITH HMI 20DI 16DOT 4AI 2AO
DU351 PLC WITH HMI 20DI 14DOR 2DOT 4AI 2AO
Related Products
The following code should be used to purchase the product:
Code Denomination
AL-1714 Cable RJ45 – RJ45 RS-232 (PICCOLO)
AL-1715 Cable RJ45-CFDB9
PO8500 Expansion cable 0.4 m
PO8501 Expansion cable 1.4 m
PO8525 RS-485 network splitter and termination
FBs-USB-232M9 USB-SERIAL Cable Conversor
18
3. Configuration
3. Configuration
DU350 and DU351 controllers are configured and programmed by the MasterTool IEC software. The
established settings specify the behavior and use of peripherals as well as the special characteristics
of the controllers. The programming stands for the application developed by the user, which is also
called “application”.
General
DU350 and DU351 controllers have some general settings which are carried out by writing into some
special operands. These special operands are previously mapped into a specific memory area. Thus,
they can be used as a global variable (simply by employing the name of the operand in any POU of
the project).They are:
CONTRAST = contrast percentage [0 – 100%];
BACKLIGHT = backlight time [0 – 255s].
The names of the operands and how to access them are better described in the special operands list,
located in the section “Maintenance” - “Diagnostics” - “Reserved Operands List”.
Bus
DU350 and DU351 controllers have Inputs and Outputs described in its configuration tree as bus. In
order to access the configuration tree, open the MasterTool IEC and click “PLC Configuration”,
which is located in the “Resources” tab. Then, the module “PLC Configuration” must be expanded.
In this tab most of the required configurations for implementing the DU350/DU351 controllers can
be viewed and configured.
The “Bus” module may be accessed by clicking on “+” to expand its options.
Inputs
DU350 and DU351 controllers inputs are divided into:
Digital Inputs
Analog Inputs
Fast Inputs
These options are shown in the following figure and will be described in the next chapter.
19
3. Configuration
These special operands are previously mapped into a specific memory area. Thus, they can be used as
a global variable. The names of the operands and how to access them are better described in the
special operands list, located in the section “Maintenance” - “Diagnostics” - “Reserved Operands
List”.
Analog Inputs
DU350 and DU351controllers have 4 analog inputs. Each channel may be set up in 3 ways and the
inputs are independent between the channels:
Voltage: 0 to 10 Vdc
Current: 0 to 20 mA
Current: 4 to 20 mA
The analog inputs are available from the pins described in the following table:
Terminal block configuration AV0 – voltage input channel 0
AI0 –current input channel 0
AV1 – voltage input channel 1
AI1 – current input channel 1
C9 – common for inputs 0 and 1
21
3. Configuration
22
3. Configuration
Fast Inputs
DU350 and DU351 controllers have two blocks of 32-bit counters (Block 0 and Block 1). Each block
can operate as one bidirectional counter or as up to two unidirectional counters (Block 0: Counters 0
and 1; Block 1: Counters 2 and 3).
There are 6 terminal blocks of fast inputs, named as I00, I01, I02, I10, I11 and I12, used for counter
handling. These terminal blocks may also be used as common digital inputs, in case the fast inputs
are not used.
These 6 terminal blocks are configured as two counting blocks, called Block 0 and Block 1. Block 0
makes use of the terminal blocks I00 and I01 to perform the counting whereas the terminal block I02
for configurable input. Block 1, in turn, uses the terminal blocks I11 and I10 to perform the counting
and the block I12 is for the configurable input.
Each one of the blocks can be configured independently so that the 2 counting terminal blocks
perform the counting either in the bidirectional mode (using the 2 counting pins for only one counter)
or in the unidirectional mode ( using 1 counting pin for each counter).
In case the block is used as a bidirectional counter, it will have only one counter. Only counter 0 is
used for Block 0, while only counter 2 is used for Block 1.
The block configured as unidirectional block works with only one counter, and uses only one pulse
terminal block, thus allowing the usage of the second terminal block as a common input.
Each of the blocks has an control input. This control input can be used to:
Clear value
Freeze
Preset
Hold
The control input can also be disabled to be used as a common digital input.
23
3. Configuration
Mode 0: A increments, B decrements – in this mode, a rising edge applied to channel A (I00 or
I10) causes an increment of the counter value, while on channel B (I01 or I11) it causes a decrement
in the counting value.
Mode 1: A counting, B direction – in this mode, input A (I00 or I10) is responsible for counting,
whereas the direction is determined by input B (I01 or I11).
If the input B signal is at logic level 0 (during a rising edge in input A), the counter is incremented. If
B is at logic level 1 (during a rising edge in input A) the counter is decremented.
25
3. Configuration
Mode 2 and Mode 3: Square 4x and Square 2x– In these modes the counting units decode the input
signals in squaring according to the usual standard provided by optical transducers.
The direction of counting is obtained from the phase relationship between signals (the counting is
incremented if the pulse in counting input A is ahead in relation to the pulse in counting input B, and
it is decremented if pulse B is ahead in relation to pulse A), while counting pulses are related to the
status transitions.
In mode 2 (4 x squaring) 4 counting pulses are generated per period of input signals (rising and
falling edges of both counting inputs), where a count is generated at each pulse. Therefore, the
employment of an input signal of 20 kHz will cause the counter to be incremented (or decremented)
at a frequency of 80 kHz.
In mode 3 (2x squaring) 2 counting pulses are generated per period of input signals (rising and falling
edges of only one counting input; the second counting input is used to set the counting direction),
where a count is generated at each pulse. Therefore, an input signal of 40 kHz will cause the counter
to be incremented (or decremented) at a frequency of 80 kHz.
26
3. Configuration
Mode 2
Block 0 cf 20 kHz
Block 1 cf 10 kHz
pd – Pulse duration pd > 20 s
te – Minimum space te 20 s
– Phase relation = 9010°
Mode 3
Block 0 cf 40 kHz
Block 1 cf 20 kHz
pd – Pulse duration pd > 10 s
te – Minimum space te 10 s
– Phase relation = 9010°
The following figure points out the set up window of the bidirectional counting modes.
27
3. Configuration
28
3. Configuration
29
3. Configuration
Outputs
DU350 and DU351 controllers outputs are divided into:
Digital outputs (both can operate as counter comparator outputs)
Analog outputs
Fast outputs (both can be used as digital inputs, counter comparator outputs, PWM/VFO outputs
or PTO outputs)
These options are shown in the following figure and are described in the course of this chapter.
Digital Outputs
DU350 and DU351 controllers have 2 digital output blocks with a total of 16 digital outputs divided
into 2 insulation groups. DU350 has 16 transistor outputs (2 fast and 14 normal). DU351 has 14 relay
outputs and 2 transistor fast outputs. The outputs distribution can be seen in the table below.
DU350
Number of common outputs 16 transistor digital outputs divided into 2 insulation groups:
Q00 to Q07 – 8 outputs – Group 0
Q10 to Q17 – 8 outputs – Group 1
DU351
Number of outputs 2 transistor digital outputs:
Q00 to Q01 – 2 outputs – Group 0
14 relay digital outputs divided into 2 insulation groups:
Q02 to Q07 – 6 outputs – Group 0
Q10 to Q17 – 8 outputs – Group 1
30
3. Configuration
Analog Outputs
DU350 and DU351 controllers have 2 analog outputs. Each channel can be configured individually
as an output of:
Voltage: 0 to 10 Vdc
Current: 0 to 20 mA
The analog outputs are available from the pins described in the following table.
Terminal block configuration C3 –common for channel 0 output
AO0 – analog output channel 0
C4 – common for channel 1 output
AO1 – analog output for channel 1
31
3. Configuration
Fast Outputs
DU350 and DU351 controllers have 2 (two) fast outputs. They are located in the connector of digital
output insulation group 0.
The fast outputs are found in the pins described in the table below:
Terminal block configuration Q00 to Q01 – fast output 0 to 1 of insulation group 0
C5 – Reference (0 V), insulation group 0 (shared with the Q02 to
Q07 transistor outputs(DU350))
C6 – Power supply, insulation group 0 ( shared with the Q02 to
Q07 relay outputs (DU351)/transistor(DU350)). Maximum voltage
30 Vdc.
32
3. Configuration
WARNING:
A shielded cable is recommended for fast outputs, in the event of lengths greater than 1 meter
or when other cables are close to the fast output cable.
The configuration of the fast outputs is made through the configuration tree. In order to access the
configuration tree, open the MasterTool IEC and click “PLC Configuration”, which is located in the
“Resources” tab. Then the module “PLC Configuration” must be expanded. In this tab most of the
required configurations for implementing the DU350/DU351 controllers can be configured.
Fast outputs settings are located on the “Bus” module. By expanding this module, the “Inputs” and
“Outputs” modules will appear. In order to set up the fast outputs, the “Outputs” module must be
expanded, and then the “Fast outputs” subnode.
The 2 fast outputs are shown, thus enabling the setup in 4 distinct modes:
PTO
VFO/PWM
Comparator counter 0 or 2
Comparator counter 1 or 3
In addition, in the disabled mode, the outputs work as common digital outputs. The following figure
exhibits the description of each one of the fast output settings.
33
3. Configuration
pulses (5.000 during acceleration/deceleration). The vertical axis represents the frequency, and the
horizontal axis represents the time.
34
3. Configuration
Figure 3-16. Graph Generated by PTO Output Using Trapezoidal Type Profile
The chart in Figure 3-17 shows an actual curve acquisition generated by a PTO output configured
with the trapezoidal profile, 5000000 total pulses, 1000000 pulses in acceleration/deceleration and 50
kHz steady state frequency.
To calculate the number of frequency steps to be performed during acceleration/deceleration for a
trapezoidal profile, the following expression is used:
Where the “divs” integer portion is the number of ramp steps, and Fx_PLS_RMP is the number of
pulses in the ramp (acceleration/deceleration) configured by the user.
Under the above expression, and with values that vary from 0 to 10000 pulses in
acceleration/deceleration ramps, it is obtained an amount of 0 to 100 steps in the ramp. The amount
of steps in the ramp will be limited to 100 for values greater than 10000 ramp pulses, however, the
number of pulses by step will grow proportionately to the number of ramp pulses.
Due to rounding that occurs during the calculation of the profile, some pulses of the ramp may not
happen during the ramp, and are offset during the steady state. In the worst cases the error by step
will be of one pulse.
S type Profile
The value of acceleration is smaller at both the beginning and the end of the profile, being at its peak
at mid-point, and 3.6 times higher than the acceleration of an equivalent trapezoidal-type profile. The
acceleration and deceleration curves are symmetrical.
Figure 3-17. Graph Generated by a PTO Output, Using the S Type Profile
The chart in Figure 3-17 shows an actual curve acquisition generated by a PTO output configured
with the S-type profile, 20000000 total pulses, 5000000 pulse acceleration/deceleration and 50 kHz
of steady state frequency.
To calculate the number of frequency steps to be performed during acceleration/deceleration for a
trapezoidal profile, the following expression is used:
35
3. Configuration
Figure 3-18. Complete Pulse Train (blue) and Soft Stops Examples (red)
Internal Pulse Counter
Each fast output has two pulse counters, one relative and one absolute. Both counters show
information about the number of pulses generated by a PTO-type output in real-time.
The relative counter is reset at each new trigger of the pulse train, and its value grows constantly
along the pulse train.
The absolute counter holds the absolute value of pulses generated by the PTO output and its value
rises or falls according to the Fx_PTO_CNT_DIR command. The value of this counter is reset via
Fx_PTO_CNT_CLR command thus defining a new reference for this counter.
The PTO counting and control pulses registers are:
Fx_PTO_CNT_REL: Fx output relative pulse counter. This counter has only the positive orientation,
and is reset at each new trigger of a pulse train.
Fx_PTO_CNT_ABS: Fx output absolute pulse counter. This counter is incremented or decremented
depending on the status of the Fx_PTO_CNT_DIR operand.
Fx_PTO_CNT_DIR: Defines the direction of the absolute counter. If it is FALSE the counter counts
36
3. Configuration
in the positive direction; if it is TRUE the counter counts in the negative direction. This register is
read once at every trigger, and the changes in its value during a pulse train do not influence the
counting direction.
Fx_PTO_CNT_CLR: Resets the Fx output absolute pulse counter.
Fx_PTO_CNT_CMP0: Comparator 0 of Fx output absolute pulse counter. This operand must be
configured with the desired comparison value.
Fx_PTO_CNT_CMP1: Comparator 1of Fx output absolute pulse counter. This operand must be
configured with the desired comparison value.
Fx_PTO_CNT_DG: Variable containing the PTO pulse counter diagnoses. The diagnoses are: Bit 0 –
Fx_PTO_CNT_MAX_CMP0 and Bit 1 – Fx_PTO_CNT_MAX_CMP1.
Fx_PTO_CNT_MAX_CMP0: Signals that the Fx absolute pulse counter is greater than the
comparator 0.
Fx_PTO_CNT_MAX_CMP1: Signals that the Fx absolute pulse counter is greater than the
comparator 1.
Calculation of the Frequency State
In general, the motors which are used for positioning have a specified resolution. This means that
they specify the number of steps necessary to complete a round. One of the step motor parameters,
for instance, is the angle developed at each step. Thus the number of steps per round may be
calculated by dividing 360 by this amount.
360
p
where: p = number of steps per revolution
= angle developed at each step
On the other hand, the servos hold this data directly in their driver features.
To calculate the frequency state it is necessary to know the nominal motor speed. Step motors, in
general, do not have this parameter properly defined. Manufacturers define a torque curve for speed.
Thus, it is up to the designer to identify the application type as well as the torque speed, and in
accordance to this, define the best target speed. In servomotors this feature is clearly defined. In a
torque x speed chart it is evident a speed range in which the torque remains constant. These speeds
are usually defined in RPM (revolutions per minute).
With this data it is possible to calculate the output frequency state as:
pV
f
60
where: p = number of steps per round
f =PTO output state frequency (Hz)
V = motor target speed (RPM)
For a linear acceleration (trapezoidal profile), the acceleration time may be calculated as follows:
37
3. Configuration
V
t
A
where: t = acceleration time
This is the required time calculated, taking into consideration the motor parameters, in order to get
maximum acceleration. This is also the minimum time in which the motor must remain in the
acceleration phase. From this value on, it is possible to calculate the number of steps during the
acceleration phase. This parameter is passed on to the Fx_PLS_RMP register.
5.5 f t
N
10
where: N = number of pulses in acceleration/deceleration phase
For an S-type profile, the maximum acceleration is 3.6 times higher than the acceleration required for
the trapezoidal profile. Thus, for an S profile, the acceleration time must be 3.6 times greater than the
one calculated for a trapezoidal profile in the same frequency state, so that maximum acceleration
does not exceed the acceleration calculated according to the motor parameters.
PTO Configuration
To configure the PTO output, after following the steps described above, right-click on the subnode
“Fast Output 0 Disabled ” (output 0). A window appears with the options “Replace element ”
“Calculate address ” and “Copy”. Within the item “Replace element” there are the following
options: “Fast Output 0 Disabled ”, “PTO”, “VFO/PWM”, “Comparison Counter 0” and
“Comparison Counter 1”.
By clicking on “PTO”, the “PTO” tab is shown on the right side of the page, where the configuration
of the PTO curve type is done (“Trapeze” or “ S curve”).
described in the special operands list, located in the section “Diagnostics” - “Reserved Operands
List”.
In order to start or stop the pulse generation, two special operands must be used:
Fx_PTO_START = Triggers the pulse train (PTO) in the correspondent fast.
Fx_PTO_STOP = Stops the pulse train (PTO) in the correspondent fast. If there is a trigger in
standby, it will be rejected.
Fx_PTO_SOFTSTOP = Starts the deceleration curve to perform a smooth stop. If this bit is set
during the acceleration, a symmetrical deceleration (previous step) will be
generated. If the bit is set during the steady state, the deceleration curve will
be advanced.
Where “x” is the output number. The logic value 1 enables the operand function.
When the Fx_PTO_START,Fx_PTO_STOP and Fx_PTO_SOFTSTOP are enabled, the system
identifies them, performs a reset (logical value 0) and executes the command.
Fx_PTO_STOP is prior to Fx_PTO_SOFTSTOP. Thus, when both of them go through reset in the
same cycle, only the Fx_PTO_STOP command will be followed, and an abruptly stop will occur.
During the execution of a pulse train it is possible to write on the Fx_PTO_START operand and
prepare a new pulse train which will run at the end of the first trigger. It is also possible to put a
single new trigger in the line. This trigger will use the frequency values, the number of total pulses
and ramp pulses which are configured at the time the new trigger is executed.
WARNING:
The Fx_PTO_STOP command stops the pulse train ,which was started by the
Fx_PTO_START command, abruptly.
VFO/PWM
The variable frequency fast outputs (VFO), and the pulse width modulation (PWM) are used
primarily for interconnection with frequency-voltage converters allowing, for example, the
implementation of two additional analog outputs. The difference between these outputs is a
parameter to be controlled. In VFO the duty cycle is constant and the frequency is variable whereas
in PWM modulation the frequency is constant and the duty cycle is variable.
The following figure illustrates output behavior in both modes:
39
3. Configuration
41
3. Configuration
Positioning Functions
To facilitate positioning operations by using the Duo fast inputs, fast outputs, and analog outputs, a
set of function blocks, which are responsible for the axes positioning is available. No configuration
for the fast inputs and outputs or the analog outputs in the configuration tree is necessary.
The following functions are available in the DuoMotionLib.lib library. In addition to this library, the
SysDuoHwConfig.lib and SysDuoMotionLib.lib, both of which have internal use functions of the
DuoMotionLib library, should also be added to the project.
This library uses a common set of functions that perform boot, referencing of the axes, and a set of
specific positioning functions that should be used for each type of control output.
There are four types of positioning:
1. Use of PTO fast outputs to position the motor connected to the axis, without the return of
another type to validate the motion. It uses the PTO_MOTION function for positioning.
2. Use of PTO fast outputs to position the motor connected to the axis without the return of another
type to validate the motion, but during the referencing it uses the input 0 of the encoder to
reference. It uses the PTO _MOTION function for positioning.
3. Use of PTO fast outputs to position the motor connected to the axis, being the control closed
through a fast counting input connected to an encoder which is also connected to the axis. It uses
the PTO_MOTION function for positioning
4. Use of voltage analog outputs to position the motor connected to the axis, being the control
closed through a fast counting input connected to an encoder which is also connected to the axis.
It uses the ANALOG_MOTION function for positioning.
For each controlled axis an s_MOVE structure, which is described below, must be created. This
structure is responsible for describing the physical patterns of the axis to be positioned. The
CONTROL_TYPE_BYTE parameter indicates which of these types of motion will be performed.
After initializing the structure for some determined input and output, the positioning function must be
called with the same type used in this data structure.
ANALOG_INI and PTO_INI initialization functions do not perform movements, and must be called
from within the program PLC_PRG or by a functional call within this block. On the other hand, the
ANALOG_MOTION and PTO_MOTION positioning functions should be called within programs by
time interruption.
ATTENTION:
This feature is available only as from the executive software version (1.11) and Mastertool IEC
(1.04).
42
3. Configuration
43
3. Configuration
44
3. Configuration
parameter is not relevant.
KP_REAL 0 to 50 Proportional gain of positioning loop.
For the PTO or COUNT_PTO control type, this
parameter is not relevant.
KI_REAL 0 to 50 Integral gain of the positioning loop, activated only at
the end to correct the error in the steady state.
For the PTO or COUNT_PTO control type, this
parameter is not relevant.
TEMPO_ACELERACAO_TIME time t#0s to t#10m Motor acceleration / deceleration time.
LIMITE_DE_PARADA_DINT um 1 to 10.000.000 Tolerance range around the stop position.
In case of sliding greater than the allowable the control
loop opens.
For the PTO or COUNT_PTO control type, this
parameter is not relevant.
ERRO_MAXIMO_DINT um 0 to 10.000.000 Maximum error allowed for the displacement of an axis
to a position.
FIM_CURSO_SW_POSITIVO_ um 1 to 2.000.000.000 Software limit switch in the positive direction of the axis.
DINT When the current value of the position is greater than
the value specified in this parameter is perfomed a soft
stop. This parameter should be set so that this value
will allow stopping before the physical positive limit of
the axis.
FIM_CURSO_SW_NEGATIVO um -1 to -2.000.000.000 Software limit switch in the positive direction of the axis.
_DINT When the current value of the position is less than the
value specified in this parameter is made a soft stop.
This parameter should be set so that this value will
allow stopping before the physical negative limit of the
axis.
TIMEOUT_TIME time t#1s to t#10h Timeout for implementation of axis referencing. If the
reference is not completed after the time set in this
parameter a soft stop of the output is performed without
the completion of the positioning.
COMPENSACAO_DE_FOLGA um -10.000.000 to Clearance for systems with indirect measurement.
_DINT 10.000.000 The compensation signal is used to differentiate
between the situation in which the measurement system
counts, but the axis, due to the clearance, does not
move (use the + sign) and the one in which the axis
moves , but the measuring system, due to the
clearance, starting late count (using sign -).
If the value of play is different from zero and the
functions PTO_MOTION and ANALOG_MOTION try to
use a relative motion, functions will return error
NUMERO_PULSOS_MOTOR_ pulses 1 to 1.000.000 Sets the number of pulses required for a stepper motor
DINT or other motor executes a turn in the axis.
For the COUNT_ANALOG control type, this parameter
is not relevant.
DESLOCAMENTO_MOTOR_DI um 1 to 10.000.000 Sets the displacement in unit of length which
NT corresponds to a turn of the motor.
For the COUNT_ANALOG control type, this parameter
is not relevant.
NUMERO_PULSOS_ENCODE pulses 1 to 1.000.000 Sets the number of pulses generated by an encoder
R_DINT when it performs a turn in the axis. Should be filled with
the nominal number of pulses of the encoder.
DESLOCAMENTO_ENCODER um 1 to 10.000.000 Sets the displacement in unit of length which
_DINT corresponds to a turn of the encoder.
ATTENTION:
The maximum error should be greater than or equal to the ratio
(DESLOCAMENTO_ENCODER_DINT / NUMERO_PULSOS_ENCODER_DINT), ), the same as
the resolution m / pulse, and this resolution must have a value of at least 1.
45
3. Configuration
Referencing Operation
Axis
46
3. Configuration
not correctly positioned. The number of confirmations is used only for the COUNT_PTO type.
In case the positioning is not closed properly, there is the TIMEOUT_TIME parameter that stops the
movement after a set time even if the movement has not been completed successfully.
ANALOG_MOTION Function
ANALOG_MOTION function uses an analog output to act on the system, and the control is fed
through an encoder. This analog output, ranging from 0 to 10 Volts, has an associated digital output
to define the direction of motion, where FALSE sets the positive direction, and TRUE the negative
direction
The analog control is proportional-integral, and the gains are set by the parameters
KP_REAL(proportional gain), and KI_REAL (integral gain), in the S_MOVE structure. However,
integral control is activated only at the end of the theoretical profile route, with the purpose of
correcting the characteristic error of a system that uses only one proportional control. If there is no
need for an integral control, the KI_REAL parameter must be set to zero.
This function must be periodically called by a POU triggered by time interruption, and which must
be configured as described in the chapter “Configuration – POUs triggered by time interruption”. For
a more accurate control, it is recommended to use the shortest possible time for calling the function
(1 ms).
After setting this control module with the ANALOG_INI function, and periodically calling the
ANALOG_MOTION function, the control loop starts in open, signaled as FALSE in
CLOSED_LOOP_BOOL.To close the control loop it is necessary to force its closing through the
CLOSE_LOOP_BOOL command, and also trigger a new positioning via DISP_POS_BOOL
command or trigger a new referencing via DISP_REFER_BOOL command.
When the control loop is closed, the stop limit is being checked. This check is to ensure that in case
of loss of control or undue movement, generated by factors outside the system, the loop will open,
which prevents accidents. The LIMITE_DE_PARADA_DINT parameter of the S_MOVE structure
is responsible for setting the value of the stop limit.
The open control loop can occur in the following ways: by the emergency control command
(EMERGENCIA_BOOL), by passing the stop limit (LIMITE_DE_PARADA_DINT) ,by the
triggering of one limit switch by hardware (FIM_CURSO_HW_POSITIVO_BOOL or
FIM_CURSO_HW_NEGATIVO_BOOL), by restarting the control module with erroneous values in
the structure S_MOVE, by the bursting of the current position or by an attempt to trigger a
positioning with a value (POSICAO_DINT) which is out of range.
By triggering a position or a referencing, the EXECUTANDO_BOOL output will be set, and it will
be cleaned only at the end of the positioning, which may happen due to a successfully completed
positioning or due to some exception, such as bumping into one limit switch.
The monitoring error between the theoretical profile generated by the positioning module and the
current average position through the encoder is shown at the
ERRO_ACOMPANHAMENTO_DWORD output ,and its signal is reported at the
SINAL_ERRO_ACOMPANHAMENTO_BOOL output. With this data it is possible to see the
behavior of the system in relation to gains defined in S_MOVE structure. If the monitoring error is
increasing constantly, this is a sign that the proportional gain does not carry a value which is suitable
enough to cause the real position to track the theoretical position with a constant error. So, the
proportional gain should be increased.
Another important information for the control calibration is the SATURADO_BOOL output. This
output is set when the control theoretical signal exceeds the maximum voltage of the analog output
which is set in TENSAO_MAXIMA_WORD parameter in the S_MOVE structure. The saturation of
the signal leads the monitoring error to increase steadily as described above.
The completion of a positioning occurs when the axis position is detected, and the number of
consecutive confirmations is set at the CONFIRMACOES_WORD parameter of the S_MOVE
structure. If the system can not find a position and an emergency stop is not triggered, the control will
48
3. Configuration
49
3. Configuration
the function is energized it remains running the EXECUTANDO_BOOL output enabled until the
referencing is completed. After completing, the REFERENCIADO_BOOL output is turned on and a
new referencing or positioning can be performed.
DISP_POS_BOOL: Input used to trigger a new placement. The input is sensitive to level. When the
function is performed with this input turned on, if a positioning is not in progress then a new
positioning will be executed. After the function is energized it remains running with the
EXECUTANDO_BOOL output activated until the positioning is completed. After completing, the
POSICIONADO_BOOL output is turned on and a new positioning or referencing may be performed.
SMOVE: Is an instance of the S_MOVE configuration structure used to define the machine
parameters. Previously the POS_INI function must be executed, which verifies the parameters and
consistence and checks if there is some type of error. Any change in this structure should be
performed when the system is stationary, that is, when EXECUTANDO_BOOL is FALSE.
REFER_SENSOR_ZONA_BOOL: Input for the referencing zone sensor. The referencing zone is
always indicated by logical level “1” in this input.
POSICAO_DINT: Indicates the new position for the next movement. In the case of absolute
movement this value must be the new position. In case of relative movement , this value represents
the displacement relative to the current position. For the analog control, in referencing, the value of
this parameter is used as the absolute position for a new position performed automatically at the end
of the referencing.
MODO_POSICIONAMENTO_BOOL: Indicates whether the movement to be performed for the next
trigger is absolute or relative. When this input is FALSE, the movement is absolute and the
positioning is performed in a way that the axis is positioned at the value indicated by the
POSICAO_DINT input. When this input is TRUE, the movement is relative and the positioning will
be performed in a way that the axis is positioned at the current value plus the value of the
POSICAO_DINT input.
AUTO_MANUAL_BOOL: This entry is used to bypass the state of physical limit switch inputs
FIM_CURSO_HW_POSITIVO_BOOL and FIM_CURSO_HW_NEGATIVO_BOOL. When this
input is FALSE the limit switch inputs are treated normally. If this input is TRUE then the limit
switch inputs will be ignored and movements may be performed even if the axis is on its physical
limits. This inputs exists only to enable the axis to be removed from the physical limit in case of stop
due to the limit switch sensor. In this case the input must be triggered and must beware of the
direction in which the motion shall be carried out in order to avoid damage to the equipment. This in
input is interpreted only if the DISP_POS_BOOL input is triggered, so it is not interpreted in the case
of an attempt at referencing. After a completed referencing, if the input is TRUE, the error output
does not remain on even if the axis same is over one limit switch by hardware.
FIM_CURSO_HW_POSITIVO: This input is used to indicate the physical limit in the positive side
of the axis. When this input is triggered, it indicates to the functions that the motion shall not
continue in this direction, or it may cause damages in the structure of this axis. Thus, when this active
sensor is detected, an abrupt stop is performed in the axis so that it will stop immediately without
deceleration. If it is stopped, it is only possible to move the axis through a positioning with the
AUTO_MANUAL_BOOL input on or through a forced shift.
FIM_CURSO_HW_NEGATIVO: This input is used to indicate the physical limit in the negative side
of the axis. When this input is triggered, it indicates to the functions that the motion shall not
continue in this direction, or it may cause damages in the structure of this axis. Thus, when this active
sensor is detected, an abrupt stop is performed in the axis so that it will stop immediately without
deceleration. If it is stopped, it is only possible to move the axis through a positioning with the
AUTO_MANUAL_BOOL input on or through a forced shift.
EMERGENCIA_BOOL: This input is used for emergency. The emergency stop generates an
abruptly stop in the axis and cannot be bypassed in the function, in a way that it can be activated in
case the security mechanisms like the limit switchess come to fail.
SOFTSTOP_BOOL: If a positioning is in progress and the system is accelerating or in target speed,
50
3. Configuration
Error Codes
Function Error Function Error Function Error Description
Code
General error codes
COD_ERRO_EMERGENCIA 1 When abrupt stop occurs due to emergency input
triggering.
51
3. Configuration
52
3. Configuration
Communication
In order to configure the ports, open the MasterTool IEC and click “PLC Configuration”, located in
the “Resources” tab. Then, the module “PLC Configuration” must be expanded.
COM port settings are located in the communication module. By expanding this module, the
“COM1”and “COM2”modules will be shown. In order to configure COM1, for example, click on
“COM1” module. A tab with the port settings will pop up on the right side. There, the following may
be set:
Parity
No parity
Odd
Even
Always 1
Always 0
Stop Bits
1 Stop Bit
53
3. Configuration
2 Stop Bits
Modem Signals
No RTS/CTS
With RTS/CTS
With RTS without CTS
RTS always on
Delay
5 to 1000 ms
ATTENTION:
The time defined in the delay field indicates the minimum time between the reception of a
MODBUS package and the sending of another (delay between frames). This definition refers to the
minimum amount of time, which may vary according to the POUs runtime employed. E.g., if there is
a 20 ms runtime POU, the delay between frames may be of approximately 20 ms, even though it is
configured as 5 ms.
ATTENTION:
Always is added a time of 30 ms at the time defined on the field delay, to the COM2, because the
manner as the serial interface is build. In this case when a time is configured to 15 ms on this field,
the real delay will be 45 ms.
54
3. Configuration
ATTENTION:
For the relation between CPU cycle time and communication with MasterTool IEC, see the warning
message, in the chapter “Technical Description” - “Performance” - “Cycle Time”.
ATTENTION:
Ixx reserved operands(digital inputs), Qxx (digital outputs), AIx (analog inputs) and AOx (analog
outputs) are mapped into I and Q operands, which are accessible via MODBUS. To check the
memory address used for each operand, use the of Operands Reserved List table in this manual.
MODBUS Master
The two COM ports may be configured as MODBUS Master or Slave. To configure COM1 as
MODBUS Master, open the MasterTool IEC, then click “PLC Configuration” located at “Resources”
tab. Then, the module “PLC Configuration” must be expanded.
COM port settings are located in the communication module. By expanding this module, “COM1”
and “COM2” modules will appear. In order to configure COM1, the “COM1” module must be
expanded. Similarly, the “COM2 module” must be expanded to configure the communication
interface of COM2.
By expanding this block, COM1 port will be disabled for MODBUS. To enable it, it is necessary to
click with the right mouse button on the “MToolIEC” module, then select the option “Replace
element” and then choose “MODBUS Master” to enable COM1 as MODBUS Master. For the COM2
Port configuration, the same procedure must be performed, except that for this interface the
“MToolIEC” option is not available.
By clicking on the enabled module “MODBUS Master” two dialog boxes containing the following
options will appear on the right side:
Timeout (ms) – defines the time interval the master will wait for a slave to reply. If the response
time is greater than the value configured in the time-out field, the controller indicates a
communication error in the respective operand (if there is no more Fail Try). In case of time-out
the controller retransmits the packet to a particular slave the number of times defined in the Fail
Try before performing a new defined MODBUS relationship. The time-out may be configured
with values from 1ms to 10 s (10000 ms).
Fail Try – defines the number of times the Master will retransmit the package in case there is no
reply from the Slave (after the configured time). The fail try may be configured from 1 to 10.
After these two configurations, it is necessary to enable the desired MODBUS relations.
55
3. Configuration
56
3. Configuration
MODBUS Relation
A MODBUS relation is a MODBUS protocol message addressed to a particular slave module. It It is
allowed the use of 32 MODBUS relations, distributed to both COM ports (the limit is 16 relations
for each COM port). The relations treatment is done sequentially as soon as they are added to the
configuration tree.
MODBUS relations may be added to the Master by clicking the right mouse button on “MODBUS
Master module” and by selecting the option “Append MODBUS Relation”. Thus, the subnode keys
“MODBUS Relation” will be added to the MODBUS Master.
If the operand COMx_DR is TRUE, the relations of the x port communication are disabled. Where
“x” is the communication port number, which may hold the values 1 or 2.
The following configuration parameters must be adjusted for each relation:
MODBUS Function Read Coils Reads a variable number of digital outputs
Devices Address 1 – 247 Slave address
Quantity 1 – 2000 Quantity to be read
MODBUS Address 1 – 65535 Initial reading MODBUS address on slave
Polling 0 – 10000 ms Time interval between the relation trigger and a new trigger
Type: %M %MX0 - %MX3186 Writing address range of command response value
MasterTool Type: %Q %QX0 - %QX63 Writing address range of command response value
IEC Operand Type: %I Writing is not allowed in the Writing address range of command response value
inputs
57
3. Configuration
MODBUS Function Read Input Registers Reads a variable number of input registers
Devices Address 1 – 247 Slave address
Quantity 1 – 123 Quantity to be read
MODBUS Address 1 – 65535 Initial reading MODBUS address on slave
Polling 0 – 10000 ms Time interval between the relation trigger and a new trigger
Type: %M %MW0 - %MW3186 Writing address range of command response value
MasterTool Type: %Q %QW0 - %QW63 Writing address range of command response value
IEC Operand Type: %I Writing is not allowed in the Writing address range of command response value
inputs
58
3. Configuration
MODBUS Slaves
The two COM ports may be configured as MODBUS Master or Slave. To configure COM1 as
MODBUS Slave, open the MasterTool IEC, then click “PLC Configuration” located in the
“Resources” tab. Then, the module “PLC Configuration” must be expanded.
COM port configurations are located in the Communication module. By expanding this module,
“COM1” and “COM2” modules will appear. In order to configure COM1, the “COM1” module must
be expanded. Similarly, “COM2 module” must be expanded to configure the communication
interface of COM2.
By expanding this block, COM1 port will be disabled for MODBUS. To enable it, it is necessary to
click with the right button of the mouse on the “MToolIEC” module, then select the option “Replace
element”, and then select “MODBUS Slave” to enable COM1 as MODBUS Slave. For the COM2
Port configuration, the same procedure must be performed, except that for this interface the
“MToolIEC” option is not available.
By clicking on the enabled module “MODBUS Slave” a dialog box referring to the MODBUS Slave
will appear on the right side:
59
3. Configuration
Coils
1 – 1024 %QX0.0 - %QX63.15
1025 – 2048 %MX2872.8 - %MX2936.7
Input
1 – 1024 %IX0.0 - %IX63.15
1025 – 2048 %MX2936.8 - %MX3000.7
Holding Register
1 – 2000 %MW0 - %MW1999
Input Register
1 – 870 %MW2000 - %MW2869
60
3. Configuration
ATTENTION:
This feature is available only as from the executive version (1.02) and Mastertool IEC (1.01).
To select this option in the communication port, it is necessary to replace the element currently
configured. By pressing the right mouse button on the desired port, a submenu appears and the
command “Replace element” may be performed. The following figure illustrates this procedure.
61
3. Configuration
62
3. Configuration
63
3. Configuration
64
3. Configuration
GET_TIME (DU35x .lib library) must be used to create a delay as a protocol requirement.
LER_DADOS
This function block has three inputs (VAR_INPUT), four outputs (VAR_OUTPUT) and one input/
output parameter (VAR_IN_OUT) as shown in next figure:
Operation
When the function block is called, it checks whether the channel is not being used by another
65
3. Configuration
instance. If it is not in use, the next step to be performed is checking the configuration. If any of the
parameters of the sPORTA structure has changed in relation to the last setting, the channel is
reconfigured. If any problem occurs, the ERRO output is enabled and the implementation of the
instance is terminated
If the port opening is successful, the instance signalizes that it is using the serial port. Then, data is
ready to be sent, and the process is initialized. If startup fails (FRAMMING, parity error,
STOPBITS...), the ERRO output is enabled and the instance is terminated by releasing the
communication channel. In the case the startup is successful, the instance releases the processing
because it does not lock the application until a FRAME receiving. Thus, it is necessary to process the
function block with a POOLING according to the user needs regarding the recognition of the end of
writing. It is flagged by the PRONTO output.
With such signals, the amount of bytes read and copied to the user buffer is quantified at QTD_LIDO
output. If there are bytes that were not copied at UART BUFFER, this amount is expressed in the
QTD_REST output. The READY signal will remain active until all bytes received by UART are
consumed by the user, which means that the remaining amount must be ZERO.
NOTE:
1- In the function blocks LER_DADOS and ENVIAR_DADOS the sPORTA structure delay must
not be used. Thus the blocks can operate individually, with no time interval between sending and
receiving. If these two functions are in use together to implement a protocol, the delay should be
controlled in the application.
NOTE:
The function blocks LER_DADOS and ENVIAR_DADOS must not be disabled during data
transmission and reception, always it must wait until PRONTO output sets a value that inform the
operation was finishing. In case that this condition is not respected, the function block maybe does
not release the serial port to a new transmition or reception. It is necessary to write a FALSE value
in PORTA_OCUP[x] (x = 0 to COM1 and x = 1 to COM2) global variable to release the serial port
manually.
MESTRE
This function block has six inputs (VAR_INPUT), four outputs (VAR_OUTPUT) and one
input/output parameter (VAR_IN_OUT) as shown in the next figure:
66
3. Configuration
67
3. Configuration
Outputs Description
The outputs are activated in accordance with the behavior described in the following section. They
remain in their states for the period of a cycle, and are cleared in the next cycle
Operation
When the function block is called, it checks whether the channel is not being used by another
instance. If it is not in use, the next step to be performed is checking the configuration. If any of the
parameters of the sPORTA structure has changed in relation to the last setting, the channel is
reconfigured. If any problem occurs, the ERRO output is enabled and the implementation of the
instance is terminated. If the port opening is successful, the instance signalizes that it is using the
serial port.
Then, data is ready to be sent, and the process is initialized. If startup fails, the ERRO output is
enabled and the instance is terminated by releasing the communication channel. In the case the
startup is successful, the instance releases the processing because it does not lock the application until
the end of the sending .Thus, it is necessary to process the function block with a POOLING
according to the user needs. This value must be lower than the lowest DELAY of the others devices
connected to the net.
With such signals, the amount of bytes read and copied to the user buffer is quantified at QTD_LIDO
output. If there are bytes that were not copied at UART BUFFER, this amount is expressed in the
QTD_REST output. The PRONTO signal will remain active until all bytes received by UART are
consumed by the user, which means that the remaining amount must be ZERO.
When the sending is complete, the receiving is released and the process is initialized. If data
receiving fails (FRAMMING, parity errors, STOPBITS, response higher than 256 bytes...) the ERRO
output is enabled and the instance is terminated by releasing the communication channel.
In the case the startup is successful, the instance releases the processing because it does not lock the
application waiting for a FRAME receipt. The function must be processed with a POOLING. The
package receipt is flagged by the PRONTO output. With such signals, the amount of bytes read and
copied to the user buffer is quantified at QTD_LIDO output. If there are bytes that were not copied at
UART BUFFER, this amount is expressed in the QTD_REST output. The PRONTO signal will
remain active until all bytes received by UART are consumed by the user, which means that the
remaining amount must be ZERO .
NOTES:
1- In the function block MESTRE there is no indication that the requisition frame has just been sent,
there are only indications that the response packet was received by the UART (PRONTO on), and
the response packet was copied to the application BUFFER of the user (PRONTO off). Therefore, it
is not possible to use MODEM signals, since there is no way to know the exact moment you should
turn the RTS off.
2-The silence interval time to end a package is of 5 characters.
NOTE:
The serial UART used does not detect errors when the communication occurs with fewer bits. For
instance: a computer configured with 8 data bits and communicating with a Duo with 8 data bits and
without parity. In this case the functions of communication will indicate error. The byte received
should be made to check that the frame is as expected. The same happens if this computer was
configured for 5 data bits, for example.
MODEM Signals
MODEM signals may be accessed through special variables. The following figure illustrates the
declaration of global variables in the reserved operands library focusing on the assignment of
MODEM RTS and CTS signs to the % MB6373 and MB6374% memory position respectively.
68
3. Configuration
ATTENTION:
The reserved variables are listed in the chapter Diagnostic (Reserved Operands List).
ATTENTION:
Special attention should be given when configuring cyclical task assignments in
KEYBOARD_USAGE (concerning its execution interval). Unexpected behavior may occur if a
communication request is made before the serial is reconfigured.
69
3. Configuration
ATTENTION:
The processing task of MAINTARGETVISU_PAINT_CODE display may consume up to 30 ms. Due
to this feature in a communication instance in which the pooling of a master request is less than that
time, a loss of parts of the package in which the processing is running is likely. To prevent loss of
packets, it is recommended , for generic communication the master pooling time to be greater than
30 ms. The time of the MAIN task must also be added to the master pooling time when the main
task is greater than 1ms (large amount of codes and loops may increase runtime). The time may be
measured by output triggering and immediate updating with the AES blocks, or via timers in its own
application.
70
3. Configuration
ATTENTION:
Some items available in the software may not appear in the PLC as displayed by the MasterTool
IEC, consequently demanding adjustments in the size of objects, guidelines and content displayed.
Keyboard
The keyboard of DU350 and DU351 controllers has 25 keys membrane type.
The action of a button may be associated with any screen (Visu) or it may be performed through the
use of the function isKeyPressed().
To perform the handling of a key in relation to the enabled screen, select the desired screen and click
on the menu “Extras”– “Keyboard functions”. It causes the pop up of a window containing the
button actions that will occur when the screen is enabled. To change the screen while pressing a
button, select the option “Zoom ” in the field “Action”, then select the desired key in the field “Key”
and type in the name of the screen that must be enabled while pressing the selected key on the field
“Expression” .
The table below shows the association of the keys with the key names in the MasterTool IEC
software. For instance: the use of “Up Arrow” to enable a screen must be selected from the option
“VK_UP ” from the field “Key”, “ Zoom”, from the field “Action”, and then typing in the name of
the key to be enabled in the field “Expression”.
To associate keys and screens, POU MAINTARGETVISU_INPUT_CODE must be added to the
project. This POU is set internally, and used to update the keyboard; we recommend the use of a
“Cyclical”- type task with a time period of 20 ms to call MAINTARGETVISU_INPUT_CODE
POU. The treatment of the keyboard identifies the pressing of only one key at a time; if two keys
are pressed simultaneously the system understands that there is no key pressed. Thus, the keyboard
should be used by pressing just one key at a time. If a key remains pressed the keyboard treatment
will consider only once pressing regardless of the time it remains pressed.
Other options in the “Action” field are shown in the MasterTool IEC Programming Manual
71
3. Configuration
(MU299608).
The use of keys via isKeyPressed() function, which is located in the SysLibTargetVisu .lib library, is
performed through the key code. The function returns TRUE only if the key whose code was passed
on as a parameter is pressed. Otherwise it returns FALSE. E.g., isKeyPressed (16 # 24,0, 5, 0),
returns TRUE if the main key is pressed. It is important to point out that the isKeyPressed input
parameters in both DU350 and DU351 controllers are necessarily: key code, 0 and 0.
ATTENTION:
To use the keyboard on a screen or with the isKeyPressed () function, the sampling is used. So, once
the key is read, it can not be read again. Therefore, the two features can not be used for the same
key.
ATTENTION:
When the function ControleTelas () is used (present in the navigation logic), the MAIN, UP, and
DOWN keys cannot be used with the functions IsKeyPressed or in Screens
ATTENTION:
Whenever a key is pressed, its register remains when there is a change in the module. If this is done
in the stop mode then an event may be registered as it goes to the “Run” module status.
The table with associations between acronyms and keyboard buttons in the HMI is shown below.
Keyboard position Overlay symbol MasterTool IEC symbol Key code
1 F1 F1 16#70
2 F2 F2 16#71
3 F3 F3 16#72
4 F4 F4 16#73
5 F5 F5 16#74
6 F6 F6 16#75
7 F7 F7 16#76
8 Main VK_HOME 16#24
9 7 [abc] 7 16#37
10 8 [def] 8 16#38
11 9 [ghi] 9 16#39
12 Up arrow VK_UP 16#26
13 -+ Not supported (by symbol) 16#2E
.
14 4 [jkl] 4 16#34
15 5 [mno] 5 16#35
16 6 [pqrs] 6 16#36
17 Left arrow VK_LEFT 16#25
18 Right arrow VK_RIGHT 16#27
19 Esc VK_ESCAPE 16#1B
20 Enter key VK_RETURN 16#0D
21 0 0 16#30
22 1 [tuv] 1 16#31
23 2 [wxzy] 2 16#32
24 3 [%$/] 3 16#33
72
3. Configuration
Notes
13: The function of 13 key is changing the variable signal value between “+” and “-“ or adding the decimal point “.” for real
variables. When it is editing strings this key is used to insert the “+”, “-“ and “-“.
Momentaneous Function Key (KEY_PRESSED)
Through the KEY_PRESSED function it is possible to read the current status of each key of either
the DU350 or the DU351 controller. The usage of this function allows the user to perform continuous
actions through the keyboard without the need to press and release a particular key several times, so
its operation is different from the isKeyPressed function.
This function has a single parameter, which must be completed with the key code of interest. The key
codes are in Table 3 22.
The return of the KEY_PRESSED function is a variable of BOOL type, where TRUE indicates that
the key was pressed at the same moment that the function was performed, and FALSE indicates that
the key was not pressed.
It is possible to read the status of a particular key with up to three keys pressed at the same time. If
more than three keys are pressed at the same time, then the return of function might be not as
expected.
Example of the use of the KEY_PRESSED function:
LEFT_BOOL := KEY_PRESSED(16#25);
When the arrow to the left (VK_LEFT) is pressed, LEFT_BOOL is TRUE, otherwise it is FALSE.
Editing of Variables
For edit a variable by HMI it is necessary to select the field ‘Text input of variable Textdisplay’, as it
is showed in Figure 3-43, in the object when the variable is showing. The fields ‘Min’ and
‘Max’must be filled to editing numerical variables. These fields have no effect in variable that is
editing when these variables are booleans or strings.
73
3. Configuration
The navigation among the editing objects of the same screen is doing through right and left keys, and
it will do the background of the object to stay black. The object can clear pressing the Esc key.
To call the editing of object selected it just press any of numerical keys, and this action will open the
edition screen with the value of key pressed in the field of editing variable. This edition is able to be
doing in another way, pressing Enter key upon the selected object, however when the edition screen
is showed the variable will maintain the current value until it is edited.
Use numerical keys to edit variables and left key to erase any character. If Esc key will press, the
edition will be canceled and the main screen will show again. Press Enter key to confirm an edition.
Editing of Variables type BOOL: to edit variables of type BOOL, just press in the edit screen the
key 0 to 'FALSE' or key 1 to 'TRUE'.
Editing of variables type DATE, TIME_OF_DAY, DATE_AND_TIME: its operation is made
possible by using the key “3” for the special characters “-” and “:”. It is not necessary to mention the
type when this editing occurs via the controller interface as in a PC supervisory.
Editing of variables type TIME: the operation is made possible by using the keys “5” and “6” for
the characters “m” and “s”. It is not necessary to mention the type when this editing occurs via the
controller interface, as in a PC supervisory.
ATTENTION:
The maximum number of editing object in the same screens is 12 objects.
For details about formats and separations of the variable types described above, check the
MasterTool IEC Programming Manual.
Shortcut Keys
DU350 and DU351 controllers have 5 keystrokes that perform special operations. They are:
[MAIN + UP ARROW ] = display/hide the Special Pages (the browsing between pages is made
with the keys upwards and downwards);
[MAIN + DOWN ARROW] = toggle between MODBUS Protocol and Programming Protocol
(COM1 Port);
[PRESSING ESC ON INITIALIZATION] = starts the controller without loading the user
application, thus enabling the application rewriting in case of serious failure or a watchdog action. To
return to current application, just de-energize and energize the controller without pressing ESC.
The functions of special key sequences are previously configured. The user does not need to perform
any special configuration to be able to use them
Special Pages
DU350 and DU351 controllers comprise 7 special pages previously included in the CPU to make the
use and the diagnostic of peripherals easy:
1- DIGITAL INPUTS – displays the status of the 20 digital inputs present in the CPU
2- DIGITAL OUTPUTS – displays the status of the 16 digital outputs present in the CPU
3- ANALOG – displays the values of the registers of the 4 analog inputs and the 2 analog outputs
4- INFORMATION – displays the model information (Model), software version (version) and
serial number (Serial Number)
5- COUNTER – displays the values of the registrars of the 4 counters present in the CPU
74
3. Configuration
ATTENTION:
Use dates from the year 2000 up to the year 2105.
ATTENTION:
It is not possible the use of the RTC function block in POUs started via time interruption.
75
3. Configuration
ATTENTION:
Use %s in lower case. Nothing will be displayed if this declaration is in upper case.
76
3. Configuration
ATTENTION:
Do not use %t in the pages, for this is used by the MasterTool IEC to display the computer system
time where the programmer is running in online mode.
POU Calls
Each user-defined POU must be linked to a task. A task has priority and range of activation. If two
tasks are "ready" to be performed, when the time interval which is defined for each task is past, the
task of higher priority runs in first place. If during the execution of a given task, a second higher-
priority task becomes "ready" after the time interval defined for that task, it will be performed only
after the full execution of the lower-priority task. Each task priority must be set to values 0 - 31 (0 –
higher; 31 - lower).
ATTENTION:
When MasterTool IEC is used in the application simulation mode, the time interruption feature is
not available.
AES_DIGITAL_INPUT
This function updates the normal digital input operands with the current value of the Ixx digital input.
77
3. Configuration
AES_DIGITAL_OUTPUT
This command updates the normal digital outputs with the current value of the Qxx digital output
operand.
AES_ANALOG_INPUT
This function updates the value operands of the AIx, AIx_DG and AIx_OPN analog input and analog
input diagnostics. The update rate of the analog inputs is 60 ms, that is, by employing the
AES_ANALOG_INPUT command, the analog input values are updated with the read values (and
processed by the corresponding filter) in the last complete cycle of 60 ms.
AES_ANALOG_OUTPUT
This function updates the analog outputs with the current value of the AOx operands, and updates
the AOx_DG, AOx_ERR diagnostic operands.
AES_COUNTERS
This function updates the counter with the control operands value CNTx_PRESET, CNTx_CMP0,
CNTx_CMP1, CNTx_CMD, CNTx_CLR, CNTx_STOP, CNTx_LOAD, CNTx_AMG,
CNTx_OVER and updates both the value and the diagnostic operands of the counters CNTx,
CNTx_HOLD, CNTx_DG, CNTx_OVERFLOW, CNTx_UNDERFLOW, CNTx_DIR,
CNTx_MAX_CMP0, CNTx_MAX_CMP1, CNTx_EQ_CMP0, CNTx_EQ_CMP1, CNTx_ZERO.
AES_FAST_OUTPUTS
This function updates the fast outputs with the control operands value Fx_FREQ, Fx_PLS_TOT,
Fx_PLS_RMP, Fx_DUTY, PTO_CMD, VFO_CMD, Fx_PTO_START, Fx_PTO_STOP, Fx_VFO
and updates the fast output diagnostic operands , Fx_PTO_DG, VFO_DG, Fx_PTO_ON,
Fx_PTO_ACE, Fx_PTO_REG, Fx_PTO_DES, Fx_PTO_PRM, Fx_PTO_ERR, Fx_VFO_ON,
Fx_VFO_PRM, Fx_VFO_ERR.
This AES function returns TRUE if it was successfully executed; otherwise it is FALSE . This
situation occurs only if the function has been called in a time-interruption driven POU during a
previous call in another POU (in the main cycle), and if there is some alteration in the operands
employed for the PTO fast output control and configuration.
If the operands used for PTO control and configuration are changed only in the main loop or changed
in the timer-driven POU, the handling of the AES_FAST_OUTPUTS return function is not
necessary (it always returns TRUE for these conditions).
78
3. Configuration
next page of the list as to the last page enabled by the NAVIGATION function block employed. By
pressing the directional key down, the function block enables the previous page as to the last page
enabled by the NAVIGATION function block employed.
Control inputs ENABLE_UPDW, UP, DOWN:
The ENABLE_UPDW control input enables the use of the UP and DOWN inputs. The UP input
behaves the same way as the UP directional key and DOWN behaves the same way as the DOWN
directional key.
Example of use:
In the project template as well as in the chapter “Initial Programming”-“Analyzing the template", an
example of the utilization of the NAVIGATION function block is shown:
Upload
DU350 and DU351 controllers enable the recording of a project in the product memory, which can
be recovered and reused through the MasterTool IEC software.
To store a project in the product memory the DU350/DU351 must be in the “logged” mode, and
“stop” state. In the “Online” menu the option “Source code download” should be selected.
To retrieve the previously stored project the option "Open" in the "File" menu must be selected. On
the file selection page, click on the "PLC ..." button. On the next screen, the DU35x controller must
be selected in the “Configuration” field.
ATTENTION:
The size of memory area used to store a project in DU350/DU351 is 256kB.
ATTENTION:
Upload retrieves the last project stored in the controller as described in the preceding paragraphs. If
the loading occurs only with the purpose to run a given application, it will not be possible to recover
it via the Upload procedure.
Watchdog
DU350 and DU351 controllers comprise a watchdog system that indicates to the user that a cycle
time greater than 2 seconds has occurred. Whenever a watchdog is identified, the CPU displays a
page informing that the system entered the watchdog status. In this case, the physical outputs go to
79
3. Configuration
the safety State and the CPU remains locked until it is restarted (de-energized and energized again).
The WATCHDOG operand is set when there is a watchdog and this operand may be read at the next
system startup. If the operand value is TRUE, it means that there was a watchdog action in the
previous execution. The operand may be cleared by writing the value FALSE, which facilitates the
execution of check applications, and watchdog diagnostic treatment.
If the application is continuously generating watchdog, in order to write a new application, press
ESC when restarting the PLC, as stated in the chapter "Configuration"-"HMI- Human-Machine
Interface"-"Keyboard"-"Shortcut keys". Such action prevents the application to run and allows
communication with the IEC MasterTool software, so that you can write a new application.
The special operand watchdog indication has been previously mapped in a specific area of the
memory. Thus, it may be used as a global variable.
Brownout
DU350 and DU351 controllers have a brownout system that informs the user when the voltage level
in the PLC power supply is below 19 V. There are two ways to diagnose such voltage fall:
1 – If the PLC remains with the voltage below 19 V for more than three seconds, the PLC displays a
page indicating a brownout . The physical outputs go to a safe state and the PLC remains locked until
it is restarted (de-energized and re-energized).
2 – If the PLC power has a voltage drop which takes it to below 19 V, and then returns to a value
greater than 19 V in less than three seconds, the CP is rebooted, and a page signaling that the
controller was restarted via brownout is displayed during the boot, and the BROWNOUT special
operand is set TRUE, thus indicating that the application is running after a brownout reset. The user
may change the BROWNOUT operand value to FALSE during the application execution, facilitating
the execution of verification applications and brownout diagnostic treatment.
The special operand BROWNOUT has been previously mapped in a specific area of the memory.
Thus, it may be used as a global variable. The name of the operand is better described in the list of
special operands in the chapter “Diagnostics”-“Reserved Operands List”.
System Error
DU350 and DU351 controllers comprise an error identification system that alerts the user whenever
there is a critical error event in the system. To identify the error, the controller displays a page
reporting the error, then the physical outputs go to a safe State and the controller remains locked until
it is restarted (de-energized and re-energized).
If the application is generating the error it is necessary to press the ESC key when restarting the PLC
to reprogram the controller, as stated in the chapter "Configuration" - "HMI Human-Machine
Interface" - "Keyboard" - "Short keys", thus preventing the application to run, and enabling
communication with the IEC MasterTool software, so that you can write a new application. If this
procedure does not solve the problem, it is recommended that the user contacts support.
The system errors are identified by the pages containing the information: ERROR + "error number".
Safe State
While the DU350 and DU351 controller are in the safe state , the digital outputs (common and fast)
will be forced to the logic level 0 (FALSE). The analog outputs will be forced to 0 V or 0 A,
depending on the way the output is operating. If the analog outputs are disabled, they will be forced
to 0 V in case of safe state.
The input goes into the safe state in case of:
- Brownout
80
3. Configuration
- Watchdog
- Error indication
- Controller programming
- Stop (via MasterTool IEC software)
81
4. Installation
4. Installation
Electrical Installation
DANGER:
When performing any electrical panel installation, make sure that its main power supply be
de-energized.
82
4. Installation
Connections
The correct connection of the DU350 and DU351 controllers and system modules ensure the
equipment safety, and its proper operation. For that purpose, the following must be checked:
The cables’ diameter and insulation voltage must be consistent with the application.
The cables on mounting panel terminals must be safely and firmly connected.
The system power supply pins and grounding parts must be strong and well connected, ensuring
good current flow.
The connection between equipment and mounting panel ground must be strong and with the
correct cable diameter to ensure proper grounding and noise insulation. It is recommended to use
1.5 mm2 cables.
It is recommended to identify all cables with plastic rings or similar, to make easy the assembly
and maintenance operations.
ATTENTION:
To fix cables at the product terminals blocks an appropriate screwdriver should be used due the size
of the fixing screw diameter. The terminals of digital and analog inputs must be screwed with a
screwdriver with a maximum width of 2.5 mm at its end.
Grounding
The terminal block must be directly connected to the panel grounding bar through a 1.5 mm2
cable.
Analog Interfaces
Shielded cable: it is recommended the use of shielded cables at the analog inputs and outputs. The
shield must be connected to the grounding in only one of the cable ends, preferably grounded on the
side of the closet. If the end is connected to the DU350/DU351 for grounding the shield, a terminal
should be used as close as possible to the analog inputs and outputs.
Common analog input: analog inputs 0 (AV0 or AI0) and 1 (AV1 or AI1) share the same common
terminal block (C9). Similarly, the analog inputs 2 (AV0 or AI0) and 3 (AV0 or AI0) share the same
common terminal block (C10). To use two outputs which share the same common terminal block, the
two commons of the analog input signals must be connected into a terminal chart. As well as the
respective DU350/DU351 common must be connected to the same terminal chart:
83
4. Installation
Diagram Notes
1 – Each analog input channel has two input terminals AVx and AIx. On the use of the channel as an
input voltage only the corresponding AVx terminal should be used. On the use of the channel as
current input, the corresponding AIx terminal should be used.
2 – Channel 0 and channel 1 share the same common terminal. The connection should be made with
a proper terminal chart (as closer as possible of the equipment).
84
4. Installation
Mechanical Assembly
For the correct installation and operation of this product, the panel must be cut according to the
following dimensions shown below. Dimensions in mm.
85
4. Installation
The controller must be installed in the panel, docking first the top.
After duly docked, the tabs must be opened (spinning, like described in the following figure) and the
fixing bolts shall be tight using a proper tool.
86
4. Installation
After these steps, the controller is mounted in the panel and you may start the field connection
wiring. The terminal blocks located at the back of the equipment are identified by the interfaces to
which they belong. The terminal blocks are of the screw type and they are detachable in order to
facilitate the connection. The field wiring must be connected to the equipment without power
sourcing in order to avoid electric shocks. After the connections are checked, the equipment can be
powered.
DU350 and DU351 modules have a protective film on the overlay to protect them from damage
during transportation, and when being handled in the installation phase. Once the module is installed,
this film may be removed allowing for better visualization of the keyboard, and display.
Programming Installation
To perform the installation of MasterTool IEC development software, first you have to download the
setup file on the Altus site (www.altus.com.br).
After the download of the software, close all the active programs on your desktop, and then double-
click the installation file. The following installation page will be displayed:
87
4. Installation
88
4. Installation
89
4. Installation
90
5. Initial Programming
5. Initial Programming
Compiling
In order to perform the full compilation of the project, click on the “Project” menu, and then on
“Compile All”.
WARNING:
Before performing a compilation, or if any problem occurs during the compilation, it is
recommended to click on the “Project” menu “Clean All” to remove any previous
compilation.
91
5. Initial Programming
Download
To download the Project, the communication interface should be properly configured. To configure
the communication interface follow these steps: click on the “Communication” menu and select the
option “Communication parameters ...”. A new connection must be created, and to do that, press the
button “New”. The page in Figure 5.1 is shown so that you may set the connection name. By
clicking OK, the connection is created. The connection parameters must be configured as shown in
Figure 5 2. The communication port on the computer to be used must be configured in order to allow
the connection of the serial which is connected to the PLC. To edit the parameters it is necessary to
double click on the value, and then change this value by using the Up and Down keys on the
keyboard.
WARNING:
The timeout for download must be of 8000 ms at the maximum. The default value is 2000 ms.
It is not recommended to change this value without previous analysis. To configure this item,
click on Project Options..., select Desktop and configure the communication timeout for
download [ms].
After configuring the COM port, click on the “Communication” menu and select “Login”. Thus, the
Project will be sent to the controller. To start up the execution, click on the “Communication” menu
and select “Run”.
92
5. Initial Programming
WARNING:
During the download, the PLC takes its physical outputs to safety mode, as described in
chapter “Configuration” – “Safe State”.
93
5. Initial Programming
to get faster response from the keys, the range of activation of this task may be reduced to obtain the
desired result. However, if the application has a long-cycle task it is recommended to call the
MAINTARGETVISU_INPUT_CODE POU created by a time-interruption driven POU.
The following figure exhibits tasks configuration:
Project Conversion
DU350 and DU351 Modules have some features which were implemented starting from version 1.10
of the software. For this reason, the MasterTool IEC installer, as from version 1.03 has the
configuration of devices for this version “DU350 and DU351 v1.10 ...”. There is also a model project
using this device “Model_DU350_DU351_v110”.
When there are projects using a device of versions previous to the 1.10, and if you want to convert
them to the device of the 1.10 or higher versions, it must be changed in “Device Settings”on the
“Resources” tab. As shown in Figure 5 4, select the “DU350 and DU351 v1.10 ...” device of the open
project and the new settings will be loaded.
Simulation Mode
The MasterTool IEC has an impotant recourse of simulation that allows the users to test their
applications without to use any equipament, it gives more agility at program development. However,
there are some specific features with hardware of DU350/DU351 dependency cannot be simulated.
94
5. Initial Programming
95
6. Maintenance
6. Maintenance
Diagnostics
DU350 and DU351 controllers contain a series of special operands that provide diagnostic data from
several devices in the controller.
For quick access to information, status and diagnostics of inputs and outputs, special pages may be
consulted, as described in the “Configuration”-“Special Screens” chapter.
General Diagnostics
DU350 and DU351 controllers have some general diagnostics which are available through special
registers. These special operands are previously mapped into a specific area of memory. Thus, they
may be employed as a global variable.
BROWNOUT = Indicates a brownout (indicates that the PLC was rebooted due to a power supply
voltage failure).
FALHA_RTC = Indicates loss of the clock information.
FALHA_RETENTIVAS = Indicates a writing error in the retentive variables.
WATCHDOG = Indicates a watchdog in the previous execution.
TAM_APLICATIVO = Size of the user application (number of used bytes).
SOFT_H = Executive version (number before the point).
SOFT_L = Executive version (number after the point).
MODELO = Controller model (350 for DU350 and 351 for DU351).
The BROWNOUT, FALHA_RTC, WATCHDOG, TAM_APLICATIVO, SOFT_H and SOFT_L
operands may be changed through the application and may be used as handled diagnostic
signalization.
The names of the operands and how to access them are better described in the special operands list,
located in the section “Diagnostics” - “Reserved Operands List”.
Troubleshooting
The next table contains the symptoms of some problems as well as their possible causes and
solutions. If the problem persists, contact Altus Technical Support.
Symptom Possible Cause Solutions
De-energize and energize the PLC.
Check the power supply source operation.
Check if the power supply voltage gets to the PLC terminal block
Power supply failure or
Do not turn on with the correct polarization.
incorrect.
Check if the power supply voltage gets to the PLC.
Check if the application screen has proper contrast and backlight
time.
Do not Check the communication cables connection.
Connection or configuration
communicate Check the COM port settings in MasterTool IEC.
Check if the PLC is in Run mode.
Application in Stop mode.
Do not switch Check if the application has more than one screen
Only one screen set up or
screen Check if the keyboard is properly configured for the screen
keyboard not set up.
commutation.
96
6. Maintenance
Check if the visualizations are with the function keys properly set up.
Check if the application uses the isKeyPressed() function, and the
Do not KeyPressed() properly, or if there is a conflict in the keyboard
respond to Keyboard not setup. usage.
the keyboard Check if the MAINTARGETVISU_INPUT_CODE function is called
periodically by some task in the application.
Check if the shortcut keys are responding.
Check if the application has a proper value for the display contrast.
Do not display Application with improper Check if there are configured visualizations for the current
the user contrast value or with no application.
visualization visualizations. Check if the MAINTARGETVISU_PAINT_CODE function is called
periodically by some task in the application.
97
6. Maintenance
PTO
DU350 and DU351 controllers have the following special reserved operands for PTO diagnostics,
where “ x” is the fast output number which can vary from 0 to 1:
Diagnostic Description
Fx_PTO_DG Diagnostic Operand
Fx_PTO_ON Bit 0 - PTO output in progress
Fx_PTO_ACE Bit 1 - PTO output in acceleration
Fx_PTO_REG Bit 2 - PTO output in steady state
Fx_PTO_DES Bit 3 - PTO output in deceleration
Fx_PTO_PRM Bit 4 - PTO output not parameterized
Fx_PTO_ERR Bit 5 - PTO output with parameterization error
Fx_PTO_CNT_DG Diagnostic Operand
Fx_PTO_CNT_MAX_CMP0 Bit 0 - PTO pulse counter greater than the comparator 0
Fx_PTO_CNT_MAX_CMP1 Bit 1 - PTO pulse counter greater than the comparator 1
98
6. Maintenance
MODBUS Diagnostics
Each MODBUS relationship has an operand error counter and one operand which informs the
communication status of the previous cycle.
If the communication port is configured as MODBUS Slave, the COMx_DE operand indicates the
status of the last MODBUS communication performed at the x communication port. The COMx_CE
operand indicates the number of errors that occurred at the x communication port.
If the communication port is configured as MODBUS Master, the COMx_Ry operand indicates the
status of the last MODBUS communication of the y relation of x communication port. The
COMx_Cy operand indicates the number of errors that occurred in the relation y of the
communication port x.
By assigning TRUE for the CLR_ALL_COM operand, 0 will be assigned to all of the error counters
(COMx_CE and COMx_Cy).
Table 6-7 describes the reserved operands related to the MODBUS Protocol diagnostics, where “x” is
the COM port number and “y” is the relation number.
CLR_ALL_COM Clear all error counter of MODBUS communication
COMx_DE Diagnostics in slave mode
COMx_CE Error counter in slave mode
COMx_Cy Error counter of relation y
COMx_Ry Relation y diagnostics
99
6. Maintenance
“Resources” tab. Then, in order to show the special operands list, double-click “Global Variables...”
In this list are described all the special operands. The following table presents these operands with
their memory addresses and functionalities.
Name Address Type Description
MODEM
1 RTS %MB6373 BYTE RTS pin of COM0 port
2 CTS %MB6374 BYTE CTS pin of COM0 port
3 DCD %MB6375 BYTE DCD pin of Com0 port
4 DTR %MB6376 BYTE DTR pin of Com0 port
5 DSR %MB6377 BYTE DSR pin of Com0 port
COM1
6 CLR_ALL_COM %MB6378 BOOL Clear COMs diagnostics
7 COM1_DE %MB6379 BYTE Diagnostics in slave mode
8 COM1_CE %MB6380 BYTE Counter in slave mode
9 COM1_DR %MW3191 WORD Disable relations
10 COM1_C0 %MB6384 BYTE Counter of relation 0
11 COM1_R0 %MB6385 BYTE Diagnostics of relation 0
12 COM1_C1 %MB6386 BYTE Counter of relation 1
13 COM1_R1 %MB6387 BYTE Diagnostics of relation 1
14 COM1_C2 %MB6388 BYTE Counter of relation 2
15 COM1_R2 %MB6389 BYTE Diagnostics of relation 2
16 COM1_C3 %MB6390 BYTE Counter of relation 3
17 COM1_R3 %MB6391 BYTE Diagnostics of relation 3
18 COM1_C4 %MB6392 BYTE Counter of relation 4
19 COM1_R4 %MB6393 BYTE Diagnostics of relation 4
20 COM1_C5 %MB6394 BYTE Counter of relation 5
21 COM1_R5 %MB6395 BYTE Diagnostics of relation 5
22 COM1_C6 %MB6396 BYTE Counter of relation 6
23 COM1_R6 %MB6397 BYTE Diagnostics of relation 6
24 COM1_C7 %MB6398 BYTE Counter of relation 7
25 COM1_R7 %MB6399 BYTE Diagnostics of relation 7
26 COM1_C8 %MB6400 BYTE Counter of relation 8
27 COM1_R8 %MB6401 BYTE Diagnostics of relation 8
28 COM1_C9 %MB6402 BYTE Counter of relation 9
29 COM1_R9 %MB6403 BYTE Diagnostics of relation 9
30 COM1_C10 %MB6404 BYTE Counter of relation 10
31 COM1_R10 %MB6405 BYTE Diagnostics of relation 10
32 COM1_C11 %MB6406 BYTE Counter of relation 11
33 COM1_R11 %MB6407 BYTE Diagnostics of relation 11
34 COM1_C12 %MB6408 BYTE Counter of relation 12
35 COM1_R12 %MB6409 BYTE Diagnostics of relation 12
36 COM1_C13 %MB6410 BYTE Counter of relation 13
37 COM1_R13 %MB6411 BYTE Diagnostics of relation 13
38 COM1_C14 %MB6412 BYTE Counter of relation 14
39 COM1_R14 %MB6413 BYTE Diagnostics of relation 14
40 COM1_C15 %MB6414 BYTE Counter of relation 15
41 COM1_R15 %MB6415 BYTE Diagnostics of relation 15
COM2
42 COM2_DE %MB6419 BYTE Diagnostics in slave mode
43 COM2_CE %MB6420 BYTE Counter in slave mode
44 COM2_DR %MW3211 WORD Disable relations
45 COM2_C0 %MB6424 BYTE Counter of relation 0
46 COM2_R0 %MB6425 BYTE Diagnostics of relation 0
47 COM2_C1 %MB6426 BYTE Counter of relation 1
48 COM2_R1 %MB6427 BYTE Diagnostics of relation 1
100
6. Maintenance
101
6. Maintenance
102
6. Maintenance
103
6. Maintenance
189 PTO_CNT_CMD %MB6276 BYTE Commands for counters of PTO at F0 and F1 fast
outputs.
190 F0_PTO_CNT_DG %MB6277 BYTE Operand mounted by the diagnostics for PTO pulse
counters of F0 output. The diagnostics are
described below.
191 F1_PTO_CNT_DG %MB6278 BYTE Operand mounted by the diagnostics for PTO pulse
counters of F1 output. The diagnostics are
described below.
192 F0_PTO_CNT_REL %MD1565 DWORD PTO relative pulse counter at F0 fast output.
193 F0_PTO_CNT_ABS %MD1566 DWORD PTO absolute pulse counter at F0 fast output.
194 F1_PTO_CNT_REL %MD1567 DWORD PTO relative pulse counter at F1 fast output.
195 F1_PTO_CNT_ABS %MD1568 DWORD PTO absolute pulse counter of F1 fast output.
PTO Commands - F0
196 F0_PTO_START %MX3314.0 BOOL Start the train of pulses (PTO) in the F0 output
197 F0_PTO_STOP %MX3314.1 BOOL Stop the train of pulses (PTO) in the F0 output
198 F0_PTO_SOFTSTOP %MX3314.4 BOOL Start a soft stop at the F0 output
199 F0_PTO_CNT_DIR %MX3138.0 BOOL Define the counting direction of the pulse counter of
F0 output.
200 F0_PTO_CNT_CLR %MX3138.1 BOOL Reset the absolute counter of F0 output.
PTO Commands - F1
201 F1_PTO_START %MX3314.2 BOOL Start the train of pulses (PTO) in the F1 output
202 F1_PTO_STOP %MX3314.3 BOOL Stop the train of pulses (PTO) in the F0 output
203 F1_PTO_SOFTSTOP %MX3314.5 BOOL Start a soft stop at the F1 output
204 F1_PTO_CNT_DIR %MX3138.2 BOOL Define the counting direction of the pulse counter of
F1 output
205 F1_PTO_CNT_CLR %MX3138.3 BOOL Reset the absolute counter of F1 output.
VFO/PWM Commands - F0
206 F0_VFO %MX3314.8 BOOL 0 -> Disable VFO/PWM in the F0 output (stopped
output) 1 -> Enable VFO/PWM in the F0 output
207 F0_VFO_DUTY_SRC %MX3314.10 BOOL Select the duty source, F0_DUTY or F0_DUTY_HR
VFO/PWM Commands - F1
208 F1_VFO %MX3314.9 BOOL 0 -> Disable VFO/PWM in the F1 output (stopped
output) 1 -> Enable VFO/PWM in the F1 output
209 F1_VFO_DUTY_SRC %MX3314.11 BOOL Select the duty source, F1_DUTY or F1_DUTY_HR
PTO Diagnostic - F0
210 F0_PTO_ON %MX3315.0 BOOL PTO output in operation
211 F0_PTO_ACE %MX3315.1 BOOL PTO output in acceleration
212 F0_PTO_REG %MX3315.2 BOOL PTO output in target velocity
213 F0_PTO_DES %MX3315.3 BOOL PTO output in deceleration
214 F0_PTO_PRM %MX3315.4 BOOL PTO output not parameterized
215 F0_PTO_ERR %MX3315.5 BOOL PTO output with parameterization error
216 F0_PTO_CNT_MAX_C %MX3138.8 BOOL Indicates that the pulse counter is greater than the
MP0 comparator 0 at the F0 output.
217 F0_PTO_CNT_MAX_C %MX3138.9 BOOL Indicates that the pulse counter is greater than the
MP1 comparator 1 at the F0 output.
PTO Diagnostic - F1
218 F1_PTO_ON %MX3315.8 BOOL PTO output in operation
219 F1_PTO_ACE %MX3315.9 BOOL PTO output in acceleration
220 F1_PTO_REG %MX3315.10 BOOL PTO output in target velocity
221 F1_PTO_DES %MX3315.11 BOOL PTO output in deceleration
222 F1_PTO_PRM %MX3315.12 BOOL PTO output not parameterized
223 F1_PTO_ERR %MX3315.13 BOOL PTO output with parameterization error
224 F1_PTO_CNT_MAX_C %MX3139.0 BOOL Indicates that the pulse counter is greater than the
MP0 comparator 0 at the F1 output.
225 F1_PTO_CNT_MAX_C %MX3139.1 BOOL Indicates that the pulse counter is greater than the
MP1 comparator 1 at the F1 output.
VFO/PWM Diagnostic - F0
226 F0_VFO_ON %MX3316.0 BOOL Output in operation
227 F0_VFO_PRM %MX3316.1 BOOL Output not parameterized
104
6. Maintenance
105
6. Maintenance
106
7. Special Applications with Serial RS-232
107
7. Special Applications with Serial RS-232
The following figure shows the timing of the RTS, CTS, and TXD signals during data transmission.
In addition, the DCD item (carrier detection) illustrates what happens in a radio DCD signal
receiving that data transmission. The RXD item illustrates what happens in a radio signal RXD
receiving that data transmission.
TRANSMITTER SIDE:
RTS
CTS
TXD
RECEIVER SIDE::
DCD
RXD
ATTENTION:
Some modern and smart radio modems do not require the RTS/CTS handshake, since their PLC
interconnection cable renders both the RTS and the CTS signals unnecessary. These radio modems
manage automatically the carrier activation / deactivation (PTT) and analyze the data signal (TXD).
This management is done via microchip or another smart circuit installed in the radio modem.
108
7. Special Applications with Serial RS-232
RTS
CTS
TXD
ATTENTION:
Some modern and smart RS-232 to RS-485 converters do not require the RTS/CTS handshake,
since their PLC interconnection cable renders both the RTS and the CTS signals unnecessary. These
converters manage automatically the carrier activation / deactivation and analyze the data signal
(TXD). This management is done via microchip or another smart circuit installed in the RS-232 to
RS-485 converter.
109
8. Glossary
8. Glossary
AES Function for instantaneous updating of digital or analog inputs and outputs.
Application Program Program downloaded into the PLC and has the instructions that define how the machinery or process will
work.
ARRAY Used to declare a data structure that holds a series of elements of the same size and type.
Backlight Display background lighting.
Bit Basic information unit, it may be at 1 or 0 logic level.
Brownout Electronic circuit to check the integrity of the power supply operation. Used for triggering a security logic in
case of power failures.
Bus Set of electrical signals that are part of a logic group with the function of transferring data and control
between different elements of a subsystem.
Byte Information unit composed by eight bits.
CPU Central Processing Unit. It controls the data flow, interprets and executes the program instructions as well
as monitors the system devices.
Crosstalk Is interference between two signals theoretically insulated.
Cycle Complete application program implementation of a programmable controller.
Diagnostics Procedures to detect and isolate failures. It also relates to the data set used for such tasks, and serves for
analysis and correction or problems.
Duty Cycle Percentage of time that a periodic square wave signal is at logical level 1 considering the same period of
time.
DWord Double Word.
Encoder Normally refers to position measurement transducer.
Firmware The operating system of a PLC. It controls the PLC basic functions and executes the application programs.
Function block A function block is a POU that provides one or more values during its use. Unlike the function, the
function block does not provide any return value.
Handshake Process by which two machines report to each other that it was recognized and is ready to start the
communication.
Hardware Physical equipment used to process data where normally programs (software) are executed).
HMI Human Machine Interface.
IEC International Electrotechnical Commission. It is an international standards for preparing and publishing
international standards for electrical, electronic and related technology.
IEC 61131-3 Third part of the generic standard for operation and usage of programmable controllers.
Interface Normally used to refer to a device that adapts electrically or logically the transferring of signals between
two equipments.
Interruption Priority event that temporarily halts the normal execution of a program. The interruptions are divided into
two generic types: hardware and software. The former is caused by a signal coming from a peripheral,
while the later is caused within a program.
Kbytes Memory size unit. Represents 1024 bytes.
®
MasterTool IEC The Altus WINDOWS based programming software that allows application software development for
PLCs from the Ponto, Grano, Piccolo, AL-2000, AL-3000 and Quarks series. Throughout this manual, this
software is referred by its code or as MasterTool Programming.
Menu Set of available options for a program, they may be selected by the user in order to activate or execute a
specific task.
MODBUS Data communication protocol for industrial networks created for networks with master-slave architecture.
Module (hardware) Basic element of a system with very specific functionality. It’s normally connected to the system by
connectors and may be easily replaced.
Module (software) Part of a program capable of performing a specific task. It may be executed independently or in conjunction
with other modules through information sharing by parameters.
NAVIGATION Function block for browsing in the user screens via Up arrow and Down arrow keys.
Operands Elements on which software instructions work. They may represent constants, variables or set of variables.
Programmable Also know as PLC. Equipment controlling a system under the command of an application program. It is
Controller composed of a CPU, a power supply and I/O modules.
PLC See Programmable Controller.
POU Program Organization Unit, is a subdivision of the application program that can be written in any of the
available languages.
Programming Language Set of rules, conventions and syntaxes utilized when writing a program.
PTO Pulse Train Output.
110
8. Glossary
111