PL7 - Standard Applications PDF
PL7 - Standard Applications PDF
Related Documentation
TLX DS 57 PL7 xx 3
Related Documentation
4 TLX DS 57 PL7 xx
Table of Contents
5
Automatic symbolization of objects associated with a channel . . . . . . . . . . . . . . 54
Chapter 4 Appendices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Presentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Reminders concerning the configuration editor . . . . . . . . . . . . . . . . . . . . . . . . . . 60
The PL7 toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
The PL7 status bar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
How to declare a module in a PLC rack. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
How to declare a remote module on the FIPIO bus. . . . . . . . . . . . . . . . . . . . . . . 64
Confirming the configuration of a module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Globally reconfiguring an application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Application-specific fault processing (in-rack modules) by program . . . . . . . . . . 68
Processing of FIPIO faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
6
Parameters of 8, 10 or 12 channel TBX discrete outputs remoted on the FIPIO bus
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Parameters of 16 channel TBX discrete outputs remoted on the FIPIO bus . . . 95
Momentum Parameters of Momentum discrete outputs remoted on the FIPIO bus
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Parameters of IP67 discrete outputs remoted on the FIPIO bus. . . . . . . . . . . . . 97
6.4 Configuration of discrete parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Configuring the programmable channels of the TBX DMS 16P22 module . . . . . 99
Modifying the Task parameter of a discrete module . . . . . . . . . . . . . . . . . . . . . 100
Modifying the Wiring check parameter of a TBX discrete module. . . . . . . . . . . 101
Modifying the Monitoring of external supply fault parameter for a discrete module.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Modifying the Functions parameter of a discrete input module. . . . . . . . . . . . . 103
Modifying the Filtering parameter of a discrete input module.. . . . . . . . . . . . . . 105
How to modify the Latching parameter of a discrete input module . . . . . . . . . . 106
Parametering the Run/Stop input of a discrete module. . . . . . . . . . . . . . . . . . . 107
Modifying the Fallback mode parameter of a discrete output module. . . . . . . . 108
Modifying the Reactivation of outputs parameter of a discrete module. . . . . . . 109
7
Exchange management: Exchanges in progress module %MW@module.MOD.0:Xj
or channel %MW@module.i.0:Xj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Exchange management: Module %MW@module.MOD.1:Xj or channel
%MW@module.i.1:Xj report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Explicit exchange objects: General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Explicit exchange object: %MW@module.i.2:Xj channel status . . . . . . . . . . . . 135
Explicit exchange object: Status Module %MW@module.MOD.2:Xj. . . . . . . . . 136
Explicit exchange object: %MW@module.i.3:Xj channel command . . . . . . . . . 137
8
9.4 Bits and words associated with discrete reflex module . . . . . . . . . . . . . . . . . . . 194
Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Implicit exchange language objects associated with module TSX DMY 28 RFK195
Explicit exchange language objects associated with module TSX DMY 28 RFK
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Chapter 13 Bits and words associated with the AS-i function . . . . . . . . 235
At a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
13.1 Addressing objects associated with the AS-i function . . . . . . . . . . . . . . . . . . . . 236
Adressing language objects associated with slave devices connected to the AS-i
bus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
9
13.2 Language objects associated with the AS-i function . . . . . . . . . . . . . . . . . . . . . 237
At a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
Implicit exchange objects associated with the AS-i function . . . . . . . . . . . . . . . 238
Management of exchanges: Module %MWxy.MOD.0:Xj or channel MWxy.0.0 :Xj
exchanges in progress. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Exchange management: Module %MWxy.MOD.1:Xj or channel %MWxy.i.1:Xj
report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
Explicit exchange objects: General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
Explicit exchange objects: %MWxy.0.2:Xj to %MWxy.0.23:Xj channel status. . 242
Explicit exchange object: %MWxy.0.24:Xj channel command. . . . . . . . . . . . . . 244
Explicit exchange object: %MWxy.0.25 to %MWxy.0.56 parameter adjustment 245
Explicit exchange object: Status %MWxy.MOD.2:Xj . . . . . . . . . . . . . . . . . . . . . 246
10
How to modify the general parameters of an AS-i V2 slave: Automatic addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
How to modify the parameters of an AS-i V2 slave. . . . . . . . . . . . . . . . . . . . . . 283
How to modify the parameters of an analog AS-i V2 slave . . . . . . . . . . . . . . . . 284
How to Modify the Parameters of an AS-i V2 Slave with Combined Parameters285
AS-i V2 security device issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
Chapter 20 Bits and words associated with the AS-i V2 function . . . . . . 303
At a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
20.1 Addressing objects associated with the AS-i V2 function . . . . . . . . . . . . . . . . . 304
Addressing Language Objects Associated with Slave Devices Connected to the AS-
i V2 Bus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
20.2 Language objects associated with the AS-i V2 function . . . . . . . . . . . . . . . . . . 305
At a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Implicit exchange objects associated with the AS-i V2 function . . . . . . . . . . . . 306
Exchange management: Module %MWxy.MOD.0:Xj or channel MWxy.0.0 :Xj
exchanges in progress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
Exchange management: Module %MWxy.MOD.1:Xj or channel %MWxy.i.1:Xj
report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Explicit exchange objects: General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
Explicit Exchange Objects: %MWxy.MOD.2 and %MWxy.0.2:Xj to %MWxy.0.73:Xj
channel status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
Constant %KWxy.i.r configuration objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
Explicit Exchange Object: %MWxy.0.74:Xj channel command. . . . . . . . . . . . . 315
Explicit Exchange Object: %MWxy.0.75 to %MWxy.0.138 Parameter Adjustment
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
Explicit Exchange Object: Status %MWxy.MOD.2:Xj . . . . . . . . . . . . . . . . . . . . 317
11
AS-i V2 Protected Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
AS-i V2 Offline Operating Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
AS-i V2 Data Exchange Off Operating Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . 324
12
ADJUST function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
13
14
About the book
At a Glance
Document Scope This manual deals with the software implementation of the applications (except
communication applications) on Premium/Atrium using PL7 software.
Validity Note This updated publication takes account of the functionality of PL7 V4.3. However it
supports the implementation of previous versions of PL7.
Related
Documents
Title of Documentation Reference Number
Hardware installation manual TSX DM 57 xxE
User Comments We welcome your comments about this document. You can reach us by e-mail at
TECHCOMM@modicon.com
TLX DS 57 PL7 xx 15
About the book
16 TLX DS 57 PL7 xx
Shared application-specific
functions
I
Presentation
Subject of this This part gives a general overview of the acknowledgment of specific applications
part by the PL7 software.
TLX DS 57 PL7 xx 17
Shared application-specific functions
18 TLX DS 57 PL7 xx
Common application specific
functions: General
1
Presentation
Subject of this This chapter presents the common application specific functions of the PL7
chapter software.
TLX DS 57 PL7 xx 19
General
General Presentation
Introduction The PL7 software allows for the installation of application-specific functions in
software form (DISCRETE, analog, process control, weighing, etc.).
The application-specific functions are automated functions which interface with the
control part (the PLC program) and the operational part (sensors, actuators and
man/machine interfaces).
0 1 2 3 4
Integrated P
Application-specific
T C
interface S S T module
Y X Y
0
2 5 o 4
6 7 o A
0 1 C
0 0 o
3 m
m
Software The table below gives a short description of the general principle for the installation
installation of an application-specific function. This principle will be covered again later in this
principle manual in more specific detail for each application.
Mode Phase Description
Local Configuration Configuration of the module or built-in interface
Local or online Symbolization Symbolization of variables associated with the
application-specific function.
Programming Programming of the function to be carried out using:
l bit and word objects associated with the module,
l application-specific instructions.
20 TLX DS 57 PL7 xx
General
Note: The order shown above is given as an indication only; the PL7 software
allows the editors to be used interactively in the order required (however, the data
or program editor cannot be used if the I/O modules have not been configured first).
Note: The different screens as well as the objects associated with an application-
specific module are accessible via the software as soon as the module is declared
in the configuration, without it even being necessary to write a program line.
TLX DS 57 PL7 xx 21
General
Introduction The Configuration function makes it possible to define the operating characteristics
of the module or the application-specific interface.
Symbol :
Counter : Function: Task :
Counter 0 Up/Down counting MAST
Input interfaces Event
IA Up/Down counts, application direction EVT 3
Solid state counter Reset Outputs
Line check Multiply Manual
by 1 by 4
Automatic
Preset on IPres Fallback Mode
Reset
Rising edge IPres
Maintain
Read on IRead
Rising edgeIRead
22 TLX DS 57 PL7 xx
General
Confirmation The characteristics defined in the configuration screen must be subject to a global
confirmation of the application. This may be done:
l in local mode, so that the modifications are taken into account,
l in online mode in order to:
l update the configuration parameters in the PLC,
l reconfigure the channel of the module with its new parameters (the adjustment
parameters return to their initial value).
TLX DS 57 PL7 xx 23
General
Introduction The Adjustment function allows the operating parameters of the application-
specific module or interface to be displayed and modified, when they are modifiable.
Symbol :
Counter : Function:
Counter 0 Up/Down counting Counter output state
Preset value
1 000
Initial value 1000
Threshold value
Threshold 2 000
Initial value 2000
Threshold 3 000
Initial value 3000
Setpoint values
High 0
Initial value 0
Low 0
Initial value 0
Confirmation The characteristics defined in the adjustment screen must, depending on the mode,
be subject to:
l local: a global confirmation of the application,
l online: confirmation of the modifications in order to update the current parameters
in the PLC and on the module channel.
24 TLX DS 57 PL7 xx
General
Introduction The Debug function of the module or the built-in application-specific interface
provides the tools to help with debugging of the application-specific function such as:
l display of module channel status,
l display of possible faults,
l control of language objects,
l and, in the event of a fault, access to the module or channel diagnostics,
l ...
This function is carried out in online mode, with the PLC in STOP or in RUN, from
the PL7 debug editor.
Debug
Designation : 8O RELAY 50VA, BORN Version : 1.0
Write
F7 Set
F8 Reset
TLX DS 57 PL7 xx 25
General
26 TLX DS 57 PL7 xx
Objects associated with specific
applications
2
Presentation
Subject of this This chapter presents the addressing and the exchange modes for language objects
chapter associated with PL7 specific applications.
TLX DS 57 PL7 xx 27
Objects associated with specific applications
Presentation
Subject of this This section presents the addressing of language objects associated with
section application-specific modules.
28 TLX DS 57 PL7 xx
Objects associated with specific applications
Presentation The TSX Premium range offers 4 types of built-in application-specific interfaces
such as:
l terminal socket link,
l communication interface,
l FIPIO interface,
l process control channels.
Their addressing depends on the basic topology of the application. In other words:
l on the type of power supply,
l on the processor type.
Processor slot 0
0 F
1 2 3 4
P T i
S S p
Y X i
o
0 2 5 1 2 3 4
6 o F
7 o P T
0 1 i
0 5
C S S p
o Y X
3 m i
m o
8 5
5 7 o 1
0 1 o L F 3 4
0 5 C P T o i
3 o S S o p
m Y X p
m i
s o
8 5
5 7 o
0 4 o
0 5 C
o
3 m
m
Processors slot 1
TLX DS 57 PL7 xx 29
Objects associated with specific applications
Number of The tableau below shows the assignment of built-in application-specific channel
channels addressing depending on the processor used in the application.
Processor Terminal Communication interface FIPIO interface Process control
socket channels
TSX 57-10/20/30 Channel x.0 Channel x.1 - -
TSX 57-102/202/302/402
TSX 57-103
TSX 57-252/352/452 Channel x.2
TSX 57-153
TSX 57-203 - Channels x.4 to x.13
TSX 57-303 Channels x.4 to x.18
TSX 57-253 Channel x.2 Channels x.4 to x.13
TSX 57-353 Channels x.4 to x.18
TSX 57-453 Channels x.4 to x.23
PMX 57-102/202 - Channels x.4 to x.13
PMX 57-352/452 Channel x.2
PCX 57-1012 - Channel 1 - -
PCX 57-3512 Channel 2
PCX 57-203 - Channels 4 to 13
PCX 57-353 Channel 2 Channels 4 to 18
(x): 0 when the processor is in slot 0,
1 when the processor is in slot 1,
30 TLX DS 57 PL7 xx
Objects associated with specific applications
Presentation Addressing input/output module bit and word principal objects is done geopgraph-
ically. That means that it depends:
l on the number (address) of the rack,
l the physical position of the module in the rack,
l the module channel number.
Syntax The table below describes the different elements that make up addressing.
Family Element Values Description
Symbol % - -
Object type I - Picture of the physical input of the module,
Q - Picture of the physical output of the module,
This information is exchanged automatically each cycle of the task to
which they are attached.
M - Internal variable
This reading or writing information is exchanged at the request of the
application.
K - Internal constant
This configuration information is available as read only.
Format (size) X - Boolean
For Boolean objects this element can be omitted.
W 16 bits Single length.
D 32 bits Double length.
F 32 bits Floating. The floating format used is the IEEE Std 754-1985 standard
(equivalent to IEC 559).
Rack address x 0 or 1 TSX 5710/102/103/153, PMX 57102, PCX 571012).
0-7 Other processors.
(1) : the maximum number of slots means that 2 racks must be used for the same address.
TLX DS 57 PL7 xx 31
Objects associated with specific applications
0 1 2 3 4
P A
S S
Y Y
2 2
6 8
0 0
0 0
32 TLX DS 57 PL7 xx
Objects associated with specific applications
Presentation Addressing for the main bit and word objects for modules remoted on the FIPIO bus
is geographical. This means that it depends on:
l the connection point,
l the module type (base or extension),
l the channel number.
Syntax The table below shows the different elements which constitute addressing.
Family Element Values Meaning
Symbol % - -
Object type I - Image of the module's physical input,
Q - Image of the module's physical output,
This information is exchanged automatically on each cycle of the task to
which it is connected.
M - Internal variable
This read or write information is exchanged at the request of the
application.
K - Internal constant
This configuration information is only accessible in read-only.
Format (size) X - Boolean
For boolean-type objects, the X may be omitted.
W 16 bits Single length.
D 32 bits Double length
F 32 bits Floating. The floating format used is that of IEEE standard 754-1985
(equivalent IEC 559).
Module/channel p 0 or 1 Number of the processor's position in the rack.
address and 2 - Channel number of the processor's built-in FIPIO link.
connection point
c 1 to 127 Number of the connection point.
Module position m 0 or 1 0 : base module, 1: extension module.
Channel no. i 0 to 127 MOD: channel reserved for management of the module and the
or MOD parameters shared by all channels.
TLX DS 57 PL7 xx 33
Objects associated with specific applications
34 TLX DS 57 PL7 xx
Objects associated with specific applications
Presentation Addressing for the main bit and word objects associated with the AS-i bus is
geographical. This means that it depends on:
l the number (address) of the rack where the interface card is positioned,
l the physical position of the interface card in the rack,
l the number (address) of the slave device on the AS-i bus.
Syntax The table below describes the different elements which constitute addressing.
Family Element Values Description
Symbol % - -
Object type I - Image of the module's physical input,
Q - Image of the module's physical output,
This data is exchanged automatically on every cycle of the task to which
it is connected.
Rack address x 0 or 1 TSX 5710/102/103/153, PMX 57102, PCX 571012).
0 to 7 Other processors
Module position y 00 to 14 Rack position number.
(1) When the rack number (x) is other than 0, the position (y) has a 2 digit
code: 00 to 14; however, if the rack number (x) = 0, the non-meaningful
zeros are deleted (from the left) from "y" ("x" does not appear and "y"
takes 1 digit for values of less than 9).
Channel no. 0 - The interface card TSX SAY 100 only has one channel.
Slave no. n 0 to 31 Physical address of slave.
Position i 0 to 3 Position of output or input image bit.
(1) : The maximum number of slots requires an extension rack to be used.
TLX DS 57 PL7 xx 35
Objects associated with specific applications
0 1 2 3 4
P T S
S S A
Y X Y
0
2 5 o 1
6 7 o 0
0 1 C 0
0 0 o
3 m
m
0
1
2 P ABE-8R44SB11
3
4 P XVA-S102
36 TLX DS 57 PL7 xx
Objects associated with specific applications
Implicit exchanges
Presentation A built-in specific application interface where the addition of a module automatically
enhances the application of language objects making it possible to program this
interface or module.
These objects correspond to the images of the I/Os of the module or built-in specific
application module.
The %I bits and the %IW words, images of the module's input values are updated
automatically in the PLC processor at the start of the task, whether the task is in
RUN or STOP mode.
The %Q bits and %QW words, images of the module's output values are updated
automatically in the module by the processor at the end of the task, with the task in
RUN mode.
Note: When the task in STOP mode, depending on the configuration chosen:
l the outputs are in the fallback position (fallback mode),
l the outputs are maintained at their last value (maintain mode).
Illustration The graph illustrates the operational cycle relating to a PLC task (cyclical execution).
Internal processing
Acquisition of input
RUN STOP
Program processing
Updating of output
TLX DS 57 PL7 xx 37
Objects associated with specific applications
Examples The table below shows several examples of implicit exchanges relating to a given
application.
Object Specific Description
application
%I103.1 Discrete Gives the status of channel 1 of the module located in position 3 of rack 1.
%IW4.2 Analog Gives the analog value of channel 2 of the module located in position 4 of rack
0.
%IW203.2:X4 Counting Gives the status of the capture input of the module located in position 3 of rack
2.
%Q306.5 Discrete Gives the status of channel 5 of the module located in position 6 of rack 3.
%I6.5.ERR - Indicates, when the bit is set to 1, that channel 5 of the module located in
position 6 of rack 0 is faulty.
%I107.MOD.ERR - Indicates, when the bit is set to 1, that the module located in position 7 of rack
1 is faulty.
38 TLX DS 57 PL7 xx
Objects associated with specific applications
Presentation
Subject of this This section presents the principle of explicit exchanges as well as the different
section instructions which allow them to be carried out.
TLX DS 57 PL7 xx 39
Objects associated with specific applications
Introduction Explicit exchanges are exchanges performed at the request of the user program
using the following instructions:
l READ_STS (reading status words),
l WRITE_CMD (writing command words)
l WRITE_PARAM (writing adjustment parameters),
l READ_PARAM (reading adjustment parameters),
l SAVE_PARAM (saving adjustment parameters),
l RESTORE_PARAM (restoring adjustment parameters),
These exchanges apply to a set of %MW objects of the same type (status,
commands or parameters) on the same channel.
Note: These objects are not necessary for the programming of an application-
specific function, but they provide additional information (e.g.: terminal block fault,
module absent etc.) and additional commands for advanced programming of
application-specific functions (for more information on Explicit exchange objects
relating to a specific application, refer to the corresponding section).
General principle The diagram below shows the different types of explicit exchange possible between
of use for explicit the PLC processor and the module (or the built-in interface).
instructions PLC processor E/S Module or interface
built-in task
%MWxy.i.r objects
or
%MWxy.MOD.r (1)
WRITE_CMD
Command words Command words
WRITE_PARAM
Adjustment parameters READ_PARAM
current
SAVE_PARAM
Adjustment parameters
current
Adjustment parameters
RESTORE_PARAM
initial
40 TLX DS 57 PL7 xx
Objects associated with specific applications
Exchange During an explicit exchange, it may prove advantageous to check on its progress, in
management order, for example, to ensure that the data read is only acknowledged once the
exchange has been completed.
To do this, two types of information are available:
l detection of an exchange in progress,
l the end of exchange report.
The summary below explains the principle for management of an exchange
Execution of an Detection of an Report
explicit exchange exchange in of the end of the
progress exchange
Logical channel The channel %CHxy.i is a general syntax used to update, via the explicit
%CHxy.i instructions, the set of objects of the same type associated with this channel or a
group of channels.
Example: READ_STS%CH102.3
Note: In the case of a channel group, the address used must be that of the first
channel of the group of channels managed by the module.
Limit concerning The number of explicit exchange functions activated simultaneously is limited to 24
the FIPIO bus on the FIPIO bus.
Several cycles of the master task may be required to send an exchange request to
the FIPIO bus, and it is also necessary that the exchange management parameter
words are managed for all explicit variable exchanges (see ).
TLX DS 57 PL7 xx 41
Objects associated with specific applications
Introduction Status words contain information about the functioning state of the module or the
channel.
The READ_STS instruction allows reading in the module (or in the built-in interface)
of these kind of words. This reading updates the %MW status words .
These words can be used to carry out diagnostics by program.
Note: The status words are specific to each task. However, 2 words are used by
all of the modules in the TSX Premium range:
l %MWxy.MOD.2 (module level fault),
l %MWxy.i.2 (channel i level fault).
The table below describes the different elements that are part of the instruction.
Element Description
READ_STS Name of the instruction
%CH Channel-type object
x Rack address.
y Module position.
i Channel or MOD number.
42 TLX DS 57 PL7 xx
Objects associated with specific applications
Examples The example below presents some examples of explicit exchanges using the
READ_STS instruction.
Object Description
READ_STS%CH302.1 Reading the status words of channel 1, which is on the module
situated in position 2 in rack number 3.
READ_STS%CH401.MOD Reading the status words of the module situated in position 1 in
rack 4.
TLX DS 57 PL7 xx 43
Objects associated with specific applications
Introduction The command words act on the module or the channel (e.g.: reactivation of discrete
outputs).
The WRITE_CMD instruction enables the %MW command words to be written
to the module (or the built-in interface).
Objects %MWxy.ir
or
%MWxy.MOD.2
WRITE_CMD
Command words Command words
The table below describes the different elements which constitute the instruction.
Element Description
WRITE_CMD Name of instruction.
%CH Channel-type object.
x Rack address.
y Module position.
i Channel number.
Examples The table below gives an example of an explicit exchange using the WRITE_CMD
instruction.
Object Description
WRITE_CMD%CH3.0 Writing the command information of channel 0 of the module
located in position 3 of rack 0.
44 TLX DS 57 PL7 xx
Objects associated with specific applications
Introduction The READ_PARAM instruction enables the adjustment parameters of the module
(or built-in interface) to be read.
Reading updates the status words associated with the adjustment parameters
%MWxy.i.r .
The table below describes the different elements which constitute the instruction.
Element Description
READ_PARAM Name of instruction.
%CH Channel-type object.
x Rack address.
y Module position.
i Channel number.
Examples The table below gives an example of an explicit exchange using the READ_PARAM
instruction.
Object Description
READ_PARAM%CH3.1 Reading the adjustment parameters of channel 1 of the module
located in position 3 of rack 0.
TLX DS 57 PL7 xx 45
Objects associated with specific applications
%MWxy.i.r objects
WRITE_PARAM
Adjustment parameters Adjustment parameters
current current
The table below describes the different elements which constitute the instruction.
Element Description
WRITE_PARAM Name of instruction.
%CH Channel-type object.
x Rack address.
y Module position.
i Channel number.
Examples The table below gives an example of an explicit exchange using the
WRITE_PARAM instruction.
Object Description
WRITE_PARAM%CH302.1 Writing the adjust parameters of channel 1 of the module
located in position 3 of rack 3.
46 TLX DS 57 PL7 xx
Objects associated with specific applications
Introduction When modifying the module’s (or built-in interfaces’) adjustment parameters, the
SAVE_PARAM instruction allows you to save these new parameters and substitute
them for the initial parameters.
These parameters replace the initial defined values with the help of the configuration
editor (or of the last save ).
The SAVE_PARAM instruction is the equivalent to the order Services → Save
parameters
Note: During a cold start, the current parameters (not saved) are replaced by the
initial parameters.
Adjustment parameters
initial
The table below describes the different elements that are part of the instruction.
Element Description
SAVE_PARAM Name of the instruction.
%CH Channel-type object.
x Rack address.
y Module position.
i Channel number.
TLX DS 57 PL7 xx 47
Objects associated with specific applications
Examples The table below presents an example of explicit exchange using the instruction
SAVE_PARAM.
Object Description
SAVE_PARAM%CH5.2 Reading then saving the adjustment parameters of channel 2,
which is part of the module situated in position 5 in rack number
0.
48 TLX DS 57 PL7 xx
Objects associated with specific applications
Introduction The RESTORE_PARAM instruction allows you to restore the initial adjustment
parameters (written during configuration or during the last save).
The RESTORE_PARAM instruction is the equivalent to the order Services → Save
parameters
Adjustment parameters
initial
The table below describes the different elements that are part of the instruction.
Element Description
RESTORE_PARAM Name of the instruction
%CH Channel-type object.
x Rack address.
y Module position.
i Channel number.
Examples The table below presents an example of explicit exchange using the instruction
RESTORE_PARAM.
Object Description
RESTORE_PARAM%CH1.0 Writing the adjustment parameters of channel 0, which is part
of the module situated in position 1 in rack 0.
TLX DS 57 PL7 xx 49
Objects associated with specific applications
Introduction When data is exchanged between the PLC memory and the module, several task
cycles may be required for the exchange to be acknowledged by the interface card.
2 words are used to manage the exchanges:
l %MWxy.i: Exchange in progress,
l %MWxy.i.1: Report
Note: These words are described in detail in each part on specific applications.
Illustration The illustration below shows the various bits which are significant for exchange
management.
Reconfiguration (X15)
Adjust (X2)
Command (X1)
State (X0)
%MWxy.i.0
%MWxy.i.1
WRITE_PARAM
Adjustment parameters READ_PARAM
SAVE_PARAM
RESTORE_PARAM
Description of Each of the bits of the words %MWxy.i and %MWxy.i.1 is associated with a type of
significant bits parameter:
l position 0 bits are associated with status parameters:
l the bit %MWxy.i.0:X0 indicates whether a status word read request is in
progress,
l position 1 bits are associated with command parameters:
l the bit %MWxy.i.0:X1 indicates whether the control parameters have been
sent to channel i of the module,
l the bit %MWxy.i.1:X1 specifies whether the control parameters have been
accepted by channel i of the module,
50 TLX DS 57 PL7 xx
Objects associated with specific applications
Note: The exchange and report words also exist at module level (%MWxy.MOD
and %MWxy.MOD.1).
When the instruction is scanned by the PLC processor, the Exchange in progress
bit is set to 1 in %MWxy.
When data is exchanged between the PLC memory and the module,
acknowledgment by the interface card is managed by the %MWxy.i.1:X2 bit: Report
(0 = exchange successful, 1=exchange unsuccessful).
TLX DS 57 PL7 xx 51
Objects associated with specific applications
2.4 Presymbolization
Presentation
Purpose of this This section presents the presymbolization function for the objects of a specific
section application.
52 TLX DS 57 PL7 xx
Objects associated with specific applications
Presymbolized objects
Role Certain application specific functions (example: counting, axes request, …) support
an automatic symbolization of the objects which are linked to them.
If you give the generic symbol of the module’s %CHxy.i channel, all of the symbols
of the objects linked to this channel can then be automatically generated on request.
PREFIX_USER_SUFFIX_MANUFACTURER
Example This example shows a counting module situated in slot 3 of the automatic tray.
TLX DS 57 PL7 xx 53
Objects associated with specific applications
Procedure The table below shows the procedure for the automatic symbolization of objects
associated with a channel.
Step Action
1 Access the variable editor.
2 Access to I/O type variables.
Note: The channels whose objects can be symbolized have a letter P on the
button to the left of the%CH address.
3 Double-click on the P button for the channel to be symbolized.
4 Enter the user prefix.
Note: If a symbol is already defined for the channel, the prefix proposed is the
retrieved symbol truncated to 12 characters.
5 Confirm with the Presymbolize button.
De-activating Canceling automatic symbolization, for a given logical channel, makes it possible to
automatic delete all or part of an object's symbols.
symbolization. Two options are proposed:
If the option chosen is … then …
Delete all presymbols No prefix is chosen: all symbols are deleted (including those which have
been modified directly using the editor).
Delete prefixed presymbols Only objects with a prefix identical to that entered are deleted.
54 TLX DS 57 PL7 xx
Application-specific instructions
3
Presentation
TLX DS 57 PL7 xx 55
Application-specific instructions
Application-specific instructions
The parameters are always made up of the following PL7 language objects: words,
word tables, immediate values.
Example of a The SMOVE (method type) function dedicated to movement control modules (TSX
specific CAY and TSX CFY) enables movements to be made.
instruction SMOVE %CH103.2 (01,90,01,10000000,200,0)
Each parameter has a particular meaning:
l 10000000 is the coordinate to be attained in micrometers,
l 200 is the movement speed of the moving part in mm/minute,
l ...
56 TLX DS 57 PL7 xx
Application-specific instructions
Calling up a
function
Step Action
1 Access the required editor.
2 Depending on the editor used, choose one of the following methods to open the
function library.
l Press Shift + F8 (LD, IL,ST editors).
l Click on the (LD editor) icon.
l Select the command Utilities → Enter call for a (IL, ST editors) function.
Note: The function library appears.
EF
Function information Parameters Detail...
Family Lib.V. App.V Name Comment
Characters string 2.00 - SMOVE Automatic movement command
Interpolation Command 1.0 -
Movement Command 2.00 -
Communication 3.07 -
Call format
Parameters of the METHOD:
Name Type Kind Comment Family
Channel MAIN Channel %CH103.2
NRUN WORD IN Movement number 01
G9 World IN G9 90
OK Cancel
TLX DS 57 PL7 xx 57
Application-specific instructions
Step Action
6 Enter each instruction parameter (each instruction is developed in the relevant
application-specific documentation)
l in the customized screen
or
l in the Entry field in the Library Functions screen. To do this, the Parameter
item must be selected in the Function Information field.
7 Click Ok to confirm.
58 TLX DS 57 PL7 xx
Appendices
4
Presentation
Subject of this This chapter introduces several elementary notions that are useful for the installation
chapter of application-specific functions.
Some of these notions are taken from the PL7 Installation and Start-up Guide.
TLX DS 57 PL7 xx 59
Appendices
Presentation The configuration editor enables the various constitutive elements of the PLC to be
declared and configured in a graphical and intuitive manner:
l rack,
l power supply,
l processor,
l application-specific modules.
In online mode the configuration editor also performs debug, adjustment and
diagnostics functions.
0 1 2 3 4 5 6
P T D D D C S I
S S E E S T C S
Y X Y Y Y Y Y P
0 o 0
2 5 3 1 2 2 Y
6 7 o 8 2 6 C 1 1
0 1 C D D R 6 0
0 0 o 2 2 5 0 0
3 m K 1
m
Accessing the The following table shows the different ways of accessing the configuration editor.
editor
From: Action
the menu bar Select Tools → Configuration.
the application Double-click on Hardware configuration or select it using the arrow
browser keys and confirm with Enter.
Application Browser
Structure View
STATION
Configuration
Hardware configuration
Software configuration
Program
MAST Task
Events
DFB types
Variables
Animation tables
60 TLX DS 57 PL7 xx
Appendices
Presentation The software's basic functions can be accessed quickly via the toolbar, using the
mouse.
Access to the different functions is dynamic and varies according to the context.
RUN
RUN STOP
STOP
? ?
? ?
Elements and This table gives the function of each element in the toolbar:
functions
Element Function Element Function
New application Local mode
Cross references
?
?
Help
Function library
?? What's this?
Note: All these functions can also be accessed via the menu.
TLX DS 57 PL7 xx 61
Appendices
At a Glance The status bar, situated at the bottom of the screen, shows a range of information
associated with operational aspects of the software.
1 2 3 4 5 6 7 8
Elements and This table describes the different zones that make up the status bar:
functions
Number Zone Function
1 Information supplies information concerning menu commands, toolbar
icons and the different editors when these are selected.
2 Operating mode indicates the current operating mode (offline, online).
3 PLC state indicates the PLC state (Run, Stop, faulty, etc.).
4 Network address gives the network address of the PLC.
5 Grafcet mode indicates whether Grafcet mode is used in the application.
6 Modification in indicates that the current application has not been saved or is
progress different from the back-up.
7 Animation indicates that the PLC is in online mode.
indicator
8 Keyboard indicates the status of the Insert and All Caps keyboard
functions functions.
62 TLX DS 57 PL7 xx
Appendices
Procedure This operation enables the user to make a software declaration of a module in a PLC
rack.
The example below concerns a Discrete module; the same procedure is used
whatever the type of in-rack module.
Step Action
1 Access the application's hardware configuration screen.
2 Double-click on the slot in which the module is to be configured.
Result: the Add module screen appears.
Add module
Family: Module:
Analog Module1.5 TSX DEY 08D2 8I 24VDC SINK BORN OK
Communication1.5 TSX DEY 16A2 16I 24VAC BORN
Counting1.5 TSX DEY 16A3 16I 48VAC BORN
Remote BusX1.0 TSX DEY 16A4 16I 110/120VACBORN Cancel
Movement1.5 TSX DEY 16A5 16I 220/240VAC BORN
Weighing1.5 TSX DEY 16D2 16I 24VDC SINK BORN
Simulation1.0 TSX DEY 16D3 16I 48VDC SINK BORN
Discrete I/O1.5 TSX DEY 16FK 16I FAST 24VDC SINK CONN
TSX DEY 32D2K 32I 24VDC SINK CONN
TSX DEY 32D3K 32I 48VDC SINK CONN
TSX DEY 64D2K 64I 24VDC SINK CONN
TSX DMY 28FK 16I 24VDC.12S 24 VCC
0 2 3 4
L F
P T o i D
S S o p E
Y X p
s
i
o Y
0
2 5 o 0
6 7 o 8
0 4 C D
0 5 o 2
2 m
m
TLX DS 57 PL7 xx 63
Appendices
Procedure This operation enables the user to make a software declaration of a module
connected to the FIPIO bus.
Note: This operation requires a processor with a built-in FIPIO link.
Step Action
1 Access the application's hardware configuration screen.
2 Double-click on the processor's FIPIO zone.
Result: the FIPIO Configuration screen appears
FIPIO Configuration
TSX 57453 V5.0 Bus length: 0 15 km Devices configured: 0
1
Logical address Communicator Base module Extension module
63 Privileged terminal
12
Families
Module de base
ATV-161.0
ATV-16 1.0 ATV16U09M2/50Hz ATV16 0.37kw240V
ATV 0.37kw 240 V50Hz
50Hz
ATV-581.0 ATV16U09M2/60Hz ATV16 0.5HP 240 V 60Hz
CCX-171.0 ATV16U18M2/50Hz ATV16 0.75kw 240 V 50Hz
CCX17-321.0 ATV16U18M2/60Hz ATV16 1.0HP 240 V 60Hz
MAGELIS1.0 ATV16U18N2/50Hz ATV16 0.75kw 460 V 50Hz
MOMENTUM1.0 ATV16U18N2/60Hz ATV16 1.0HP 460 V 60Hz
PASSERELLE1.0 ATV16U29M2/50Hz ATV16 1.5kw 240 V 50Hz
SIMULATION1.0 ATV16U29M2/60Hz ATV16 2.0HP 240 V 60Hz
STD_P1.0
TBX1.0
Communicator
TSX1.0
TSX FPP 010 PCMCIA Agent Fipio
64 TLX DS 57 PL7 xx
Appendices
Step Action
4 Enter the number of the connection point corresponding to the address where the
module is to be connected (available addresses run from 1 - 62 and 64 - 127;
addresses 0 and 63 are reserved by the system).
By default, the PL7 software proposes the address for the selected connection
point.
5 Enter a comment if necessary.
6 In the Family field, select the type of device to be connected to the bus. (e.g.: TBX,
Momentum, etc.).
7 Select the base module.
8 Select, according to the type of device:
l the base module and/or extension module,
l the communicator.
Note:
l If the reference for the Momentum base module is not already proposed, select
reference OTHER FRD.
9 Click Ok to confirm.
Result: the module is declared.
FIPIO Configuration
TSX 57453 V5.0 Bus length: 0 15 km Devices configured: 1
1
Logical address Communicator Base module Extension module
63 Privileged terminal
TLX DS 57 PL7 xx 65
Appendices
Introduction When a module is declared, and when the configuration or adjustment parameters
are modified, this module's configuration must be confirmed.
Illustration The table below shows where the confirmation of a module's configuration is
positioned within the various hardware installation phases of an application.
Step Description
1 Declaration of a module:
2 Configuration of module channels.
3 Adjustment
4 Confirmation of the configuration of the module.
5 Declaration and/or parametering of new modules
6 Global confirmation of the application
Procedure The table below shows the procedure for confirming the configuration of a module.
Step Action
1 Select Edit → Confirm or use the icon located in the toolbar.
66 TLX DS 57 PL7 xx
Appendices
Illustration The table below shows where the global reconfiguration of an application is
positioned within the various hardware installation phases of an application.
Step Description
1 Declaration of a module:
2 Configuration of module channels
3 Adjustment
4 Confirmation of the configuration of the module
5 Declaration and/or parametering of new modules
6 Global confirmation of the application
Procedure The table below shows the procedure for globally reconfiguring a module.
Step Action
1 Select Edit → Confirm ... or use the icon located in the toolbar.
2 Confirm the reconfiguration:
TLX DS 57 PL7 xx 67
Appendices
Presentation Application-specific fault processing can be performed using the debugging and
diagnostics screens.
It may however be advantageous to use a program to perform this processing.
Algorithm The following algorithm is an application example of the detection and management
application-specific (in rack) module faults by a program.
Test the %S10 bit
(general input/output default)
No No default
%S10=0 ? of input/output
Yes
68 TLX DS 57 PL7 xx
Appendices
Presentation FIPIO fault processing can be performed using the debug and diagnostics screens.
It may however be advantageous to use a program to perform this processing.
Algorithm The algorithm shown is an example of an application algorithm for fault detection
and management on the FIPIO bus
Test the %S10 bit
(general input/output
default)
No No default
%S10=0 ? of input/output
Yes
Locate the default Locate the %SW128 to The location of the default
connection %SW143 word which is connection point may be carried
point via different to 0 out in two distinct ways.
%I\p2c\m.MOD.ERR = 1 The recommended method is
location via the system words
Locate the default %SW128 to %SW143.
connection point via the
%SWi:x word bit which is
different to 0
TLX DS 57 PL7 xx 69
Appendices
70 TLX DS 57 PL7 xx
Discrete specific application
II
Presentation
Subject of this This part presents the Discrete application-specific function on the TSX/PCX57 PLC
part and describes its installation using PL7 Junior and Pro software.
TLX DS 57 PL7 xx 71
Discrete specific application
72 TLX DS 57 PL7 xx
General presentation of the
discrete application -specific
function 5
Introduction to the Discrete Application
Note: In order to access the latter, the configured processor must have a built-in
FIPIO link.
In order to install the discrete application, its physical context (rack, power supply,
processor, modules or hardware, etc.) must be defined and the necessary software
installation carried out.
This second aspect will be carried out from the different PL7 editors:
l either in local mode,
l or in connected mode; in this case the modification is limited to certain
parameters.
TLX DS 57 PL7 xx 73
General presentation
Implementation The table below shows the different installation phases of the discrete application-
specific function.
Mode Phase Description
Local Declaration of a module Choice:
in-rack module (See How to l of geographical position
declare a module in a PLC l number and slot for an in-rack module,
rack, p. 63) l connection point for a remote module,
or l of module type.
remoted on the FIPIO bus
(See How to declare a
remote module on the FIPIO
bus., p. 64)
Configuration of module Input of the configuration parameters.
channels (See Configuration
of discrete parameters,
p. 98)
Adjustment (See Adjusting Entry of initial adjustment parameters (only on TSX DMY 28 FRK).
the configuration
parameters of a reflex
function, p. 192)
Confirmation of Confirmation of module level.
configuration parameters
(See Confirming the
configuration of a module.,
p. 66)
Global confirmation of the Confirmation of application level.
application (See Globally
reconfiguring an
application., p. 67)
Local or Symbolization Symbolization of variables associated with the application-specific
connected function.
Programming Programming of functions to be performed by the application
using:
l bit and word objects associated with the module,
l specific application instructions.
74 TLX DS 57 PL7 xx
General presentation
Note: The order shown above is given as an indication only; the PL7 software
allows the editors to be used interactively in the order required (however, the data
or program editor cannot be used unless the I/O modules have been configured
first).
TLX DS 57 PL7 xx 75
General presentation
76 TLX DS 57 PL7 xx
Configuration of the discrete
specific application
6
Presentation
Subject of this This chapter describes the Configuration aspect of the installation of the discrete
chapter specific application.
TLX DS 57 PL7 xx 77
Configuration of the discrete specific application
Presentation
Purpose of this This section describes the basic operations required for configuring a Discrete
section module.
78 TLX DS 57 PL7 xx
Configuration of the discrete specific application
Presentation The module's configuration screen, selected in the rack or on the FIPIO bus,
displays the parameters associated with the Discrete.
Illustration This screen gives access to parameter viewing and modification in local mode, and
debugging in online mode.
1 TSX DMY 28FK [RACK 0 POSITION 2]
Configuration Inputs
Designation : 16I 24VDC, 12O 24
2
Chan. Symbol Supply Monit. Task Filter Function
0 Active MAST 4 ms
1 4 ms
2 4 ms
3 4 ms
4 4 ms
5 4 ms
6 4 ms
3 7 4 ms
8 MAST 4 ms
9 4 ms
10 4 ms
11 4 ms
12 4 ms
13 4 ms
14 4 ms
15 4 ms
Description The table below shows the different elements in the configuration screen, along with
their functions.
Number Element Function
1 Title bar Indicates the reference and physical position of the selected module along with the rack number
for in-rack modules or the FIPIO connection point for remote I/Os.
2 Module Enables the user t select:
zone l the installation phase:
l Configuration,
l Adjustment (only for TSX DMY 28 RFK),
l Installation (diagnostics), only accessible in online mode.
l the type of channels (inputs or outputs), if the designated module has both inputs and
outputs,
l the program part for TBX DMS 16P22 modules.
Displays the designation of the selected module.
Displaying this zone is optional. The option is activated using the command View → Module
zone.
3 Channel Enables the different channels to be parametered. The Symbol column displays the symbol
zone associated with the channel when this has been defined by the user (via the variables editor).
TLX DS 57 PL7 xx 79
Configuration of the discrete specific application
Procedure This operation enables the user to access the configuration parameters for the
channels of a discrete module.
Step Action
1 Access the module's hardware configuration screen.
2 Double-click on the module to be configured or select the module and execute the
command Service → Open the module.
Result: The configuration screen for the selected module appears.
TSX DMY 28FK [RACK 0 POSITION 2]
Configuration Inputs
Designation : 16I 24VDC, 12O 24 VDC
80 TLX DS 57 PL7 xx
Configuration of the discrete specific application
TLX DS 57 PL7 xx 81
Configuration of the discrete specific application
Accessing the configuration screen for a discrete module remoted on the FIPIO
bus
Procedure This operation enables the user to access the configuration parameters for the
channels of a discrete module remoted on the FIPIO bus.
Step Action
1 Access the module's hardware configuration screen.
2 Double-click on the processor's FIPIO zone.
3 Double-click on the module to be configured or select the module and execute the
command Service → Open the module.
Result: The configuration screen for the selected module appears.
82 TLX DS 57 PL7 xx
Configuration of the discrete specific application
Introduction The configuration editor provides a set of functions which enable the user to input or
modify the parameters of modules such as:
l contextual menus,
l single or multiple selection of channels,
l cutting/pasting of parameters (using the contextual menus).
Accessing the These can be accessed by right-clicking with the mouse, and give quick access to
contextual the main commands.
menus
If the element to be selected is... Then the available functions are...
the cell Copy parameters
Paste parameters
the module zone (except in tables) Undo modifications
Confirm
Animate
Selecting a The table below shows the procedure for selecting a module channel cell or channel.
channel or cell
Step Action
1 Left-click on the required cell or channel number.
Selecting a The table below shows the procedure for selecting a group of consecutive channels
group of of a module.
consecutive
Step Action
channels
1 Select the first channel.
2 Press Shift and click on the last channel.
Selecting a The table below shows the procedure for selecting a group of non-consecutive
group of non- channels of a module.
consecutive
Step Action
channels
1 Select the first channel.
2 Press Ctrl and click on each of the channels in turn.
TLX DS 57 PL7 xx 83
Configuration of the discrete specific application
Selecting a The table below shows the procedure for selecting a group of consecutive cells of a
group of module.
consecutive
Step Action
cells
1 Select the first cell.
2 Move the mouse up or down whilst holding down the mouse button, then
release the button when the last cell has been reached.
84 TLX DS 57 PL7 xx
Configuration of the discrete specific application
Presentation
Subject of this This section presents the different input channel parameters by type of Discrete
section module.
TLX DS 57 PL7 xx 85
Configuration of the discrete specific application
Presentation Discrete input modules contain parameters per channel, or per group of 8 or 16
consecutive channels.
Parameters The table below shows the parameters available for each in-rack discrete input
module.
Module Number of Associated task Function Filtering Supply fault
Reference inputs (8 channel group) (per channel). (per channel). monit.
(16 channel
group)
TSX DEY 08D2 8 Mast / Fast - - Active / Inactive
TSX DEY 16A2 16 Mast / Fast / None - - Active / Inactive
TSX DEY 16A3 16 Mast / Fast / None - - Active / Inactive
TSX DEY 16A4 16 Mast / Fast / None - - Active / Inactive
TSX DEY 16A5 16 Mast / Fast / None - - Active / Inactive
TSX DEY 16D2 16 Mast / Fast / None - - Active / Inactive
TSX DEY 16D3 16 Mast / Fast / None - - Active / Inactive
TSX DEY 32D2K 32 Mast / Fast / None - - Active / Inactive
TSX DEY 32D3K 32 Mast / Fast / None - - Active / Inactive
TSX DEY 64D2K 64 Mast / Fast / None - - Active / Inactive
TSX DMY 16FK 16 Mast / Fast / None Normal or (1) 4 ms or (2) Active / Inactive
TSX DMY 28FK 16 (input part) Mast / Fast / None Normal or (1) 4 ms or (2) Active / Inactive
TSX PAY 262 8 (input part) Mast / Fast / None - - -
TSX PAY 262 8 (input part)
TSX DMY 28RFK 16 (input part) Mast / Fast / None - 4 ms or (2) Active / Inactive
Key:
(1) Memorization of status 0 or 1, event processing on rising edge (RE), on falling edge (FE) or both
together.
(2) 0.1 to 7.5 ms
Note:
l Parameters in bold correspond to the parameters configured by default.
l The modules' first group of channels (addresses from 0 to 7) is always assigned
to a Mast or Fast task. The following groups also have the choice of: None (no
task associated with the group of unused channels).
86 TLX DS 57 PL7 xx
Configuration of the discrete specific application
Presentation The Discrete TBX input modules on the FIPIO bus have parameters per channel and
for all channels.
Parameters The table below shows the parameters available for each TBX discrete input
module.
Module Number of Associated task Filtering Latching (per Wiring Check
Reference inputs (for the module) (per channel) channel) (per channel)
TBX CEP 1622 16 Mast / Fast - - -
TBX DES 1622 16 Mast / Fast - - -
TBX DES 1633 16 Mast / Fast - - -
TBX EEP 1622 16 Mast / Fast - - -
TBX DMS 1025 8 (input part) Mast / Fast - - -
TBX DMS 1625 8 (input part) Mast / Fast - - -
TBX DES 16S04 16 Mast / Fast - - -
TBX DMS 16S44 (1) Mast / Fast - - Active / Inactive
TBX DMS 16P22 8 (input part) Mast / Fast - - Active / Inactive
TBX DES 16C22 16 Mast / Fast - - Active / Inactive
TBX EEP 08C22 16 Mast / Fast - - Active / Inactive
TBX DMS 16C22 8 Mast / Fast - - Active / Inactive
TBX DMS 16C222 8 Mast / Fast - - Active / Inactive
TBX DES 16F22 16 Mast / Fast Normal / Fast Active / Inactive -
Key:
(1) 8 input channels + 8 programmable input or output channels.
TLX DS 57 PL7 xx 87
Configuration of the discrete specific application
Presentation The Discrete Momentum input modules on the FIPIO bus have parameters for all
channels.
Parameters The table below shows the parameters available for each Momentum discrete input
module.
Module Reference Number of inputs Associated task (for the
module)
170 ADI 340 00 16 Mast / Fast
170 ADI 350 00 32 Mast / Fast
170 ADM 350 10 16 (input part) Mast / Fast
170 ADM 390 30 10 (input part) Mast / Fast
170 ADM 370 10 10 (input part) Mast / Fast
88 TLX DS 57 PL7 xx
Configuration of the discrete specific application
Presentation The Discrete IP67 input modules on the FIPIO bus have parameters for all channels.
Parameters The table below shows the parameters available for each IP67 discrete input
module.
Module Reference Number of inputs Associated task (for the
module)
TSX EEF 08D2 8 Mast / Fast
TSX EEF 16D2 16 Mast / Fast
TSX EMF 16DT2 8 (input part) Mast / Fast
TLX DS 57 PL7 xx 89
Configuration of the discrete specific application
Presentation
Subject of this This section presents the different output channel parameters by type of Discrete
section module.
90 TLX DS 57 PL7 xx
Configuration of the discrete specific application
Presentation 8-channel discrete output modules have parameters per channel or for all channels.
Parameters The table below shows the parameters available for each in-rack 8-channel discrete
output module.
Group of 8 channels Channel by
channel.
Module Reference Associated Reactivation Fallback Supply fault Fallback
task mode monit. value
TSX DSY 08R4D Mast / Fast Programmed / Automatic Fallback / - 0/1
Maintain
TSX DSY 08R5A Mast / Fast Programmed / Automatic Fallback / - 0/1
Maintain
TSX DSY 08S5 Mast / Fast Programmed / Automatic Fallback / - 0/1
Maintain
TSX DSY 08T2 Mast / Fast Programmed / Automatic Fallback / Active / Inactive 0/1
Maintain
TSX DSY 08T22 Mast / Fast Programmed / Automatic Fallback / Active / Inactive 0/1
Maintain
TSX DSY 08T31 Mast / Fast Programmed / Automatic Fallback / Active / Inactive 0/1
Maintain
TSX DSY 08R5 Mast / Fast Programmed / Automatic Fallback / - 0/1
Maintain
TLX DS 57 PL7 xx 91
Configuration of the discrete specific application
Presentation Discrete output modules with more than 8 channels have parameters per channel
or for all channels.
Parameters The table below shows the parameters available for each in-rack discrete output
module with more than 8 channels.
Group of 8 channels Channel by
channel.
Module Number of Associated Reactivation Fallback Supply fault Fallback
Reference outputs task mode monit. value
TSX DSY 16S5 16 Mast / Fast / Programmed / Fallback / - 0/1
None Automatic Maintain
TSX DSY 16T2 16 Mast / Fast / Programmed / Fallback /
None Automatic Maintain
TSX DSY 16T3 16 Mast / Fast / Programmed / Fallback / Active / 0/1
None Automatic Maintain Inactive
TSX DSY 32T2K 32 Mast / Fast / Programmed / Fallback / Active / 0/1
None Automatic Maintain Inactive
TSX DSY 64T2K 64 Mast / Fast / Programmed / Fallback / Active / 0/1
None Automatic Maintain Inactive
TSX DSY 16R5 16 Mast / Fast / - Fallback / - 0/1
None Maintain
TSX DSY 16S4 16 Mast / Fast / - Fallback / - 0/1
None Maintain
TSX DMY 28 FK 12 (output part) Mast / Fast / Programmed / Fallback / Active / 0/1
None Automatic (1) Maintain Inactive
TSX DMY 28RFK 12 (output part) Mast / Fast / Programmed / Fallback / Active / 0/1/
None Automatic (1) Maintain Inactive Continuous
(2)
TSX PAY 262 2 (output part) Mast / Fast / - - - -
TSX PAY 262 4 (output part) None
Key:
(1) Reactivation is chosen globally for the 12 output channels.
(2) Only for TSX DMY 28 RFK.
92 TLX DS 57 PL7 xx
Configuration of the discrete specific application
Note:
l Parameters in bold correspond to the parameters configured by default.
l The modules' first group of channels (addresses from 0 to 7) is always assigned
to a Mast or Fast task. For subsequent groups the following additional option is
available: None (no task associated with the group of unused channels).
TLX DS 57 PL7 xx 93
Configuration of the discrete specific application
Presentation The 8, 10 or 12 channel discrete TBX output modules have parameters per channel,
per group of 8 channels or for all channels.
Parameters The table below shows the parameters available for each 8, 10 or 12 channel TBX
discrete output module remoted on the FIPIO bus.
Module Group of 8 channels Channel by channel
Module Number of Associated Reactivation Fallback Fallback Wiring
Reference outputs task mode value Check
TBX ESP 08C22 8 Mast / Fast Programmed Fallback / 0/1 Yes / No
/ Automatic Maintain
TBX DSS 1235 12 Mast / Fast - Fallback / 0/1 -
Maintain
TBX DMS 1025 2 (output part) Mast / Fast Programmed Fallback / 0/1 -
/ Automatic Maintain
94 TLX DS 57 PL7 xx
Configuration of the discrete specific application
Presentation The 16 channel discrete TBX output modules have parameters per channel, per
group of 8 channels or for all channels.
Parameters The table below shows the parameters available for each 16 channel TBX discrete
output module remoted on the FIPIO bus.
Module Group of 8 channels Channel by channel
Module Number of Associated Reactivation Fallback Fallback Wiring
Reference outputs task mode value Check
TBX CSP 1625 16 Mast / Fast - - - -
TBX DSS 1622 16 Mast / Fast Programmed Fallback / 0/1 -
/ Automatic Maintain
TBX ESP 1622 16 Mast / Fast Programmed Fallback / 0/1 -
/ Automatic Maintain
TBX DSS 16C22 16 Mast / Fast Programmed Fallback / 0/1 Yes / No
/ Automatic Maintain
TBX DMS 16C22 16 Mast / Fast Programmed Fallback / 0/1 Yes / No
/ Automatic Maintain
TBX DMS 16C222 16 Mast / Fast Programmed Fallback / 0/1 Yes / No
/ Automatic Maintain
TBX CSP 1622 16 Mast / Fast Programmed - - -
/ Automatic
TBX DSS 1625 16 Mast / Fast - Fallback / 0/1 -
Maintain
TBX DMS 1625 8 (output part) Mast / Fast - Fallback / 0/1 -
Maintain
TBX DMS 16S44 8 (output part) Mast / Fast - Fallback / 0/1 -
Maintain
TBX DMS 16P22 (1) Mast / Fast Programmed Fallback / 0/1 -
/ Automatic Maintain
Key:
(1) 8 programmable output channels.
TLX DS 57 PL7 xx 95
Configuration of the discrete specific application
Presentation The discrete Momentum output modules on the FIPIO bus have parameters for all
channels.
Parameters The table below shows the parameters available for each Momentum discrete
output module.
Module Reference Number of inputs Associated task (for the
module)
170 ADO 340 00 16 Mast / Fast
170 ADO 350 00 32 Mast / Fast
170 ADO 530 50 8 Mast / Fast
170 ADM 350 10 16 (output part) Mast / Fast
170 ADM 390 30 8 (output part) Mast / Fast
170 ADM 370 10 8 (output part) Mast / Fast
96 TLX DS 57 PL7 xx
Configuration of the discrete specific application
Presentation The Discrete IP67 output modules on the FIPIO bus have parameters for all
channels.
Parameters The table below shows the parameters available for each Momentum discrete
output module.
Module Reference Number of inputs Associated task (for the
module)
TSX EMF 16DT2 8 (output part) Mast / Fast
TSX ESF 08T22 8 Mast / Fast
TLX DS 57 PL7 xx 97
Configuration of the discrete specific application
Presentation
Subject of this This section presents the installation of different discrete I/O channel configuration
section parameters.
98 TLX DS 57 PL7 xx
Configuration of the discrete specific application
Presentation In addition to its 8 input channels, this module possesses 8 channels which can be
individually configured as input or output channels.
Illustration The illustration below shows the configuration screen for the TBX DMS 16P22
module.
TBX DMS 16P22 [FIPIO1 MODULE 0]
Configuration Program
Designation : TBX7 SOCK 8E+8I/O 0,5 A Version : 1.0
Procedure The table below gives the procedure for configuring the programmable channels of
the TBX DMS 16P22 module.
Step Action
1 Access the module's hardware configuration screen.
2 Select Program part from the pull-down menu in the module zone.
3 Parameter the channels one by one as inputs or outputs using the pull-down
list in the Type column.
TLX DS 57 PL7 xx 99
Configuration of the discrete specific application
Presentation This parameter defines the processor task in which inputs are acquired and outputs
are updated.
The task is defined:
l for 8 consecutive channels for Discrete in-rack modules,
l for all channels for discrete modules remoted on the FIPIO bus.
The possible choices are as follows:
l The MAST task (for discrete in-rack modules or modules on the FIPIO bus).
l The FAST task (for discrete in-rack modules or modules on the FIPIO bus).
l None if the group of channels (apart from group 0 - 7) is unused (discrete in-rack
modules only).
It is advisable to deconfigure the groups of channels not used in the application; as
a result, even if no connector is connected, the module will not indicate a fault.
Procedure The table below shows the procedure for defining the type of task assigned to the
channels of a module.
Step Action
1 Access the hardware configuration screen of the required module.
2 In the pull-down menu located in the Task column, click on the button for the
required group of channels.
Result: a pull-down list appears.
MAST
MAST
FAST
NONE
Note: For discrete in-rack modules with more than 16 channels, use the
scrollbar to access the different groups of channels.
3 Select the required task.
Note:
Selecting None causes the group of channels in question and the following
groups to be deconfigured, after the modification is confirmed.
reconfiguration (MAST or FAST) of a group of deconfigured channels will, after
the modification is confirmed, cause the preceding non-configured groups to be
reconfigured.
4 Confirm the deconfiguration or reconfiguration if necessary.
Presentation This function is used to permanently check the quality of links between:
l sensors and inputs,
l actuators and outputs.
Procedure The table below shows the procedure for activating or deactivating the Wiring
Check parameter.
Step Action
1 Access the hardware configuration screen of the required module.
2 Click on the checkbox in the Wiring Check column of the channel to be
parametered.
3 Repeat the operation for every channel to be configured (from step 2).
Presentation This parameter defines the status (activated or deactivated) of external supply fault
monitoring.
It acts per group of 16 consecutive channels.
Checking is active by default (box checked).
Note: For < V2.0 versions of discrete modules (the version number is mentioned
on the label located on one side of the module), the external supply fault monitoring
cannot be deactivated; the function should be left active. If the monitoring
function is deactivated by mistake, after transfer and connection, the Diagnostics
function detects the error and the choice can then be changed in online mode. .
Procedure The table below shows the procedure for activating or deactivating the external
supply fault monitoring function.
Step Action
1 Access the hardware configuration screen of the required module.
2 Click on the checkbox in the Supply fault monitoring column.
Note: For discrete modules with more than 16 channels, use the scrollbar to
access the different groups of channels.
Presentation This parameter defines the properties of event inputs for TSX DEY 16 FK and TSX
DMY 28 FK modules.
The parameter may have the following values:
l normal (no event associated with the channel),
l channel by channel memorization of status (status at 0 or status at 1),
l channel by channel event processing,
l event triggered on a rising edge (RE),
l event triggered on a falling edge (FE),
l event triggered on a rising edge and falling edge,
Event inputs have an associated processing number (Evti). These numbers range
from:
l 0 to 31 for TSX5710/102/103/153, PMX 57 102, PCX 571012 processors,
l 0 to 63 for other processors.
If two edge types are selected on one channel, only one event number is associated
with the channel.
The highest priority event processing (Evti) number is 0, which can only be attributed
to channel 0.
Note:
l The event number proposed is the first available number in the list.
l A manually input number outside the tolerance range will not be accepted on
confirmation.
l Event numbers cannot be added, deleted or changed when in online mode.
Procedure The table below shows the procedure for defining the parameters associated with
event inputs.
Step Action
1 Access the hardware configuration screen of the required module.
2 Select the required channel.
3 In the Function column, double-click on the cell of the channel to be
parametered.
Result: The properties dialogue box appears.
Properties of channel 6 x
Function
Normal
Latch state 0
Latch state 1
Event processing
Rising
Falling
EVT 1
Presentation This parameter defines the filtering time for the selected channel.
The proposed values are as follows:
l 0.1 to 7.5 ms in increments of 0.5 ms for in-rack input modules,
l 0.7 ms (fast) or 5.7 ms (normal) for input modules on the FIPIO bus.
Procedure The table below shows the procedure for defining the Filtering parameter.
Step Action
1 Access the hardware configuration screen of the required module.
2 In the pull-down menu located in the Filtering column, click on the button for
the required channel.
Result: one of the following pull-down lists appears:
Filter Filter
4 ms Fast
0.1 ms Normal
0.5 ms Fast
1 ms
1.5 ms
2 ms
2.5 ms
Presentation This parameter defines whether or not to acknowledge a positive pulse which is
shorter than the task period.
By default, the acknowledgment is valid (box checked).
Procedure The table below shows the procedure for activating or deactivating the Latching
function.
Step Action
1 Access the hardware configuration screen of the required module.
2 Click on the checkbox in the Latching column of the channel to be
parametered.
3 Repeat the operation for every channel to be configured (from step 2).
Presentation An in-rack discrete module input can be parametered to control the running or
stopping of the application program.
The change to Stop by the physical input assigned to the Run/Stop input takes
priority over a Run command from a terminal or network.
The input defined as the Run/Stop input is represented, in the module zone of the
configuration screen for the module in question, by a Run icon and Stop icon
followed by the channel number.
Procedure The table below shows the procedure for parametering the Run/Stop input.
Step Action
1 Access the CPU configuration screen.
2 Check the Run/Stop Input box.
3 Enter the input to be assigned in the data entry window.
Presentation This parameter defines the fallback mode adopted by outputs when the PLC
changes to Stop, in the event of a processor, rack or inter-rack cable fault.
The possible modes are as follows:
Mode Meaning
Fallback Channels are set to 0 or 1 depending on the parametered fallback value, for
the group of 8 corresponding channels.
Maintain Outputs retain the status occupied before the change to Stop.
Continuou This mode only concerns TSX DMY 28 RFK modules.
s Reflex outputs are updated by the module; when this mode is selected, the
reflex function remains active.
Note: This parameter may be modified in online mode for discrete in-rack modules.
Procedure The table below shows the procedure for defining the fallback mode assigned to a
group of channels.
Step Action
1 Access the hardware configuration screen of the required module.
2 In the pull-down menu located in the Fallback mode column, click on the
button for the required group of channels.
Result: a pull-down list appears.
Fall. mode
Fallback
Maintain
Fallback
Note: For discrete in-rack modules with more than 16 channels, use the
scrollbar to access the different groups of channels.
3 Select the required fallback mode.
4 For Fallback mode, parameter each of the channels in the selected group.
To do this, click on the button in the pull-down menu in the Fallback val.
column.
5 Click on the required value (0 or 1).
Key:
(1) Faulty outputs can only be reactivated from the debug screen for in-rack
modules.
Note: This parameter may be modified in online mode for discrete in-rack
modules..
Procedure The table below shows the procedure for defining the reactivation mode for a
module's output channels.
Step Action
1 Access the hardware configuration screen of the required module.
2 In the pull-down menu located in the Reactivation column, click on the button
for the required group of channels.
Result: a pull-down list appears.
Reactivate
Programmedd
Programmed
Automatic
Note: For discrete in-rack modules with more than 16 channels, use the
scrollbar to access the different groups of channels.
3 Select the required task.
7
At a Glance
Subject of this This chapter describes the Debug aspect of the installation of the discrete
chapter application.
Introduction The debug function enables the user to view the parameters of each channel (status
of channel, filter value, etc.) for each of the application's discrete I/O modules, and
to access diagnostics and adjustment for the selected channel (channel forcing,
channel masking, etc.).
The function also gives access to the module diagnostics in the event of a fault.
Limitations The table below shows the access limitations for the Debug function for I/O modules
(TBX, Momentum) remoted on the FIPIO bus.
Configuration Access to the debug function...
PL7 of version prior to V3.3 not available.
(PL7 + CPU + Application PL7) limited to four screens open simultaneously.
of version V3.3 or higher
Presentation The debug screen displays the value and status of each of the selected module's
channels in real time. It is also used to control the channels (forcing of the input/
output value, reactivation of outputs, etc.).
F8 Reset
Description The table below shows the different elements in the debug screen, along with their
functions.
Number Element Function
1 Title bar Indicates the reference and physical position of the selected module along with the rack
number for in-rack modules or the FIPIO connection point for remote I/Os.
2 Module zone Enables the user to select:
l the debug phase:
l Configuration,
l Installation (diagnostics), only accessible in online mode.
l the type of channels (inputs or outputs), if the module in question has both inputs and
outputs.
Displays the designation of the selected module and shows the module's status indicator
lights (Run, Err, I/O).
Provides direct access to:
l the module diagnostics when the module is faulty (shown by the indicator in the
diagnostics access button, which turns red)
l the channel Global unforcing function.
Note: Display of this zone is optional. The choice is made using the command View →
Module zone.
Procedure This operation enables the user to access the debug screen for the channels of a
discrete module.
The debug screen is only accessible in online mode.
Step Action
1 Access the hardware configuration screen.
2 Double-click on the module to be configured or select the module and execute the
command Service → Open the module.
Result: The configuration screen for the selected module appears.
F8 Reset
Presentation The module diagnostics function displays the current faults, if there are any,
classified according to their category:
l internal faults (module failures, self-test running)
l external faults (terminal block fault),
l other fault (configuration fault, module absent or powered-down, faulty
channel(s) (details in the channel diagnostics)).
Certain indicators turn red to indicate a faulty module, for example:
l in the configuration editor at rack level:
l the module position indicator.
l in the configuration editor at module level:
l the Err and I/O indicators, depending on the type of fault,
l the Diag indicator.
Procedure The table below shows the procedure for accessing the module diagnostics screen.
Step Action
1 Access the module's debug screen.
2 Click on the Diag button in the module zone.
Result: The list of module faults appears:
Module diagnostics
Internal faults External faults Other fault
Faulty channel(s)
OK
Presentation The channel diagnostics function displays the current faults, if there are any,
classified according to their category:
l internal faults (channel failure)
l external faults (link or sensor supply fault),
l other faults (terminal block fault, configuration fault, communication fault).
The Diag indicator, located in the Err column of the configuration editor, turns red to
indicate a channel fault.
Procedure The table below shows the procedure for accessing the channel diagnostics screen.
Step Action
1 Access the module's debug screen.
2 Click on the Diag button in the Err column.
Result: The list of channel faults appears.
Channel diagnostics
Internal faults External faults Other faults
External supply
OK
Note: The channel diagnostics information can also be accessed via the
program using the READ_STS instruction.
Presentation This function is used to modify the status of all or part of a module's channels.
The status of a forced output is fixed and can only be modified by the application
after unforcing.
Note: However, when a fault causes the outputs to fall back, the status of these
channels takes the value set when the fallback mode parameter was configured.
Procedure The table below shows the procedure for forcing or unforcing all or part of the
channels of a module.
See Modifying the configuration parameters of a discrete module's: General, p. 83
for multiple selection.
Step Action for one channel Action for all channels
1 Access the module's debug screen.
2 In the Status column, double-click on the Click on the Global unforcing button
cell of the required channel (1). in the module zone.
3 Select the required function. -
Key:
(1) The Channel commands screen can also be accessed by double-clicking on
the required channel and then left-clicking on the Command button.
At a Glance These commands are used to modify the state of a module's outputs to 0 (RESET)
or 1 (SET).
Note: The state of the output assigned by one of these commands is temporary
and can be modified at any time by the application when the PLC is in RUN.
Procedure The table below shows the procedure for assigning the value 0 or 1 to all or part of
the channels of a module.
See (Modifying the configuration parameters of a discrete module's: General, p. 83 )
for multiple selection.
Step Action for one channel
1 Access the module's debug screen.
2 In the Status column, double click on the cell of the required channel (1).
3 Select the required function.
Key:
(1) The Channel commands screen can also be accessed by double-clicking on
the required channel and then left-clicking on the Command button.
Presentation This function enables the user to inhibit or restore the processing associated with
the input or output channel which caused the event.
The available commands are as follows:
l Mask (masks the events),
l Unmask (deactivates masking of events).
Note: If one or more events occur while they are inhibited, the associated
processing is lost.
Procedure The table below shows the procedure for masking or unmasking all or part of the
channels configured in event processing.
Step Action for one or more channels (1) Action for all of the configured
channels of the application
modules (2)
1 Access the module's debug screen. Access the CPU debug screen.
2 In the Status column, double-click on the Click on the Activation/Deactivation
cell of the required channel (3). button located in the Events field.
3 Select the required function. -
Key:
(1) For multiple selection, see Modifying the configuration parameters of a discrete
module's: General, p. 83.
(2) Global masking/unmasking can also be carried out using:
l the instruction PL7 MASKEVT(),
l the instruction PL7 UNMASKEVT(),
l the %S38 system bit.
Presentation This command is used to reactivate an output when a fault has caused it to trip, if no
fault persists at its terminals.
Reactivation is defined per group of 8 channels. It has no effect on an inactive or
fault-free channel.
Note: Outputs may only be reactivated in online mode for TBX modules.
Procedure The table below shows the procedure for reactivating tripped outputs.
Step Action
1 Access the module's debug screen.
2 Click on the Reactivate button in the Reactivation column for the required
group of channels.
Presentation This control (red Stop indicator on) informs the user that, for a given output channel
group, these outputs are not being correctly maintained by the PLC (fallback status).
The possible causes are as follows:
l processor fault,
l rack fault,
l inter-rack link fault.
Subject of this This chapter presents the different word and bit objects associated with discrete
chapter specific applications as well as their addressing mode.
Presentation
Subject of this This section presents the specific features of addressing linked to the discrete
section specific application.
Presentation Addressing of bit and word objects is defined in Shared specific applications (See
Addressing input/output module objects in rack, p. 31).
This page describes the specific features linked to the discrete in-rack I/O modules.
Specific values The table below shows the values specific to the discrete in-rack I/O module objects.
Element Values Comment
x 0 to 1 TSX 5710/102/103/153, PMX 57102, PCX 571012.
0 to 7 Other processors
y 00 to 14 When the rack number (x) is other than 0, the position (y) has a 2 digit
(1) code: 00 to 14; however, if the rack number (x) = 0, the non-meaningful
zeros are deleted (from the left) from "y" ("x" does not appear and "y"
takes 1 digit for values of less than 9).
i 0 to 63 or MOD: channel reserved for management of the module and the
MOD parameters shared by all channels.
r 0 to 3 or ERR: indicates a module or channel fault.
ERR
(1) : The number of slots requires the use of 2 racks at the same address.
Presentation Addressing of bit and word objects is defined in (See Addressing of language
objects for modules remoted on the FIPIO bus, p. 33).
This page describes the specific features linked to the discrete I/O modules remoted
on the FIPIO bus.
Specific values The table below shows the values specific to remote discrete I/O module objects.
Element Values Comment
i 0 to 31 or 0 to 15 for TBX modules.
MOD 0 to 31 for Momentum modules.
MOD: channel reserved for management of the module and the
parameters shared by all channels.
r 0 to 255 ERR: indicates a module or channel fault.
or ERR
Presentation All the discrete module I/O objects are indexable (apart from the TSX DMY 28RFK
and TBX DMS 16P22 I/O module objects).
For in-rack TSX and TBX modules, indexing of %I and %Q objects is done
independently.
For Momentum modules, indexing for %I objects continues for %Q objects of the
same module.
Presentation
Subject of this This section presents the different language objects associated with the discrete
section specific application.
Presentation Exchanges for these objects are carried out automatically on each cycle of the task
in which the module channels are configured.
Bit objects The table below shows the different implicit exchange bit objects.
Address (1) Function Meaning when the bit is at status 1
%I@module.i Input channel bit Indicates, for input channel i, that the sensor output controlling
the input is activated.
%Q@module.i Output channel bit Indicates that output channel i is activated.
%I@module.i.ERR Channel error bit Indicates that input channel i is faulty.
%I@module.MOD.ERR Module error bit Indicates that the module is faulty.
Key:
(1) @module = module address.
l xy for in-rack modules,
l \p2c\m for remote modules.
Word objects The table below shows the different implicit exchange word objects.
Address (1) Function Meaning for Xj = 1
%IW@module.i:X0 Event status Indicates that event processing is configured on a rising edge.
%IW@module.i:X1 associated with Indicates that event processing is configured on a falling edge.
channel i
%QW@module.i:X0 Command word Masks/unmasks the event associated with the channel.
associated with
channel i
Key:
(1) @module = module address.
l xy for in-rack modules,
l \p2c\m for remote modules.
Presentation These word-type objects provide information on the module or channel i exchanges
in progress.
They are updated automatically by the system.
Description The table below explains the meanings of the different bits in the word
%MW@module.MOD.0.
Address (1) Meaning for Xj = 1
%MW@module.MOD.0:X0 Exchange of status words in progress on at least one channel
of the module.
%MW@module.MOD.0:X1 Exchange of command words in progress on at least one
channel of the module.
Key:
(1) @module = module address.
l xy for in-rack modules,
l \p2c\m for remote modules.
Description The table below explains the meanings of the different bits in the word
%MW@module.i.0.
Address (1) Meaning for Xj = 1
%MW@module.i.0:X0 Exchange of status words in progress on channel i.
%MW@module.i.0:X1 Exchange of command words in progress on channel i.
Key:
(1) @module = module address.
l xy for in-rack modules,
l \p2c\m for remote modules.
Example The example below shows one possible way in which this type of word can be used
Note: If the explicit exchange does not last as long as the PLC task cycle time, the
%MW@module.i:X0 bit never changes to 1.
Presentation These word-type objects provide information on the exchange reports for the
module or channel i.
They are updated automatically by the system.
Description The table below explains the meanings of the different bits in the word
%MW@module.MOD.1.
Address (1) Meaning for Xj = 1
%MW@module.i.1:X0 Status parameter exchange error on at least one channel of the
module.
%MW@module.i.1:X1 Command parameter exchange error on at least one channel
of the module.
Key:
(1) @module = module address.
l xy for in-rack modules,
l \p2c\m for remote modules.
Description The table below explains the meanings of the different bits in the word
%MW@module.i.1.
Address (1) Meaning for Xj = 1
%MW@module.i.1:X0 Status parameter exchange error on channel i.
%MW@module.i.1:X1 Command parameter exchange error on channel i.
Key:
(1) @module = module address.
l xy for in-rack modules,
l \p2c\m for remote modules.
Example The example below shows one possible way in which this type of word can be used
Presentation Explicit exchange objects carry information (e.g. terminal block fault, module
missing etc.) and additional commands for advanced programming of specific
application functions.
Explicit exchanges objects are exchanged at the request of the user program using
the following instructions:
l READ_STS (read status words),
l WRITE_CMD (write command words),
l WRITE_PARAM (write adjustment parameters),
l READ_PARAM (read adjustment parameters),
l SAVE_PARAM (save adjustment parameters),
l RESTORE_PARAM (restore adjustment parameters).
Description The table below explains the meanings of the different bits in the word
%MW@module.i.2.
Address (1) Meaning for Xj = 1
%MW@module.i.2:X0 External fault: Tripped.
%MW@module.i.2:X1 (2) External fault: Fuse.
%MW@module.i.2:X2 Terminal block fault.
%MW@module.i.2:X3 External supplyfault.
%MW@module.i.2:X4 Internal fault: Module Out of Order
%MW@module.i.2:X5 Software or hardware configuration fault.
%MW@module.i.2:X6 Communication fault.
%MW@module.i.2:X7 Reserved.
%MW@module.i.2:X8 External fault: Short-circuit.
%MW@module.i.2:X9 External fault: Line fault.
%MW@module.i.2:X10 à X15 Reserved.
Key:
(1) @module = module address.
l xy for in-rack modules,
l \p2c\m for remote modules.
(2) For Momentum I/Os: minor external fault on the connection base; the meaning of
this depends on the connection base in use (see Momentum documentation).
Presentation This word-type object provides information on the status of the module.
It is updated on execution of command READ_STS%CH@module.MOD.
Description The table below explains the meanings of the different bits in the word
%MW@module.MOD.2.
Address (1) Meaning for Xj = 1 Module type
%MW@module.MOD.2:X0 Internal fault: Module Out of Order. Base
%MW@module.MOD.2:X1 Functional Fault (2). Base
%MW@module.MOD.2:X2 Terminal block fault. Base
%MW@module.MOD.2:X3 Functional Fault (2). Base
%MW@module.MOD.2:X4 Self-testing Base
%MW@module.MOD.2:X4 Reserved. Base
%MW@module.MOD.2:X5 Software or hardware configuration fault. Base
%MW@module.MOD.2:X6 Module missing Base
%MW@module.MOD.2:X7 Fault on FIPIO extension module. Base
%MW@module.MOD.2:X8 Internal fault: Module Out of Order. FIPIO extension
%MW@module.MOD.2:X9 Functional Fault (2). FIPIO extension
%MW@module.MOD.2:X10 FIPIO Extension Terminal Block Fault. FIPIO extension
%MW@module.MOD.2:X11 Self-testing FIPIO extension
%MW@module.MOD.2:X12 Reserved. FIPIO extension
%MW@module.MOD.2:X13 Software or hardware configuration fault. FIPIO extension
%MW@module.MOD.2:X14 Module missing FIPIO extension
%MW@module.MOD.2:X15 Reserved. FIPIO extension
Key:
(1) @module = module address.
l xy for in-rack modules,
l \p2c\m for remote modules.
Note: for FIPIO remoted I/Os comprising a base module followed by an extension
module, only the status word of the base module is significant. Its least significant
byte is assigned to the base module, while its most significant byte is assigned to
the extension module.
Presentation This word-type object is used to modify certain parameters for a group of channels.
It is updated on execution of command WRITE_CMD%CH@module.i.
Description The table below explains the meanings of the different bits in the word
%MW@module.i.3.
Address (1) Meaning for Xj = 1
%MW@module.i.3:X0 Reactivation of tripped outputs (protected outputs).
%MW@module.i.3:X1 Inhibition of external supply control.
%MW@module.i.3:X2 Confirmation of external supply control.
%MW@module.i.3:X3 to X15 Reserved.
Key:
(1) @module = module address.
l xy for in-rack modules,
l \p2c\m for remote modules.
i = first channel in group of channels (0, 8, 16, ...).
Subject of this This chapter presents the specific installation features of discrete reflex module TSX
chapter DMY 28 RFK.
General The standard architecture of the PLC with I/O modules and periodical or event tasks
does not allow for the reaction time required by certain types of applications.
The aim of the TSX DMY 28 RFK discrete reflex module is to resolve these particular
application issues. In order to do this, it has:
l a faster response time than the Fast task or event task.
l an output reaction with a simple logic of under 0.5 ms,
l speed control for moving parts and movement stopping control when the speed
becomes too slow,
l feedback control between movements,
l time-outs with a time base of 0.1ms
l continuous oscillation generation at a fixed frequency, but with a variable duty
cycle,
l ...
Operating The TSX DMY 28 RFK module operates independently from the PLC task . It has its
principle own I/Os (16I/12O), ensuring a reaction time of less than 1ms.
At the same time, the internal variables are exchanged with the PLC processor, but
at the rate of the PLC task assigned to them.
These variables are as follows:
l the image bits of the module's physical input status (%I),
l the image bits of the module's physical and auxiliary output statuses (%I),
l the command bits of the module outputs (%Q).
Illustration The diagram below shows the operating principle of the discrete reflex module.
Response time < 1 ms
Reflex function
Processing
Update
%Qxy.i
Presentation
Subject of this This section presents the different reflex functions available.
section
Role This block is proposed by default and does not apply any reflex function to the
module output. The output is then controlled from the application as for a standard
discrete output module.
Operation Physical output x is directly controlled by its command bit %Qxy.i updated by the
PLC processor.
Outputs x and x Aux have identical values.
PLC task
Acquisition of the inputs
Application processing
Role This function enables a logic function to be performed between the inputs and one
or more of the module's outputs.
Output 16 Aux
Illustration 2 The illustration below shows an example of a combinational function using the
auxiliary output of the first combinational as an intermediate variable.
Output 16 Aux
Output 17 Aux
Operation This table describes the different operating phases of the operation timer.
Phase Description
1 On the rising edge of the E input, time-out ti is launched (time base of 0.1ms).
2 When the time-out is over, the x output changes to 1.
If the high status of input E lasts less time than ti, output x stays at 0.
Note: The values of outputs x and x Aux are identical.
Illustration The illustration below shows the trend diagram of the operation timer function block.
E
ti
x Aux
Operation This table describes the different operating phases of the idle timer.
Phase Description
1 The x output changes to 1 when the E input changes to 1.
2 On the falling edge of the E input, time-out ti is launched (time base of 0.1ms).
3 When the time-out is over, the x output changes to 0.
If the low status of input E lasts less time than ti, output x stays at 1.
Note: The values of outputs x and x Aux are identical.
Illustration The illustration below shows the trend diagram of the idle timer function block.
ti
x Aux
Operation This table describes the different operating phases of the operation-idle timer.
Phase Description
1 On the rising edge of the E input (on-delay) , time-out tri is launched (time base
of 0.1ms).
2 When time-out tri is over, the x output changes to 1.
If the high status of input E lasts less time than tri, output x stays at 0.
3 On the falling edge of the E input (off-delay) , time-out tfi is launched (time base
of 0.1ms).
4 When time-out tfi is over, the x output changes to 0.
During time-out tfi, if the low status of input E lasts less time than tfi, output x
stays at 1.
Note: The x Aux output is at 1 as long as input E or output x is at 1.
Illustration The illustration below shows the trend diagram of the operation-idle timer function
block.
tri tfi
x Aux
E 2-valuesTIMER Output x
Sel t1i
Direct t2i Output x Aux
Operation This table describes the different operating phases of the 2 value operation timer.
Phase Description
1 On the rising edge of the E input, a time-out corresponding to the status of input
Sel is launched.
2 When the time-out is over, the x and x Aux outputs change to 1.
If the high status of input E lasts less time than the selected time-out, output x
stays at 0.
Illustration The illustration below shows the trend diagram of the 2 value operation timer
function block.
E
Sel
x
t1i t2i
x Aux
String operation It is possible to increase the number of time-outs which can be selected by stringing
together several blocks, with the x output of one forming the E input of the next.
Phase Description
1 On the rising edge of the E input of the first block a time-out is launched,
corresponding to:
l the block whose Direct input is at 0,
l the status of the Sel input.
Note: Two blocks must not simultaneously have their Direct inputs set to 0.
2 When the time-out is over, the x and x Aux outputs change to 1.
If the high status of the E input of the first block lasts less time than the selected
time-out, output x stays at 0.
3 The x output changes to 0 on the falling edge of the E input .
Note:
l x and x Aux have identical values.
l the x Aux outputs can be used for tracking,
l when stringing together several blocks, it is essential to change the statuses of Sel
and Direct only when the 0 status of input E is at 0.
Role This function is used to apply a t1i or t2i on-delay or off-delay to an action.
The assignment of a t1i time-out on-delay to an action causes the t2i off-delay for
this same action.
Similarly, the assignment of a t2i time-out on-delay causes a t1i off-delay to be
assigned.
Sel ti1
Direct t2i Output x Aux
Operation This table describes the different operating phases of the operation-idle timer with
value selection.
Phase Description
1 On the rising edge of input E :
l the time-out corresponding to the status of input Sel is launched,
l output x Aux changes to 1.
Illustration The illustration below shows the trend diagram of the operation-idle timer with value
selection function block.
Sel
x Aux
t1i t2i t2i t1i
String operation It is possible to increase the number of time-outs which can be selected by stringing
together several blocks, with the x output of one forming the E input of the next.
Phase Description
1 On the rising edge of input E of the first block:
l the time-out is launched, corresponding to:
l the block whose Direct input is at 0,
l the status of the Sel input.
l output x Aux changes to 1.
Note: Two blocks must not simultaneously have their Direct inputs set to 0.
2 When the selected time-out is over
l output x of the relevant block changes to 1.
l output x Aux of the relevant block changes to 0.
If the high status of the E input of the first block lasts less time than the selected
time-out, output x stays at 0.
3 On the falling edge of input E of the first block:
l the time-out is launched, corresponding to:
lthe block whose Direct input is at 0,
lthe status of the Sel input.
l output x Aux changes to 1.
Note: Two blocks must not simultaneously have their Direct inputs set to 0.
4 When the selected time-out is over:
l output x of the relevant block changes to 1.
l output x Aux of the relevant block changes to 0.
If the low status of the E input of the first block lasts less time than the selected
time-out, output x stays at 0.
5 The x output changes to 0 on the falling edge of the E input.
Note:When stringing together several blocks It is essential to change the statuses of
the Sel and Direct inputs only when the status of input E of the first block is set to 0..
Illustration The table below shows the tracking of the two timers.
Role This function launches an action of duration ti, with the possibility of extending it for
an identical duration.
Operation This table describes the different operating phases of the retriggerable monostable.
Phase Description
1 On the rising edge of input E (on-delay):
l time-out ti is launched (time-base of 0.1ms),
l outputs x and x Aux change to 1.
Illustration The illustration below shows the trend diagram of the retriggerable monostable
function block.
x
ti ti
ti
x Aux
Role This function enables an action of a duration t2i to be launched with a t1i delay, with
the possibility of extending it for an identical duration.
Operation This table describes the different operating phases of the monostable with time
delay.
Phase Description
1 On the rising edge of input E :
l time-out t1i is launched (time-base of 0.1ms),
l output x Aux changes to 1.
Illustration The illustration below shows the trend diagram of the monostable with time delay
function block.
x
t1i t2i
t1i t2i
x Aux
Role This function enables an action of duration t1i or t2i to be applied to the triggering
of an action.
Set t1i
Direct t2i Output x Aux
Operation This table describes the different operating phases of the 2 value monostable.
Phase Description
1 On the rising edge of input E :
l a time-out corresponding to the status of input Sel is launched (time base of
0.1ms),
l outputs x and x Aux change to 1.
Illustration The illustration below shows the trend diagram of the monostable with time delay
function block.
Sel
t2i t1i
x Aux
String operation It is possible to increase the number of time-outs which can be selected by stringing
together several blocks, with the x output of one forming the E input of the next.
Phase Description
1 On the rising edge of input E of the first block:
l the time-out is launched, corresponding to:
l the block whose Direct input is at 0,
l the status of the Sel input.
l outputs x and x Aux change to 1.
Note: Two blocks must not simultaneously have their Direct inputs set to 0.
2 When the time-out is over, the x and x Aux outputs change to 0.
Note:When stringing together several blocks It is essential to change the statuses of
the Sel and Direct inputs only when the status of input E is set to 0.
Illustration The table below shows the tracking of the two monostables.
Role This function enables a time base to be created, with the option of defining the signal
parameters (status 0 or 1).
Operation This table describes the different operating phases of the oscillator.
Phase Description
1 On the rising edge of input E :
l output x oscillates for period t1i +t2i where:
l t1i = length of high status of oscillation (time base of 0.1ms),
l t2i = length of low status of oscillation (time base of 0.1ms),
l output x Aux changes to 1.
Illustration The illustration below shows the trend diagram of the oscillator function block.
x
t1i t2i t1i t2i
x Aux
Role This function is used to carry out sequential logic functions, such as memorization
of an edge, etc.
E D flip-flop Output x
Clk
Set
Reset Output x Aux
Operation This table describes the different operating phases of the D flip-flop.
Phase Description
1 On the rising edge of input CLK:
l output x takes the status of input D,
l output x Aux takes the opposite status to input D.
Illustration The illustration below shows the trend diagram of the D flip-flop function block.
CLK
RESET
SET
x Aux
E T flip-flop Output x
Clk
Set
Reset Output x Aux
Operation This table describes the different operating phases of the T flip-flop.
Phase Description
1 On the rising edge of input CLK:
l if input E is at 1:
l output x takes the opposite status to its current status,
l output x Aux takes the opposite value to x,
l if input E is at 0, outputs x and x Aux remain at that status.
Illustration The illustration below shows the trend diagram of the T flip-flop function block.
CLK
RESET
SET
x Aux
Role This counting function is used to detect when a threshold th1 or th2 has been
crossed.
Up Counting input.
Note: the maximum performance of the counter is 2 Khz (with the Up input
directly controlled by the physical input (without filtering)).
RESET Counter initialization input.
In order to take into account a change in the value of the threshold to be reached,
a Reset is required.
Sel Selection of counting threshold:
l Sel = 0 : threshold th1 selected,
l Sel = 1: threshold th2 selected,
Note: the maximum value of a threshold corresponds to the maximum number
of points (65536points).
x Counter's physical output.
x Aux Block's internal auxiliary output.
Illustration
E COUNTER, 2 Output x
Up
Reset th1
Set th2 Output x Aux
Operation This table describes the different operating phases of the 2 threshold counter.
Phase Description
1 On the rising edge of RESET input:
l counter initialized to 0
l inputs x and x Aux change to 0,
l Counter increased on the rising edge of Up input .
Illustration The illustration below shows the trend diagram of the 2 threshold counter function
block.
RESET
Sel
Up
th2
th1
x Aux
Role This function is used to detect when the two thresholds th1 and th2 have been
crossed.
Up Counting input.
Note: the maximum performance of the counter is 2 Khz (with the Up input
directly controlled by the physical input (without filtering)).
RESET 0 Output x forced to 0.
RESET 1 Counter initialization input.
Note: If the counter is not reset to 0, when it reaches the maximum value (65536
points), it will change to 0,1,2 etc. Therefore it is advisable to inhibit counting
(E=0) by using the x Aux output in series with output E.
x Cam's physical output.
x Aux Block's internal auxiliary output.
Illustration
Operation This table describes the different operating phases of the simple cam.
Phase Description
1 On the rising edge of input RESET 1:
l counter initialized to 0
l input x Aux changes to 1,
On the high status of input RESET 0:
l input x is forced to 0.
Illustration The illustration below shows the trend diagram of the simple cam function block.
RESET 0
RESET 1
Up
th2
th1
x Aux
Role This function is used to trigger an action after an interval th with a maximum
precision of 0.1ms
E INTERVALOMETER, 1 Output x
ti
Reset1 th Output x Aux
Operation This table describes the different operating phases of the intervalometer.
Phase Description
1 On the rising edge of input E :
l counter initialized to 0
l input x changes to 0.
Illustration The illustration below shows the trend diagram of the intervalometer function block.
RESET 1
Time-
base
th
x Aux
Role This function is used to generate a pulse stream of a time length 2 x ti.
Operation This table describes the different operating phases of the Burst function block.
Phase Description
1 On the rising edge of input E :
l oscillation of output x for ni periods of time,
l input x Aux changes to 1,
Illustration The illustration below shows the trend diagram of the burst function block.
ti ti
x Aux
Role This function is used to generate a fixed period periodic signal t1i with a variable
duty cycle t2i/t1i.
Operation This table describes the different operating phases of the PWM function block.
Phase Description
1 On the rising edge of input E :
l oscillation of output x,
l control input x Aux changes to 1.
Illustration The illustration below shows the trend diagram of the PMW function block.
t2i
t1i
x Aux
Role This function is used to halt an action, after a start phase t1i (masking), if the time
elapsing between two consecutive pulses is higher than t2i.
Operation This table describes the different operating phases of the speed detection.
Phase Description
1 On the rising edge of input E :
l time-out t1i (masking time) is launched,
l input x changes to 1.
2 When time-out t1 has elapsed, and then on each edge of input à FB, time-out
t2i is launched.
If the rising edges of input FB are spaced out at interval t2i:
l output x changes to 0,
l output x Aux changes to 1 (signaling end of movement).
If input E changes to 0, outputs x and x Aux change to 0.
Illustration The illustration below shows the trend diagram of the speed detection function block.
E
t1i
FB
t<t2i t<t2i t<t2i t2i
x Aux
Role This function is used to control or halt an action according to two thresholds t1i and
t2i.
Application Activation of a conveyor belt upstream (controlled by the x Aux input) depending on
example the speed of a conveyor belt downstream:
l conveyor belt operational when the speed of the downstream belt is greater than
the high threshold 1/t1i,
l conveyor belt stops when the speed of the downstream belt is less than the low
threshold 1/t2i,
This involves analyzing the time elapsed between 2 consecutive pulses on control
input FB.
The following graph illustrates the application example given above.
Speed 1/t2i
x Aux
Operation This table describes the different operating phases of the speed monitoring function.
Phase Description
1 On the rising edge of input E :
l time-out t1i is launched,
l input x changes to 1.
2 As long as the interval between 2 rising edges of input FB remains greater than
t1i:
l time-out t1i is relaunched on the rising edge of input FB.
If the interval between 2 rising edges of input FB falls below t1i:
l output x Aux changes to 1,
l time-out t2i is launched,
If input E changes to 0, outputs x and x Aux change to 0.
x Aux
1/t1i Speed
3 As long as the interval between 2 rising edges of input FB is less than t2i:
l time-out t2i is relaunched on the rising edge of input FB.
If the interval between 2 rising edges of input FB becomes greater than t2i:
l output x Aux changes to 0,
l time-out t1i is launched (see phase),
If input E changes to 0, outputs x and x Aux change to 0.
x Aux
Illustration The illustration below shows the trend diagram of the speed monitoring function
block.
FB
t=t2i
x Aux
Role This function is used to command an action and to check whether it has been carried
out after time period ti
Operation This table describes the different operating phases of the type 1 command-check
function.
Phase Description
1 On the rising edge of input Cde:
l time-out ti is launched,
l input x changes to 1.
Illustration The illustration below shows the trend diagram of the type 1 command-check
function block.
Cde
x
t<ti t<ti t>ti
ti
Ctrl
Acq
x Aux
Operation This table describes the different operating phases of the type 2 command-check
function.
Phase Description
1 On the rising edge of input Cde:
l time-out t1i is launched,
l input x changes to 1.
Phase Description
4 When time out t2i is over:
l if the Ctrl2 signal changes to status 1 during time-out interval t2i, the x Aux
input stays at 0 (normal situation),
l if the Ctrl2 signal is not received, the x Aux output changes to 1 (type A error
signal).
l if the Ctrl2 signal falls back while the Cde input is at 0, the x Aux output
changes to 1 (type B error signal).
The x Aux input is set to 0 in the event of:
l a rising edge on input Acq with input Ctrl2 at 1,
l change of status of input Cde.
Illustration The illustration below shows the trend diagram of the type 2 command-check
function block.
Cde
x
t<t1i t<t1i t>t1i
t1i
Ctrl1
t<t2i t>t2i
t2i
Ctrl2
Acq
x Aux
Operation This table describes the different operating phases of the command-counting
function.
Phase Description
1 Counter initialized to 0 on the rising edge of the Reset input.
2 On the rising edge of the Cde input, the x input changes to 1.
On every rising edge of the Up input, the counter is increased.
3 When threshold th is reached, or if input Cde changes to 0, outputs x and x Aux
change to 0.
Note: Input Cde does not influence the counting carried out on the rising edge of the
Up input.
Illustration The illustration below shows the trend diagram of the command-counting function
block.
Cde
Reset
Up
th
x Aux
Role This function is used to indicate a fault, with acknowledgement and clearing.
Operation This table describes the different operating phases of the Fault Signaling function.
Phase Description
1 If the Def status is at the high status, the x output oscillates for period 2 x t1i.
2 On the rising edge of input Acq:
l if the fault persists, the output changes to 1,
l if the fault disappears, the output oscillates for period 2 x t2i.
Illustration The illustration below shows the trend diagram of the Fault Signaling function with
t1i < t2i.
Def
Acq
Eff
Presentation
Subject of this This section presents the specific configuration features of a discrete reflex module.
section
Introduction The TSX DMY 28 RFK discrete reflex module uses the standard discrete I/O
parameters (See Configuration of discrete parameters, p. 98)).
However, it also has its own specific parameters, such as:
l assigning of a reflex function to a given output channel,
l association of an event with a virtual output.
A reflex function, assigned in this way to a given channel, must itself be configured
and its internal parameters adjusted.
Illustration The screen below shows some examples of function assignment for a given
channel.
Spécific parameters
Chan. Symbol Supply Monit. Task Reactivate Fall. Value Function Event
16 Active MAST Programmed Fallback to Combinational
17 Fallback to TIMER in operation
18 Fallback to TIMER idle
19 Fallback to TIMER with 2 values,
20 Fallback to MONO with time delay
21 Fallback to OSCILLATOR
22 Fallback to COUNTER, 2
23 Fallback to PWM generation
24 MAST Programmed Fallback to Command/counting
25 Fallback to Fault signalling
26 Fallback to Direct
27 Fallback to Direct
28v Fallback to Direct
29v Fallback to Direct
30v Fallback to Direct
31v Fallback to Direct
Presentation The reflex function configuration editor is made up of a grid from which the function
block is chosen and into which graphical objects relating to the sequential logic of
the block are entered.
Illustration The illustration below shows the configuration zone of a reflex function block.
ti=0
Output 26 Aux
1 2 1 2 1 2 1 2 3 4 5 6
Description The table below shows the different parts of the configuration zone.
Number Function
1 Columns allowing contacts to be entered with their associated language object.
2 Columns allowing horizontal and vertical links between contacts to be entered.
3 Column allowing the function blocks or their link with the combinational to be set
to 1.
4 Column showing the inputs on the selected function block.
5 Column:
l showing the type of internal parameter used by the block,
l allowing the required reflex function to be selected.
Description of The table below shows the various graphical objects available depending on the
graphical objects entry column or cell.
Object Column(s) Description
-- -- 1, 2, 3 Empty zone
----------- 1, 2, 3 Horizontal link
Presentation By default, the output channels of a reflex module are declared as standard discrete
outputs. It is also necessary to reassign the required function for each channel used.
Configuration of a reflex function involves defining operating conditions such as:
l the sequential logic associated to the different inputs,
l the type of output required,
l parametering of the block.
The sequential logic is generated in contact language using the language objects
associated with the reflex module concerned.
Procedure The table below shows the different steps involved in the configuration of a reflex
function block.
Step Action
1 Access the module's hardware configuration screen.
2 Select Outputs from the pull-down menu in the module zone.
3 Click in the Function cell of the channel to be assigned.
4 Select the required function from the pull-down list.
5 Generate the sequential logic. To do this, click in the chosen cell then:
l select a graphical object (contact, link, set input to 1),
l for a contact select:
l the variable (%Ixy, %Qxy, ERR),
l the i address.
l select the type of coil.
Introduction Certain reflex function blocks have internal parameters (values of between 0 and
65535) required for their operation (example: temporal thresholds).
These parameters are modifiable:
l from the module's adjustment screen (in local mode only),
l by program (see Explicit exchange objects: General, p. 134 ).
Procedure The table below describes the procedure for modifying the adjustment parameters
of a reflex function block.
Step Action
1 Access the module's hardware configuration screen.
2 Select the adjustment mode from the pull-down list in the module zone.
Result: the screen below appears.
3 For the channel concerned, select the cell relating to the parameter to be
entered.
4 Enter the parameter.
5 Confirm by pressing Enter.
Introduction Virtual outputs are not physical outputs of the module. They act on the internal status
bits of the module and can be associated with events.
A virtual output can thus trigger a PLC processor event task.
Performance The maximum event frequency is 1 kHz / Number of programmed event outputs.
The maximum number of events in one burst is 100 events per 100ms.
Procedure The table below gives the different steps enabling an event to be associated with an
output and its properties to be defined.
Step Action
1 Access the module's hardware configuration screen.
2 Select Outputs from the pull-down menu in the module zone.
3 Double-click in the Event cell of the channel to be assigned.
4 Select the required function.
5 Enter the Evt event number.
6 Repeat the operation for every channel to be configured (from step).
Presentation
Subject of this This section presents the different language objects specific to the discrete reflex
section module.
Implicit exchange language objects associated with module TSX DMY 28 RFK
Presentation Implicit exchange language objects associated with the reflex module can be used
in:
l the sequential logic of the function block,
l the PLC processor program,
Output x Aux
%Ixy.i.1 (i=16 à 31)
Event task
Bit objects The table below shows the different implicit exchange bit objects of module TSX
DMY 28 RFK.
Address Function Use within module Use in the PLC program
Mode Update Mode Update
%Ixy.i Image bits of the module's physical Read Real time Read (1)
(i = 0 to 15) input status.
%Ixy.i Image bits of the module's physical Read Real time Read (1)
(i = 16 to 27) output status.
%Ixy.i Image bits of the module's virtual Read Real time Read (1)
(i = 28 to 31) output status.
Key:
- Not used
(1) Update to the rate of the PLC task in which the channels are configured.
(2) These command bits control the corresponding physical outputs when the Direct function is
selected.
Word objects The table below shows the different implicit exchange word objects of module TSX
DMY 28 RFK.
Address Function Use within module Use in the PLC program
Mode Update Mode Update
%IWxy.i:X0 Event status associated with - Read (1)
(i = 28 to 31) channel i X0 = 1: rising edge
%IWxy.i:X1 Event status associated with - Read (1)
(i = 28 to 31) channel i X1 = 1: falling edge
%IWxy.i:X7 Event status associated with - Read (1)
(i = 28 to 31) channel i X7 = 1: loss of event
%QWxy.i:X0 Event masking command bit - Write (1)
(i = 28 to 31)
Key:
- Not used
(1) Update to the rate of the PLC task in which the channels are configured.
Explicit exchange language objects associated with module TSX DMY 28 RFK
Presentation The TSX DMY 28 RFK module reuses the language objects of standard discrete
modules (see the Language objects associated with the discrete specific
application, p. 128.
It does however have two explicit exchange objects, specific to the reflex outputs,
which enable the internal values of the function blocks to be modified (e.g.: th1, th2
for a 2 threshold counter).
These objects are as follows:
l %MWxy.i.4 which contains the first internal value of the function block,
l %MWxy.i.5 which contains the second internal value of the function block,
Modification of Other than the standard instructions (see Explicit exchange language objects
the internal associated with module TSX DMY 28 RFK , p. 197), the TSX DMY 28 RFK module
values by also uses a specific instruction MOD_PARAM (Modify parameters) which enables
program the parameters associated with a single channel to be modified.
Syntax: MOD_PARAM %CHxy.i (no., value1 , value2 , 0) where:
l i = 16 or 24 (index of the first channel of a group of 8 channels),
l no. = 0 to7 (index of the channel in the group of channels).
Example:
Modification of parameters of channel 18 (value 01 = 10 ms (100 x 0.1 ms) , value
2 = 500 ms (5000 x 0.1 ms))
MOD_PARAM %CHxy.16 (2, 100 , 5000 , 0)
III
At a Glance
Aim of this part This part presents the AS-i bus on PLC TSX/PCX 57 and describes its implemen-
tation with the software PL7 Junior and Pro.
Subject of this This Chapter introduces the AS-i bus on the TSX/PCX 57 PLC, and describes how
Chapter to access the different application editors.
At a Glance The AS-i Bus (Actuator Sensor-Interface) allows the interconnection on a single
cable of sensor devices/actuators at the lowest level of automation.
These sensors/actuators will be defined in the documentation as slave devices.
To implement the AS-i application you need to define the physical context of the
application into which it will integrated (rack, supply, processor, modules, AS-i slave
devices connected to the bus) then ensure its software implementation.
This second aspect will be carried out from the different PL7 editors:
l either in local mode,
l or in connected mode; in this case the modification is limited to certain
parameters.
Implementation The following table presents the different implementation phases of the AS-i bus.
principles
Mode Phase Description
Local Declaration of module Selection of the TSX SAY 100 module’s slot in the rack.
Declaration of slave devices Selection for each device:
l of its slot number on the bus,
l of the slave type.
Note: The order defined above is given for information only, the PL7 software
allows you to use the editors interactively in the required order (however you
cannot use the data or program editor without having configured the module and
the slave devices beforehand).
At a Glance The TSX SAY 100 module operates according to the master/slave mode. The
master only controls exchanges on the bus.
The AS-i standard sets several operating levels offered by the master:
l Profile M0 - Minimum Master: the master only puts forward the configuration of
slaves connected to the bus on power-up and input/output exchanges.
l Profile M1 - Full Master: this profile covers all the operating functions set by the
AS-i standard,
l Profile M2 - Reduced Master: this profile corresponds to profile M0 operating
functions with a slave-parametering option.
Note: The TSX SAY 100 module has an M2 profile, with the additional option of
reading slave diagnostics information.
The module includes data fields which are used to manage the lists of slaves and I/
O data images. This information is stored in a volatile memory.
Illustration of the The figure below shows the TSX SAY 100 module architecture.
architecture TSX SAY 100
1 I/O data
Parameters
2
current AS-i bus
3 Configuration /
Identification
4 LDS
5 LAS
6 LPS
Description of The table below shows the different elements that make up the architecture of the
constituent TSX SAY 100 module.
elements
Number Element Description
1 I/O data Image of 124 inputs and 124 outputs of AS-i bus.
2 Current parameters Image of parameters for all slaves.
3 Configuration/ This field contains all the I/O codes and identification
Identification codes for all the detected slaves.
4 LDS List of all the slaves detected on the bus.
5 LAS List of active slaves on the bus.
6 LPS List of slaves expected on the bus and configured by
PL7.
At a Glance The AS-i bus is used to interconnect 31 slave devices, each one having:
l 4 input bits,
l 4 output bits,
l 4 parametering bits,
Thus the AS-i bus can manage a maximum number of 248 I/O.
Each slave has its own address and a profile (defines variables exchange).
P3
2 Parameters
P0
Configuration/
3 Identification AS-i bus
4 Address
Description of The table below shows the different elements that make up the structure of an AS-i
constituent slave.
elements
Number Element Description
1 Input/output Input data is stored by the slave and made available for the AS-i
data master.
Output data is updated by the master module.
2 Parameters The parameters are used to control and switch internal operating
modes to the sensor or the actuator.
3 Configuration/ This field contains:
Identification l the code which corresponds to I/O configuration,
l the slave identification (ID) code.
Procedure This operation allows you to declare an AS-i communication module in the rack of
the PLC TSX 57 using the software.
Step Action
1 Double click on the required position in the rack displayed.
Result: The dialog box Add a module appears:
Add a module
Family: Module:
Analog mod. 1.5 TSX SAY100 As-Interface OK
Communication 1.5 MODULE
Upcounting 1.5 TSX SCY 21600 PCMCIA MODULE Cancel
Movement 1.5 TSX SCY 21601 PCMCIA MODULE
Weighing 1.7
Discrete 1.5
0 1 2 3 4 5 6
P T S
S S A
Y X Y
0 2 5
6 7 1
0 1 0
0 0 0
3
Note: The maximum number of TSX SAY 100 modules which can be installed
in a configuration is:
l 2 modules, with a TSX/PMX/PCX 57-1• processor,
l 4 modules, with a TSX/PMX/PCX 57-2• processor,
l 8 modules, with a TSX/PMX/PCX 57-3• processor, a TSX/PMX 57-4•
processor.
Procedure This operation allows access to the configuration of an AS-i communication module.
Step Action
1 Access the screen Hardware configuration
Result: The rack’s hardware configuration screen appears.
Configuration
XMWI
TSX 57303 V5.0... XT I..
0 1 2 3 4 5 6
P T S
S S A
Y X Y
0
2 5
6 7 1
0 1 0
0 0 0
3
2 Double click on the position of the communication module or select the module
and then carry out the command Service → Open the module.
Result: The selected module’s hardware configuration screen appears.
TSX SAY 100 [RACK 0 POSITION 6]
Configuration
Designation :AS-Interface module
Chan. 0 MAST
11
At a Glance
Subject of this This Chapter describes the Configuration aspect for installing the AS-i bus.
Chapter
At a Glance The configuration screen of the AS-i module gives access to the parameters
associated with the module and the slave devices.
Illustration This screen allows the display and modification of the parameters in local mode, as
well as Debugging in connected mode.
Chan. 0 MAST
3
Description The following table shows the different elements of the configuration screen and
their functions.
Address Element Function
1 Title bar Indicates the reference of the selected module and its physical position in the rack.
2 Command zone Allows the selection of the parameter type:
l Configuration,
l Debugging (diagnostic), only accessible in connected mode.
Displays the designation of the selected module.
Display of this zone is optional. Selection is made using the command View →
Module zone.
3 Channel zone Allows selection of the task in which the information from the AS-i communication
channel will be scanned:
l MAST task,
l FAST task.
Display of this zone is optional. Selection is made using the command View →
Channel zone.
4 AS-i configuration Allows:
zone l display of the slave devices connected to the bus,
l definition of a new configuration (adding, modifying or detecting slave devices).
5 General parameters Allows the display and the selection of the general parameters which are applied
zone to all the slaves on the bus.
l Automatic addressing,
l Fallback mode.
6 Slave configuration Allows display of the data associated with the selected slave, such as:
zone l its profile,
l a comment,
l its AS-i symbol (the symbols are defined with the help of the variables editor),
l its parameters.
At a Glance The PL7 software offers a catalogue, which regroups all of the AS-i slaves that are
available. This catalogue is structured in families (e.g.: Inductive detectors).
The list of slave device families contains two distinct elements:
l Non-specialized products,
l Private family.
Selection of a non-specialized product allows the selection of an AS-i profile
amongst 240 possibilities.
Selecting Private family gives the user the possibility of managing a specific AS-i
device catalogue file via its programming terminal.
Note: An application using the AS-i products from the Private Family catalogue is
always linked to the usage of this same private family catalogue.
Procedure This operation supports the declaration of a slave device on the AS-i bus.
Step Action
1 Access the AS-i module’s hardware configuration screen.
2 In the field AS-interface configuration, double click in the cell corresponding to
the new slave’s (1 to 31) host slot number or select the said cell and then carry
out the Edit → Add a slave command.
Result: The screen Associate a profile appears.
Associate Profile
AS-interface profile families
Code AS-i family name
8 Capacitive detectors
11 Inductive proximity sensors
9 Photo-electric detectors
1 Private family
12 IP20 connection interface
Add
Modify
Details
Ok Cancel
Step Action
3 In the Family Name field select the required family.
Result: The Profile catalogue associated with the selected family appears.
Associate a profiile
AS-interface profile families
AS-i AS-i family name
7 Control station
8 Détecteurs capacitifs
9 Photo-electric detectors
10 Interface E/S
11 Détecteurs inductifs
Ok Cancel
1
2 P XUJ-K1233538AS
3
4
5
6 To connect other slave devices to the AS-i bus, repeat the procedure from step
2.
At a Glance The PL7 software offers, from the AS-i module’s configuration screen, a group of
functions which allow you to easily modify, in locale mode, the software
configuration of the AS-i bus.
Procedure for This operation allows the deletion of a slave declared on an AS-i Bus.
deleting a slave
Step Action
1 Select the slave to be deleted.
2 Select the command Edit → Delete an AS-i slave.
Procedure for This operation allows the movement of a slave declared on an AS-i Bus.
moving a slave
Step Action
1 Select the slave to be moved.
2 Select the command Edit → Cut an AS-i slave.
3 Select the new required slot.
4 Select the command Edit → Paste an AS-i slave.
Procedure for This operation allows the copying of a slave declared on an AS-i Bus.
copying a slave
Step Action
1 Select the slave to be copied.
2 Select the command Edit → Copy an AS-i slave.
3 Select the slot of the new slave.
4 Select the command Edit → Paste an AS-i slave.
At a Glance The PL7 software allows access to all the information relating to an AS-i device such
as:
l the definition of a profile,
l the details of a profile.
Details of a The Detail function allows access, for a given slave, to all the information presented
profile in the catalog file.
Profile Details
r4e_01
Reference: XZ-SDA10D2
User module active
Enable the connection of 4 sensors.
PNP type input.
Maximum current used by 4 sensors = 100mA
Version:
Supplier: Télémécanique
AS- profilei: 0.0
I/O Error:
INPUTS:
PNP type
D0: I-1 Sensor signal 1 (pins 4-2)
D1: I-2 Sensor signal 2 (pins 4-2)
D2: I-3 Sensor signal 3 (pins 4-2)
D3: I-4 Sensor signal 4 (pins 4-2)
OK
Procedure for The following table shows the procedure for displaying the characteristics of a slave
accessing device.
information on a
Step Action
profile
1 Access the AS-i module’s hardware configuration screen.
2 Double click on the required slave.
Result:: The window Associate a profile displays and highlights the device in
question
3 Click on the button:
l View to access definition information,
l Detail to access all the information.
At a Glance The PL7 software offers the possibility to define a slave profile, which was not
provided, in the standard catalogue.
The new profile, defined in this way, is added to the catalogue in Private family.
This profile can then be used as a standard catalogue profile.
Note: A profile cannot be deleted, only their name and comment can be changed.
Procedure The following table presents the procedure for defining a slave profile, which is not
provided in the standard catalogue.
Step Action
1 Access the AS-i module’s hardware configuration screen.
2 Double click in a slave’s host cell (1 to 31).
Result: The screen Associate a profile appears.
3 Select Private family in the field Family name.
Result: The Profile catalog linked to the selected family appears.
Associate Profile
AS-interface profile families
Code AS-i family name
8 Capacitive detectors
11 Inductive proximity sensors
9 Photo-electric detectors
1 Private family
12 IP20 connection interface
Modify
Details
Ok Cancel
Step Action
6 Select:
l the IO code (corresponds to the input/output configuration),
l the ID code (identifier).
At a Glance Each slave on the AS-i bus must be assigned (via configuration) a unique physical
address. This must be the same as the one declared in PL7.
PL7 software offers an automatic slave addressing utility so that an AS-i console
does not have to be used.
The automatic addressing utility, which can be accessed via PL7, is used for:
l replacing a faulty slave (See Automatic replacement of a faulty AS-i slave,
p. 231),
l inserting a new slave (See How to insert a slave device into an existing AS-i
configuration., p. 232).
Note: A new configuration with automatic addressing will not be accepted if one or
more slaves with a 0 address are on the bus. In this case, the Configuration
refused by module message appears.
Procedure The table below shows the procedure for setting the Automatic addressing
parameter.
Step Action
1 Access the AS-i communication module’s configuration screen.
2 Click on the Automatic addressing check box found in the General
parameters zone.
Result: The Automatic addressing utility will be activated (box checked) or
disabled (box not checked).
General parameters Fallback mode on failure
Automatic addressing Fallback: Maintain
At a Glance This parameter sets the fallback mode which slave outputs take on while switching
to STOP mode or if there is a PLC fault.
Possible modes are:
l Fallback to 0: AS-i slave outputs which are present on the bus are set to 0 (%Q
objects are not modified),
l Maintain state: AS-i slave outputs remain in the state they were before STOP
mode was engaged.
Note: The fallback mode for slaves which do not have a watchdog (AS-i bus
monitoring function) is not guaranteed in case of an AS-i bus fault, or AS-i power
supply failure. For slaves with a watchdog, the fallback position is preset within the
device.
Procedure The table below shows the procedure for setting the Fallback mode assigned to
slave device outputs.
Step Action
1 Access the AS-i communication module’s configuration screen.
2 Click on the Fallback to 0 / Maintain state check-box found in the General
parameters zone, in the Fallback mode on fault field.
Result: The fallback mode selected will therefore be assigned to the slave
device.
General parameters
Fallback mode on failure
Automatic addressing Fallback: Maintain
12
At a Glance
Subject of this This Chapter describes the Debug aspect of the AS-i bus.
Chapter
At a Glance The Debug function is used for each AS-i communication module present in the
application:
l to display the slave state (connection, parameters etc.),
l to access the adjustment function for the selected channel (channel forcing etc.).
The function also accesses module diagnostics in the event of a fault.
At a Glance The debugging screen dynamically displays the status of the AS-i module and the
devices which are connected to the bus.
It also allows access to the adjustment of the slave parameters and to the channel
commands (forcing the input or output value, Set/Reset of an output, …).
Chan. 0 : Asi
3 Channel 0
Description The following table shows the different elements of the debugging screen and their
functions.
Address Element Function
1 Title bar Indicates the reference of the selected module and its physical position in the
PLC.
2 Module zone Allows the selection of the parameter type:
l Configuration,
l Debugging (diagnostic), only accessible in connected mode.
Displays the status of the module’s lights RUN, ERR, I/O.
Provides direct access to the diagnostics of the module when it is faulty
(signaled by the light built-in to the diagnostics access button DIAG, which turns
red).
3 Channel zone Provides direct access to the diagnostics of one of the module’s channels when
it is at default (signaled by the light built-in to the diagnostics access button
DIAG, which turns red).
4 AS-i configuration zone Displays the slave devices connected to the bus.
5 Slave zone Displays the status of the slave’s channels and gives access to the debugging
functions.
At a Glance The functions of the module or channel diagnostics display the current errors in
which are classed according to their category:
l internal errors (internal software errors, communication error with the processor,
configuration, parametering or command error),
l external errors(slave device failed, AS-i supply switched off, terminal error,
difference between physical configuration and PL7 configuration),
l other errors (module absent or switched off).
A faulty module becomes apparent when certain lights change to red, such as:
l in the configuration editor at rack level:
l the module position light,
l in the configuration editor at module level:
l the lights RUN, ERR and I/O,
l the light DIAG.
A faulty channel becomes apparent when certain lights change to red, such as:
l in the configuration editor at rack level:
l the module position light,
l in the configuration editor at channel level:
l the light DIAG.
Procedure for The following table presents the procedure to access the screen Module
accessing the diagnostics.
module
Step Action
diagnostics
1 Access the AS-i module’s hardware configuration screen.
2 Click on the button DIAG situated in the module zone.
Result: The list of module errors appears.
Module Diagnostics
Internal faults External faults Other faults
OK
Procedure for The following table presents the procedure for accessing the screen Channel
accessing the diagnostics.
channel
Step Action
diagnostics
1 Access the AS-i module’s hardware configuration screen.
2 Click on the button DIAG situated in the channel zone.
Result: The list of channel errors appears.
Channel Diagnostics
Internal faults External faults Other faults
OK
At a Glance The lower part of the communication module’s debugging screen is reserved for
diagnostics of the AS-i bus.
The slave devices connected to the bus are displayed in the AS-i Configuration
zone. On each side of the slave number, two different icons are displayed, indicating
that the slave was specified or detected.
Displaying slave For each slave device, one of the following four cases can occur:
status
Case Illustration Explanation
1 Slave status: The slave P specified in configuration and the detected slave D are
AS-interface configuration
identical.
D 1 P XAL-S2003
2
3
4
5
2 Slave status: The slave P specified in configuration and the detected slave D are
AS-interface configuration
not identical. The slave is declared faulty (1).
D 1 P XAL-S2003
2
3
4
5
Key:
(1) When a slave is faulty, the icons situated beside the number as well as the button DIAG turn to red.
Note: The Profile field in the Slave zone of the debugging screen allows you to check if the profiles of the specified
(Projected) slave and the Detected slave are really identical.
At a Glance The debugging screen of an AS-i module allows, amongst other things, access to
modification of a slave’s parameters.
Procedure The following table shows the procedure for modifying the parameters of a slave
device declared faulty.
Step Action
1 Access the AS-i module’s debugging screen.
2 Select the slave with the error.
Result: In the slave zone of the debugging screen, it is possible to read all the
information relating to the selected slave.
AS-interface configuration Slave no : 1
Profile Parameters (3-0)
D 1 P XZ-SDA22D32 Projected 3.0 Value : 1111 Modify PARAM
D 2 P XAL-S2003
Detected 3.0
3 Global unforcing
4 Chan. action
Chan. Asi Symbol State
5 F4 Force to 0
0 0
D 6 P LF2K09BW#**C %I 1 0
2 Not handled F5 Force to 1
7
3 Not handled F6
8 Unforce
0 Not handled
9 %Q 1 Not handled F7 Set
2 0
D 10 P XZ-SDA22D32 F8 Reset
3 1
3 Click on the button Modif PARAM situated in the slave zone’s Parameters field.
Result: The window Parameter modification appears.
TSX SAY 100 [RACK 0 POSITION 8]
Modify Parameters slave no : 1
Mise au point
Parameters
Désignation : COUPLEUR AS-Interface Version :
0 Unused 2 Unused RUN ERR IO DIAG...
1 Unused 3 Flash On/Off
Voie 0 : Asi
Voie 0
Send Cancel entry Close
BUS As-Interface MAST DIAG...
Introduction This function supports the modification of the state of the channels, which are linked
to the AS-i slave.
The different commands, which are available are:
l for a channel:
l forcing to 0,
l forcing to 1,
l unforcing.
l for all the channels (when at least one channel is forced):
l global unforcing.
Procedure The following table shows the procedure to follow to force or unforce the channels
linked to an AS-i slave.
Step Action for a channel Action for a group of channels
1 Access the AS-i interface card’s debugging screen.
2 Select a slave in the zone AS-i Configuration.
3 Select the channel to modify in the slave zone table. Click on the button Global unforcing found
Result: It is possible to modify the channel using the buttons in the slave zone.
situated in the field Channel action .
Slave no : 1
Profile Parameters (3-0)
Projected 3.0 Value : 1111 Modify PARAM
Detected 3.0
Global unforcing
Chan. action
Chan. Asi Symbol State
0 0 F4 Force to 0
%I 1 00
2 Not handled F5 Force to 1
3 Not handled F6 Unforce
0 Not handled
%Q 1 Not handled F7 Set
2 0
3 1 F8 Reset
How to access the SET and RESET commands of the AS-i channels
At a Glance These commands allow the assignment of the values 0 (RESET) or 1 (SET) to the
channels of an AS-i slave.
The status of the output affected by one of these commands is temporary and can
be modified at any time by the application.
Procedure The following table presents the procedure for assigning a value of 0 or 1 to the
selected AS-i slave’s channels.
Step Action
1 Access the AS-i module’s debugging screen.
2 Select a slave in the zone AS-i Configuration.
3 Select the channel to be modified in the Slave zone table.
Result: It is possible to modify the channel using the buttons situated in the
field Channel action.
Slave no : 1
Profile Parameters (3-0)
Projected 3.0 Value : 1111 Modify PARAM
Detected 3.0
Global unforcing
Chan. action
Chan. Asi Symbol State
0 0 F4 Force to 0
%I 1 00
2 Not handled F5 Force to 1
3 Not handled F6 Unforce
0 Not handled
%Q 1 Not handled F7 Set
2 0
3 1 F8 Reset
4 Select the required function (buttons Set or Reset) in the field Channel action.
Principle When a slave has been declared faulty, it can be automatically replaced with a slave
of the same type.
This happens without the AS-i bus having to stop, and without any particular
manipulation since the configuration mode Automatic addressing utility is active
(see How to modify AS-i slave general parameters: Automatic addressing, p. 219).
Two options are available:
l The replacement slave is programmed with the same address using the pocket
programmer, and has the same profile as the faulty slave. It will then be
automatically inserted into the list of detected slaves (LDS) and list of active
slaves (LAS).
l the replacement slave is blank (address 0, new slave) and has the same profile
as the faulty slave. It will automatically assume the address of the replaced slave,
and will then be inserted into the list of detected slaves (LDS) and the list of active
slaves (LAS).
At a Glance It is possible to insert a device into an existing AS-i configuration without having to
use the pocket programmer.
This operation is possible as soon as:
l the service Automatic addressing of the configuration mode is active (See How
to modify AS-i slave general parameters: Automatic addressing, p. 219),
l a single slave is absent in the physical configuration,
l the slave which is to be inserted is projected in the PL7 configuration,
l the slave has the profile expected by the configuration,
l the slave has the address 0.
Therefore the AS-i interface card will automatically assign to the slave the value
predefined in the configuration.
Procedure The following table presents the procedure for making the automatic insertion of a
new slave effective.
Step Action
1 Add the new slave in the configuration screen in local mode.
2 Do a configuration transfer to the PLC in connected mode.
3 Physically link the new slave with address 0 to the AS-i bus.
At a Glance This command allows the movement of the selected AS-i device to another available
address. The address is only modified on the slave and not in configuration. The
physical configuration and the software configuration are different.
Note: This function is only operational for the TSX SAY 100 modules, version PV
higher than 02.
Procedure The following table shows the procedure for modifying the address of an AS-i slave
device.
Step Action
1 Access the TSX SAY 100 module’s debugging screen.
2 Select a slave in the zone AS-i configuration then execute the command Edit
→ Modify the AS-i address.
Result: The selection screen for a new address is displayed.
Modify Address
Current address: 3
Addresses available: 0
2
4
5
6
7
8
9
OK Cancel
3 Select the required address in the list of Available addresses (use the scroll bar
if necessary).
4 Confirm the selection with OK.
Subject of this This Chapter introduces the different word and bit objects associated with the AS-i
Chapter function, as well as how to address them.
Adressing language objects associated with slave devices connected to the AS-
i bus.
At a Glance Addressing bit and word objects associated with application-specific functions is laid
out in the Common Applications part.
This page presents specific details associated with the AS-i function.
Specific values The table below gives specific values to AS-i slave objects.
Element Values Comment
n 0 to 31 Slot 0 cannot be configured.
i 0 to 3 -
At a Glance
Subject of this This Section introduces the different language objects associated with the AS-i
Section function.
At a Glance In each task cycle where the AS-i function has been configured, these objects are
exchanged automatically.
Bit objects The table below shows the different implicit exchange bit objects.
Address Function Meaning when bit is on 1
%Ixy.0.ERR Channel fault bit Indicates a power supply fault or a slave is missing on the AS-i
bus.
%Ixy.MOD.ERR Module fault bit Indicates that the module has a fault.
%Ixy.0 Validity of input Indicates that all inputs are valid
Note: When this bit is on 0, this indicates that at least one input is
invalid: either offline mode, data exchange off mode, or channel
fault.
%Ixy.0.i Reserved -
%I\xy.0\.n.i input channel bit Indicates that the input channel i of device n is activated.
%Q\xy.0\.n.i output channel bit Indicates that the output channel i of device n is activated.
%Qxy.0 Reserved -
%Qxy.0.i Reserved -
Word objects The table below shows the different implicit exchange word objects.
Address Function Meaning for Xj = 1 (j = position of bit in the word)
%IWxy.0 List of faulty slaves j = 0 to 15 -> slaves 0 to 15 respectively are faulty or missing.
%IWxy.0.1 j = 0 to 15 -> slaves 16 to 31 respectively are faulty or missing.
%IWxy.0.2 List of activated slaves (LAS) j = 0 to 15 -> slaves 0 to 15 respectively are activated.
%IWxy.0.3 j = 0 to 15 -> slaves 16 to 31 respectively are activated.
At a Glance These word type objects carry information about the module or channel exchanges
in progress.
They are updated automatically by the system.
Description The following table provides the meaning of the different bits of the word
%MWxy.MOD.0.
Address Meaning for Xj =1
%MWxy.MOD.0:X0 Exchange of status words in progress on the module channel.
%MWxy.MOD.0:X1 Exchange of command words in progress on the module
channel.
Description The following table provides the meaning of the different bits of the word
%MWxy.i.0.
Address Meaning for Xj =1
%MWxy.0.0:X0 Exchange of status words in progress on the AS-i channel.
%MWxy.0.0:X1 Exchange of command words in progress on the AS-i channel.
Example The following example shows a possible use of this type of word
Note: When the length of the explicit exchange is less than the cycle time of PLC
task, the %MWxy.0:x0 bit never changes to 1.
At a Glance These word type objects carry information about the module or channel exchange
reports.
They are updated automatically by the system.
Description The following table provides the meaning of the different bits of the word
%MWxy.MOD.1.
Address Meaning for Xj =1
%MWxy.0.1:X0 Status parameter exchange error on channel 0 of the module.
%MWxy.0.1:X1 Command parameter exchange error on channel 0 of the
module.
Description The following table provides the meaning of the different bits of the word
%MWxy.i.1.
Address Meaning for Xj =1
%MWxy.0.1:X0 Status parameter exchange error on the AS-i channel.
%MWxy.0.1:X1 Command parameter exchange error on the AS-i channel.
Example The following example shows a possible use of this type of word
At a Glance Explicit exchange objects carry information (e.g.: bus operation, status of slaves…)
and the additional commands for advanced programming of the AS-i function.
Note: The configuration constants %KWxy.i.r, which are not documented in this
manual, can only be accessed in read format and correspond to the configuration
parameters input with the help of the Configuration editor.
The explicit exchange objects are exchanged at the request of the program user
using instructions:
l READ_STS (reading of status words),
l WRITE_CMD (writing the command words),
l WRITE_PARAM (writing the adjustment words),
l READ_PARAM (reading the adjustment parameters),
l SAVE_PARAM (saving the adjustment parameters),
l RESTORE_PARAM (restoring the adjustment parameters).
At a Glance These word type objects provide information on all the slaves present on the AS-i
bus.
Description of The table below provides the meaning of the different bits of the word %MWxy.0.2.
word %MWxy.0.2
Address Function Meaning for Xj = 1
%MWxy.0.2:X0 Standard status Reserved
%MWxy.0.2:X1 One or several slaves are faulty.
%MWxy.0.2:X2 Line error (power supply off or faulty terminal block).
%MWxy.0.2:X3 Physical configuration different from PL7 configuration.
%MWxy.0.2:X4 Internal software error.
%MWxy.0.2:X5 Reserved
%MWxy.0.2:X6 Error communicating with processor
%MWxy.0.2:X7 Command or parameter configuration fault.
Description of The table below provides the meaning of the different bits of the word %MWxy.0.3.
word %MWxy.0.3
Address Function Meaning for Xj = 1
%MWxy.0.3:X0 AS-i specific status Correct configuration.
%MWxy.0.3:X1 Slave 0 present.
%MWxy.0.3:X2 Automatic addressing enabled.
%MWxy.0.3:X3 Reserved
%MWxy.0.3:X4 Reserved
%MWxy.0.3:X5 Reserved
%MWxy.0.3:X6 Faulty AS-i power supply.
%MWxy.0.3:X7 Offline phase active.
%MWxy.0.3:X8 Reserved
Description of The table below provides the meaning of the different bits of words %MWxy.0.4 and
words %MWxy.0.5.
%MWxy.0.4 and
%MWxy.0.5
Address Function Meaning for Xj = 1
%MWxy.0.4:Xj List of detected slaves LDS j = 0 to 15 -> slaves 0 to 15 respectively have been detected.
%MWxy.0.5:Xj j = 0 to 15 -> slaves 16 to 31 respectively have been detected.
Description of The table below provides the meaning of the different bits of words %MWxy.0.6 to
words %MWxy.0.21.
%MWxy.0.6 to
%MWxy.0.21
Address Function Meaning
%MWxy.0.6 to I/O configuration and ID of Words 6 to 21 -> devices respectively 0-1, 2-3, ... 28-29, 30-31.
%MWxy.0.21 all detected slaves Least significant bytes concern slaves with even addresses.
Most significant bytes concern slaves with odd addresses.
For each byte:
bit 0-3 = configuration code for I/O channels,
bit 4-7 = identification (ID) code.
Description of The table below provides the meaning of the word %MWxy.0.22.
word
%MWxy.0.22
Address Function Meaning
%MWxy.0.22 Parameter data of last Contains the reply (value of parameters sent) of the last
parametered slave. parametered slave. This is so that the PL7 can check the slave has
correctly received these values.
Description of The table below provides the meaning of the word %MWxy.0.23.
word
%MWxy.0.23
Address Function Meaning
%MWxy.0.23 Address of last parametered Contains the address of last parametered slave.
slave.
At a Glance This word type object is used to manage the switch to Offline mode (See AS-I offline
operating mode, p. 252) or Data exchange off mode (See AS-i data exchange off
operating mode, p. 253) of the AS-i master.
Description The table below shows the coding of bits 0 to 3 of the word %MWxy.0.24 allowing
access to the different modes.
Bit 3 Bit 2 Bit 1 Bit 0 Function
0 0 0 0 Normal operating mode
0 0 0 1 Activation of offline mode
0 0 1 0 Disabling offline mode
0 0 1 1 No effect
Note: Offline mode has priority over data exchange off mode.
At a Glance These objects are used to manage the parameters of AS-i slave devices.
They can be modified without stopping the AS-i function.
At a Glance This word type object provides information on the state of the module.
Description The table below provides the meaning of the different bits of the word
%MWxy.MOD.2:Xj.
Address Function Meaning for Xj = 1
%MWxy.MOD.2:X0 Standard module status Internal error.
%MWxy.MOD.2:X1 Configuration fault.
%MWxy.MOD.2:X2 Line fault.
%MWxy.MOD.2:X3 Not used.
%MWxy.MOD.2:X4 Not used.
%MWxy.MOD.2:X5 Not used.
%MWxy.MOD.2:X6 Module missing.
%MWxy.MOD.2:X7 Not used.
14
At a Glance
Subject of this This Chapter introduces the different AS-i function operating modes.
Chapter
At a Glance The AS-i function allows four operating modes, each one fulfilling particular needs.
These modes are:
l protected mode,
l wiring test mode (can be accessed using the button on the front panel of the
module),
l offline mode,
l data exchange off mode.
Operating mode The figure below shows the general schema of AS-i bus functioning.
Offline mode
PLC
off
Start
AS-i master module
Yes Yes
(1)
(1) : It is possible to switch from protected mode to offline or data exchange off
modes (see AS-I offline operating mode, p. 252 ou AS-i data exchange off operating
mode, p. 253).
(2) : The module exits the wiring test mode and passes to protected mode if it
receives a configuration.
Correspondence The table below shows the correspondence between TSX/PMX/PCX 57 PLC
between PLC operating modes and those of the AS-i bus.
operating modes
PLC AS-i bus
and the AS-i bus
Configured mode (1) Protected mode
Non-configured mode (1) Wiring test mode (Configuration mode)
Legend:
(1) These PLC notions (ie. configured, non-configured) concern the
declaration of the module and slave devices in the PL7
application hardware configuration screen.
At a Glance The AS-i protected operating mode is the mode generally used for an application
which is running.
It is assumed that the TSX SAY 100 module is configured in PL7.
This:
l continually checks that the list of detected slaves is the same as the list of
expected slaves.
l monitors the power supply.
In this mode, a slave will only be activated if it has been declared in the configuration
and been detected.
Principle of The schema below show the principle of activating AS-i slaves.
activating a slave
PL7 AS-i Module
Comparison
List of slaves
activated LAS
At a Glance The Wiring test mode, particularly useful when starting new installations, is used to
display on the front panel of the TSX SAY 100 module:
l expected and detected slaves,
l unexpected and non-detected slaves,
l expected and non-detected slaves, or unexpected and detected slaves.
For each slave present on the bus, this mode can also be used to display the state
of I/O bits.
Note: LDS and LAS lists, as well as slave adjustment parameters, cannot be
accessed in this mode.
Access The wiring test mode is an AS-i function which can be accessed when:
conditions l the TSX SAY 100 module is in non-configured mode.
This mode is obtained when:
l the TSX SAY 100 module has not been declared in the application,
l the PLC processor is missing.
l each device has a unique address,
l 0 address is not used.
At a Glance The AS-i offline mode is an advanced operating mode which can be used in
debugging or maintenance.
Note: To use it, you must be thoroughly familiar with AS-i communication.
Principle When offline mode is engaged, the module first resets all the present slaves to zero
and stops exchanges on the bus.
During offline mode, the I/O image in the module is frozen in the state that is was in
when the offline mode started.
On module output, if the list of present slaves (LPS) is the same as the list of
detected slaves (LDS), the system restarts. If this is not the case, a fault is generated
and you must refer to diagnostics mode or go back to the configuration.
At a Glance The AS-i data exchange off mode is an advanced operating mode which can be
used in debugging or maintenance.
Note: To use it, you must be thoroughly familiar with AS-i communication.
Principle When the offline data exchange mode is engaged, exchanges on the bus continue
to function, but data is not longer refreshed.
Procedure The data exchange off operating mode can be accessed from PL7 application
software by acting on bits 2 and 3 of the %MWxy.0.3 word.
Remember: Bit 8 of word %MWxy.0.3 set on 1 indicates that the AS-i bus is in data
exchange off mode.
15
AS-i bus performance
At a Glance The AS-i bus is independently managed by the master. This exchanges data on
each cycle with each slave device configured on the bus (in ascending order of slave
address number).
AS-i scanning t scanning time represents the exchange time between the master and n slaves (31
time maximum).
Either:
l t = 156 micro seconds x (n+2), if n < 31,
l t = 156 micro seconds x (n+1), if n = 31.
Thus the scanning time cannot exceed 5 ms.
Example The table below shows three examples of T response time for a PLC task lasting 10
ms, 30 ms, and 60 ms.
This T time is for a bus loaded with 31 slaves operating normally with no link faults.
PLC task Typical response time Maximum response time
10 ms 35 ms 56 ms
30 ms 65 ms 96 ms
60 ms 110 ms 156 ms
16
AS-i security monitor DFBs
At a Glance The DFBs for the AS-i bus security monitor are described in the section on AS-i V2
(See DFB for AS-i Security Monitor, p. 327).
IV
At a Glance
Aim of this Part This part presents the AS-i V2 bus on PLC TSX/PCX 57 and describes its implemen-
tation with the software PL7 Junior and Pro.
Aim of this This chapter introduces the AS-i V2 bus on the Premium/Atrium PLC, and describes
chapter how to access the different application editors.
Introduction The AS-i Bus (Actuator Sensor-Interface) allows the interconnection on a single
cable of sensor devices/actuators at the lowest level of automation.
These sensors/actuators will be defined in the documentation as slave devices.
To implement the AS-i application you need to define the physical context of the
application into which it will integrated (rack, power supply, processor, modules, AS-
i slave devices connected to the bus) then ensure its software implementation.
This second aspect will be carried out from the different PL7 editors:
l either in local mode,
l or in connected mode; in this case the modification is limited to certain
parameters.
AS-i V2 Bus The coupler TSX SAY 1000 integrates the functions AS-i V2.
The AS-i bus then allows:
l up to 62 standard and/or extended address slaves,
l up to 248 inputs and 186 outputs,
l up to 124 analog values integrated in the master AS-i,
l a cycle time of 10ms maximum.
Implementation The following table shows the different implementation phases of the AS-i bus.
Mode Phase Description
Local Declaration of module Selection of slot for TSX SAY 1000 module in the rack.
Declaration of slave devices Selection for each device:
l of its slot number on the bus,
l of the type of standard or extended address slave
Note: The order defined above is given for information only; the PL7 software
allows you to use the editors interactively in the required order (however you
cannot use the data or program editor without having previously configured the
module and the slave devices.)
At a Glance The TSX SAY 1000 module operates according to the master/slave mode. The
master only controls exchanges on the bus.
The AS-i standard sets several operating levels offered by the master:
l Profile M0 and M0e - Minimum Master: the master only puts forward the
configuration of slaves connected to the bus on power-up, and only input/output
exchanges.
l Profile M1 and M1e - Full Master: this profile covers all the operating functions set
by the AS-i standard,
l Profile M2 and M2e - Reduced Master: this profile corresponds to profile M0
operating functions with a slave-parametering option.
The master profiles with an "e" support extended profiles.
Note: The TSX SAY 1000 module has an M2e profile, with the additional option of
reading slave and slave channel diagnostics information.
The module includes data fields which are used to manage the lists of slaves and I/
O data images. This information is stored in a volatile memory.
Illustration of the The figure below shows the TSX SAY 1000 module architecture.
architecture TSX SAY 1000
1 I/O data
Parameters
2
current AS-i bus
3 Configuration/
Identification
4 LDS
5 LAS
6 LPS
7 LPF
Description of The table below shows the different elements that make up the architecture of the
constituent TSX SAY 1000 module.
elements
Number Element Description
1 I/O data Images of 248 inputs and 186 outputs of AS-i V2 bus.
2 Current parameters Image of parameters of all slaves.
3 Configuration/ This field contains all the I/O codes and identification
Identification codes for all the detected slaves.
4 LDS List of all the slaves detected on the bus.
5 LAS List of active slaves on the bus.
6 LPS List of slaves expected on the bus and configured by
PL7.
7 LPF List of slaves having a device fault.
Structure The figure below shows the structure of a standard address slave.
illustration AS-i slave
D3
1 I/O data
D0
P3
2 Parameters
P0
Configuration/
3 Identification AS-i bus
4 Address
Description of The table below shows the different elements that make up the structure of a
constituent standard address slave.
elements
Number Element Description
1 Input/output Input data is stored by the slave and made available for the AS-i
data master.
Output data is updated by the master module.
2 Parameters The parameters are used to control and switch internal operating
modes to the sensor or the actuator.
3 Configuration/ This field contains:
Identification l the code which corresponds to I/O configuration,
l the slave identification codes (ID, ID1, ID2).
At a Glance The extended AS-i V2 bus is used to interconnect 62 extended address devices.
The extended address slaves each have:
l 4 input bits,
l 3 output bits,
l 3 parametering bits.
The AS-i V2 bus can manage a maximum of 248 Inputs and 186 Outputs from
extended address slaves.
Each slave has its own address, profile and sub-profile (defines variables
exchange).
Structure The figure below shows the structure of an extended address slave.
illustration
AS-i slave
Input Bit Only
(D3)
1 I/O data
D0
2 Parameters P2
P0
Configuration/
3 Identification AS-i bus
4 Address
Description of The table below shows the different elements that make up the structure of an
constituent extended address slave.
elements
Number Element Description
1 Input/output Input data is stored by the slave and made available for the AS-i
data master.
Output data is updated by the master module.
2 Parameters The parameters are used to control and switch internal operating
modes to the sensor or the actuator.
3 Configuration/ This field contains:
Identification l the code which corresponds to I/O configuration,
l the slave identification (ID) code,
l the slave identification codes (ID1 and ID2).
Note: The operating parameters, address, configuration and identification data are saved in
a non-volatile memory.
Procedure This operation allows you to declare an AS-i communication module in the rack of
the PLC TSX 57 using the software.
Step Action
1 Double click on the required position in the rack displayed.
Result: The dialog box Add a module appears:
Add a module
Family: Module:
Analog 1.5 TSX SAY1000 AS-Interface MODULE OK
Communication 1.5 TSX SCY 21600 PCMCIA HOST MODULE
Upcounting 1.5 TSX SCY 21601 PCMCIA HOST MODULE Cancel
Movement 1.5
Weighing 1.7
Alternating 1.5
0 1 2 3 4 5 6
P T S
S S A
Y X Y
0 2 5 1
6 7 0
0 1 0
0 0 0
3
Note: The maximum number of TSX SAY 1000 modules which can be installed
in a configuration is:
Procedure This operation allows access to the configuration of an AS-i communication module.
Step Action
1 Access the Hardware configuration screen
Result: The rack’s hardware configuration screen appears.
Configuration
XMWI
TSX 57303 V5.0... XT I..
0 1 2 3 4 5 6
P T S
S S A
Y X Y
0
2 5
6 7 1
0 1 0
0 0 0
3 0
2 Double click on the position of the communication module or select the module
and then carry out the command Service → Open the module.
Illustration: Example of a configuration screen with 2 configured slaves
TSX SAY 1000 [RACK 0 POSITION 1]
Configuration
Designation: AS-interface V2 Module
Channel 0:
Channel 0
AS-interface V2 Bus MAST
AS-interface V2 configuration Slave 2B
Automatic addressing Specifications
Std/A Slaves /B Slaves Profile: IO 0 ID a ID2 0 ID1 0
0 Comment 4 input extended addr. Module
XVBC21A P 1 Parameters
2 P ASIME4IE
0 Unused 2 Unused
3
4 1 Unused 0
5
6 Input / Output Symbols
7 Input Number Symbol
8 1 %I\1.0\102.0
9 2 %I\1.0\102.1
10 3 %I\1.0\102.2
11 4 %I\1.0\102.3
12 Output Number Symbol
13 Not handled
1 Not handled
14 Not handled
2 Not handled
3 Not handled Not handled
4 Not handled Not handled
18
At a Glance
Subject of this This Chapter describes the Configuration aspect for installing the AS-i V2 bus.
Chapter
At a Glance The configuration screen of the AS-i V2 module gives access to the parameters
associated with the module and the slave devices.
Illustration This screen allows the display and modification of the parameters in local mode, as
well as Debugging in connected mode.
1 TSX SAY 1000 [RACK 0 POSITION 1]
Configuration
2 Designation: AS-interface V2 Module
Channel 0
3
AS-interface V2 Bus MAST
AS-interface V2 configuration Slave 2B
Automatic addressing Specifications
Std/A Slaves /B Slaves Profile: IO 0 ID a ID2 0 ID1 0
5
0 Comment 4 input extended addr. Module
XVBC21A P 1 Parameters
2 P ASIME4IE
0 Unused 2 Unused
3 6
4 4 1 Unused 0
5
6 Input / Output Symbols
7 Input Number Symbol
8 1 %I\1.0\102.0
9 2 %I\1.0\102.1
10 3 %I\1.0\102.2
11 4 %I\1.0\102.3 7
12 Output Number Symbol
13
1 Not handled Not handled
14
2 Not handled Not handled
3 Not handled Not handled
4 Not handled Not handled
Description The following table shows the different elements of the configuration screen and
their functions.
Number Element Function
Module
1 Title bar Indicates the reference of the selected module and its physical position in the rack.
2 Command Allows the selection of the parameter type:
l Configuration,
l Debugging (diagnostics), only accessible in connected mode.
Displays the designation of the selected module.
Display of this zone is optional. Selection is made using the command View →
Module zone.
AS-i V2 bus
3 Channel 0 Allows selection of the task in which the information from the AS-i communication
channel will be scanned:
l MAST Task,
l FAST Task.
Display of this zone is optional. The choice is made using the command View →
Channel zone.
4 AS-interface V2 Allows:
configuration l Viewing standard and extended address setting slave devices connected to the
bus,
l definition of a new configuration (adding, modifying or detecting slave devices).
l Selecting automatic addressing mode
Slave
5 Specifications Allows viewing of:
l Slave profile
l Comments on the selected slave
6 Parameters Allows display and selection of parameters applied to the selected slave. The
parameters displayed differ according to the type of slave selected.
For example:
l Watchdog
l Fallback Position
7 Input / Output Allows data associated with the selected slave to be displayed, such as:
Symbols l its AS-i symbol (the symbols are defined with the help of the variables editor),
l Its label (or address) which can be used in the program
At a Glance PL7 software offers a catalog of Schneider products which groups together all of the
AS-i V2 slaves that are available. This catalog is currently structured around the
following product families:
l Keyboards
l Illuminated columns
l Command and signaling
l AS-i modules and interfaces
l Motor-starters
l Inductive sensors
l Phototronic sensors
l Private family
l IP20 linkage interfaces
l Position switches
l Analog modules
l Security modules
l Logical modules
l IP67 Distributors
l Variable speed controllers
Selecting Private family enables the user to enhance the PL7 catalog with specific
AS-i products via a programming terminal.
Note: An application using AS-i products from the Private Family catalog is
always linked to the usage of the same Private Family on the workstation upon
which the catalog was created.
Procedure This operation enables the declaration of a slave device on the AS-i V2 bus.
Step Action
1 Access the AS-i module’s hardware configuration screen.
2 In the AS-interface V2 configuration field, double click in the cell
corresponding to the new slave’s host slot number (1A to 31A or 1B to 31B) or
select this cell and then carry out the Edit command → Add a slave.
Result: The Associate a profile screen appears.
Associate a profile
Families of AS-interface profiles
Code ASI Family Name
5 Keyboards
6 Illuminated columns
7 Command and signaling
8 AS-i Modules and Interfaces
4 Motor-starters
Modify
Delete
Detail
Ok Cancel
Detail
Ok Cancel
Column Legend @ :
std: standard address slave (for configuration in column /A).
A/B: extended address slave (for configuration in columns /A or /B).
Step Action
4 In the Profile catalogue select the required device.
5 Confirm the selection with OK.
Result: The slave device is declared in its slot, the connected device reference
appears opposite the slave number.
AS-interface V2 configuration
Automatic addressing
Std/A Slaves /B Slaves
0
1 P ASIME4IE
2
3
4
5
6
7
8
9
10
11
12
13
14
6 To connect other slave devices to the AS-i V2 bus, repeat the procedure from
step 2.
Confirmation Impossible:
One extended address slave
is already present on /B.
OK
Note: An analog slave must be configured as a standard address slave (in the /A
Slaves column) and prohibits the use of the slot immediately to its right (in the /B
Slaves column).
Introduction From the AS-i V2 module’s configuration screen, PL7 software offers a group of
functions which allow you to easily modify, in local mode, the software configuration
of the AS-i V2 bus.
Note: standard Windows keyboard shortcut keys (Del, Ctrl-X, Ctrl-C, Ctrl-V) are
also available for the following operations:
Procedure for This operation allows the deletion of a slave declared on an AS-i Bus.
deleting a slave
Step Action
1 Select the slave to be deleted.
2 Select the command Edit → Delete an AS-i slave.
Procedure for This operation allows a slave declared on an AS-i V2 Bus to be moved.
moving a slave
Step Action
1 Select the slave to be moved.
2 Select the command Edit → Cut an AS-i slave.
3 Select the new required slot.
4 Select the command Edit → Paste an AS-i slave.
Procedure for This operation allows the copying of a slave declared on an AS-i V2 Bus.
copying a slave
Step Action
1 Select the slave to be copied.
2 Select the command Edit → Copy an AS-i slave.
3 Select the slot of the new slave.
4 Select the command Edit → Paste an AS-i slave.
At a Glance The PL7 software allows access to all the information relating to an AS-i V2 device
such as:
l the definition of a profile,
l the details of a profile.
Details of a The Detail function allows access, for a given slave, to all the information presented
profile in the catalog file.
Details of a profile
r4e_01
Reference: XZ-SDA10D2
User module active
Allows the linking of 4 sensors.
PNP type input.
Maximum current used by the 4 sensors = 100mA
Version:
Supplier: Telemechanics
AS-i profile: 0.0
I/O Configuration:
Inputs:
PNP type
D0: I-1 Signal sensor 1 (pins 4-2)
D1: I-2 Signal sensor 2 (pins 4-2)
D2: I-3 Signal sensor 3 (pins 4-2)
D3: I-4 Signal sensor 4 (pins 4-2)
OK
Procedure for The following table shows the procedure for displaying the characteristics of a slave
accessing device.
information on a
Step Action
profile
1 Access the AS-i V2 module’s hardware configuration screen.
2 Double click on the required slave.
Result: The Associate a profile window displays and highlights the device in
question.
3 Select the profile family and the reference for the desired slave.
4 Click on the button:
l View to access definition information,
l Detail to access all the information.
At a Glance PL7 software enables the user to define a non-specified slave profile in the standard
catalog.
Defined in this way, the new profile is added to the catalog in Private family.
This profile can then be used as a standard catalog profile.
Procedure The following table presents the procedure for defining a slave profile, which is not
provided in the standard catalog.
Step Action
1 Access the AS-i module’s hardware configuration screen.
2 Double click in a slave’s host cell (1 to 31 /A or /B).
Result: The Associate a profile screen appears.
3 Select Private family in the Family name field.
Result: The Profile catalog associated with the selected family appears.
Associate a profile
Families of AS-interface profiles
Code ASI Family Name
9 Phototronic sensors
1 Private family
12 Connection interfaces IP20
3 Position switches
15 12345678 Analog Modules
Delete
Detail
Ok Cancel
6 Select:
l the IO code (corresponds to the input/output configuration),
l the ID code (identifier) (plus ID1 and for an extended type),
Step Action
7 For each parameter define:
l the system’s acknowledgement (box checked),
l a label (optional).
At a Glance Each slave on the AS-i bus must be assigned (via configuration) a unique physical
address. This must be the same as the one declared in PL7.
PL7 software offers an automatic slave addressing utility so that an AS-i console
does not have to be used.
The automatic addressing utility, which can be accessed via PL7, is used for:
l replacing a faulty slave (See Automatic replacement of a faulty AS-i V2 slave,
p. 300),
l inserting a new slave (See How to insert a slave device into an existing AS-i V2
configuration., p. 301).
Note: A new configuration with automatic addressing will not be accepted if one or
more slaves with a 0 address are on the bus. In this case, the Configuration
refused by module message appears.
Procedure The table below shows the procedure for setting the Automatic addressing
parameter.
Step Action
1 Access the AS-i V2 communication module’s configuration screen.
2 Click on the Automatic addressing check box found in the AS-interface V2
configuration zone.
Result: The Automatic addressing utility will be activated (box checked) or
disabled (box not checked.
AS-interface V2 configuration
Automatic addressing
Std/A Slaves /B Slaves
0
1 P ASIME4IE
At a Glance The Parameters zone of the configuration screen enables the user to choose
whether or not to activate the parameters of certain slaves.
The parameters displayed differ according to the slave in use, please refer to slave
documentation for further details.
Procedure The table below shows the procedure for selecting the Watchdog and the Fallback
Position assigned to the output of a slave supporting these parameters.
Step Action
1 Access the AS-i V2 communication module’s configuration screen.
2 Select the slave whose parameters are to be modified.
3 Click on the Watchdog checkbox and/or Fallback Position checkbox located
in the Parameters zone.
Result: The watchdog and/or fallback position will be activated in the slave
device.
Parameters
0 Watchdog 2 Unused
1 Fallback 3 Unused
At a Glance The Parameters zone of the configuration screen enables the user to choose
whether to activate or deactivate pre-defined parameters in an analog slave. For
example:
Note: Module TSX SAY 1000 can only manage 7.3 type analog slaves.
Procedure The following table shows the procedure for defining the parameters of an analog
slave device.
Step Action
1 Access the AS-i V2 communication module’s configuration screen.
2 Select the slave whose parameters are to be modified.
3 Click on the Filter Selection and/or Channel 2 Enabling and/or Peri Flt
Enabling checkboxes located in the parameters Parameters zone.
Result: The parameters checked will be activated in the slave device.
Parameters
0 Filter Selection 2 Peri. Flt. Conf
At a Glance Some AS-i V2 slaves have several pre-defined combinations of parameters. The
user can then choose the combination of parameters required from a list.
The Parameters zone of the configuration screen allows the user to choose this
combination of parameters (called Page).
As the parameters differ according to the slave in use, please refer to slave
documentation for further details.
Procedure The table below shows the procedure for selecting the parameters of the slave
devices with combined parameters.
Step Action
1 Access the configuration screen of the AS-i V2 communication module.
2 Select the slave whose parameters are to be modified.
3 Select a combination of parameters (page) in the List of values zone.
Result: The list of parameters selected will be activated in the slave device.
Parameters
At a Glance The TSX SAY 1000 module supports AS-i security devices on its bus. The
addresses of these devices can be configured by PL7 software.
The AS-i security product consists of a Monitor and one or more slaves. The bus
master sees these devices as standard address slaves, but with a special profile.
There is a Security Module family on the Configuration Screen (See How to define
a slave device on the AS-i V2 bus, p. 274).
Precautions of Input/Output objects from these devices should not be used in the application
Use program, as their values are not significant.
The diagnostics information on the Security Monitor may, however, be utilized by the
DFB supplied with this product.
19
At a Glance
Aim of this This Chapter describes the Debug aspect of the AS-i V2 bus.
chapter
Introduction The Debug function allows each AS-i V2 communication module present in the
application:
l to display slave status (connection, parameters etc.),
l to access the adjustment function for the selected channel (channel forcing etc.).
The function also accesses module diagnostics in the event of a fault.
Rack Display It is also possible to access As-i V2 module information from the Rack Display page
of a Web FactoryCast server embedded in a TSX ETY 4102 or TSX ETY 5102
module. These web pages can be accessed via an Internet browser.
Please refer to the TLX DS COM PL7 Manual and the FactoryCast User's Manual
for more information.
At a Glance The debugging screen dynamically displays the status of the AS-i V2 module and
the devices which are connected to the bus.
It also allows access to the adjustment of the slave parameters and to the channel
commands (forcing the input or output value, Set/Reset of an output, etc.).
1
TSX SAY 1000 [RACK 0 POSITION 5]
Debugging
Designation: AS-Interface V2 MODULE Version: 0.1
2
RUN ERR IO DIAG...
Channel 0: Maestro
3 Channel
AS-interface V2 BUS MAST DIAG...
AS-interface V2 configuration Slave 21A
Automatic addressing Profile
Std/A Slaves /B Slaves Projected: IO 7 ID 3 ID2 d ID1 f
14 Ext I/O Module Detected: IO 7 ID 3 ID2 d ID1 f
XZ-SDA22D12 15 Parameters (3-0)
Ext I/O Module 16 Ext I/O Module
XZ-SDA22D12 17 Value: 0111 Modif PARAM
XZ-SDA22D12 18
4 XZ-SDA22D12 19 %I Ch. Asi Symbol Status Action channel 0 5
XZ-SDA22D12 20 0 0
Analog B&W 2IN 21 Change value
1 0
Analog B&W 2IN 22 2 0
Ext I/O Module 23 Ext I/O Module
3 0
XZ-SDA22D12 24
0 10000
Ext I/O Module 25 Ext I/O Module
1 0
XZ-SDA22D12 26 %Q
2 0
XZ-SDA22D12 27
3 0
Format: Decimal Global unforcing
Description The following table shows the different elements of the debugging screen and their
functions.
Number Element Function
1 Title bar Indicates the reference of the selected module and its physical position in the
PLC.
2 Module zone Allows parameter type to be selected:
l Configuration,
l Debugging (diagnostics), only accessible in connected mode.
Displays the status of the module’s RUN, ERR, I/O LEDs.
Provides direct access to the diagnostics of the module when it is faulty
(signaled by the DIAG LED on the diagnostics access button , which turns red).
3 Channel zone Provides direct access to the diagnostics of one of the module’s channels when
it is faulty (signaled by the DIAG LED on the diagnostics access button , which
turns red).
4 Configuration Zone Displays the slave devices connected to the bus.
AS-interface V2
5 Slave zone Displays the status of the slave’s channels and gives access to the debugging
functions.
At a Glance The functions of the module or channel diagnostics display the current errors in
which are classed according to category:
l internal errors (internal software errors, communication error with the processor,
configuration, parameter or command error),
l external errors(slave device failed, AS-i power supply switched off, terminal error,
difference between physical configuration and PL7 configuration),
l other errors (module absent or switched off).
A faulty module becomes apparent when certain LEDs change to red, e.g.:
l in the configuration editor at rack level:
l the module position LED,
l in the configuration editor at module level:
l the RUN, ERR and I/OLEDs,
l the DIAG LED.
A faulty channel becomes apparent when certain lights change to red, such as:
l in the configuration editor at rack level:
l the module position LED,
l in the configuration editor at channel level:
l the DIAGLED.
Procedure for The following table shows the procedure to access the Module diagnostics screen.
accessing the
Step Action
module
diagnostics 1 Access the AS-i module’s hardware configuration screen.
2 Click on the DIAG button located in the module zone.
Result: The list of module errors appears.
Diagnostics Module
Internal faults External faults Other faults
Faulty Channel(s).
OK
Procedure for The following table shows the procedure for accessing the Channel
accessing diagnosticsscreen.
channel
Step Action
diagnostics
1 Access the AS-i module’s hardware configuration screen.
2 Click on the DIAG button located in the channel zone.
Result: The list of channel errors appears.
Diagnostics Channel
Internal faults External faults Other faults
OK
At a Glance The lower part of the communication module’s debugging screen is reserved for AS-
i V2 bus diagnostics.
The slave devices connected to the bus are displayed in the two columns of the AS-
interface V2 Configuration zone. The left hand column lists standard (A) or
extended (B) address slaves, and the right hand column lists only extended address
(B) slaves only. An icon shows the status of the slave number.
When you click on the slave button, a window shows the status of the slave, as
shown in the diagram below:
Slave Diagnostics
Slave 5A
Configured Profile
IO 7 ID 0 ID2 f ID1 f
Detected Profile
IO 3 ID f ID2 f ID1 f
Diagnostics
Detected profile differs from configured profile
Close
The Slave Diagnostics window displays the following faults for each slave device:
l A configured profile is specified but no slave is detected.
l A profile is detected but there is no configured slave profile.
l A profile is detected but a different profile is specified in configuration (I/O, ID, ID1
or ID2).
l The peripheral fault, if the slave supports it.
Note: The Profile field in the Slave Zone of the debugging screen allows you to
check if the profiles of the specified (Projected) slave and the Detected slave are
identical.
At a Glance The debugging screen of an AS-i V2 module allows the user, amongst other things,
to modify a slave’s parameters.
Procedure The table below shows the procedure for modifying the parameters of a slave.
Step Action
1 Access the AS-i module’s debugging screen.
2 Select a slave.
Result: All information relating to the selected slave can be read in the slave zone
of the debugging screen.
Slave 5A
Profile
Projected: IO 3 ID f ID2 f ID1 f
Detected: IO 3 ID f ID2 f ID1 f
Parameters (3-0)
Value: 1111 Modif PARAM
3 Click on the Modif PARAM button located in the slave zone’s Parameters field.
Result: The Parameter modification window appears.
Parameters
0 Unused 2 Unused
1 Unused 3 Unused
Parameter Lists Where a slave can support parameter lists, the procedure to follow is the same as
above, but the window looks like this:
Parameter Modification
Parameters of slave 15
combination: combination 5
Send Cancel
At a Glance This function allows the status of channels linked to an AS-i V2 digital slave to be
modified.
The different commands available are:
l for a channel:
l forcing to 0
l forcing to 1
l unforcing.
l for all channels (when at least one channel is forced):
l global unforcing.
Procedure The table below shows the procedure to follow to force or unforce the channels
linked to an AS-i V2 slave.
Step Action for a channel Action for all channels
1 Access the AS-i V2 module’s debugging screen.
2 Select a slave in the AS-interface V2 Configuration zone.
3 Select the channel which is to be modified from the slave zone Click on the Global unforcing button
table. located in the slave zone.
Result: The channel can be modified using the buttons
situated in the Action channel field.
How to access the SET and RESET commands on AS-i V2 digital channels
At a Glance These commands allow values 0 (RESET) or 1 (SET) to be assigned to the channels
of an AS-i V2 digital slave.
The status of the output affected by one of these commands is temporary and can
be modified by the application at any time.
Procedure The table below shows the procedure for assigning a value of 0 or 1 to the selected
AS-i V2 slave’s channels.
Step Action
1 Access the AS-i V2 module’s debugging screen.
2 Select a slave in the AS-interface V2 Configuration zone.
3 Select the channel to be modified in the Slave zone table.
Result: The channel can be modified using the buttons situated in the Action
channelfield.
4 Select the required function (buttons Set or Reset) in the Channel action field.
At a Glance This function allows the values of channels linked to an AS-i V2 analog slave to be
modified.
Procedure The following table shows the procedure for modifying the value of an AS-i V2
slave's analog channel.
Step Action
1 Access the AS-i V2 module’s debugging screen.
2 Select an analog slave in the AS-interface V2 Configuration zone.
3 Select the channel whose value you wish to modify from the Slave zone.
Analog I/O
Value
10000
decimal:
OK
Principle When a slave has been declared faulty, it can be automatically replaced with a slave
of the same type.
This happens without the AS-i V2 bus having to stop, and without requiring any
manipulation since the configuration mode's Automatic addressing utility is active
(see How to modify the general parameters of an AS-i V2 slave: Automatic
addressing, p. 282).
At a Glance It is possible to insert a device into an existing AS-i V2 configuration without having
to use the pocket programmer.
This operation is possible once:
l the configuration mode's Automatic addressing utility is active (See How to
modify the general parameters of an AS-i V2 slave: Automatic addressing,
p. 282),
l a single slave is absent in the physical configuration,
l the slave which is to be inserted is specified in the PL7 configuration,
l the slave has the profile and sub-profile expected by the configuration,
l the slave has the address 0 (A).
The AS-i V2 module will therefore automatically assign to the slave the value
predefined in the configuration.
Procedure The following table shows the procedure for making the automatic insertion of a new
slave effective.
Step Action
1 Add the new slave in the configuration screen in local mode.
2 Carry out a configuration transfer to the PLC in connected mode.
3 Physically link the new slave with address 0 (A) to the AS-i V2 bus.
At a Glance This command allows the movement of the selected AS-i V2 device to another
available address. This address modification can only be done on the slave and not
in configuration: thus physical configuration and software configuration are different.
Procedure The following table shows the procedure for modifying the address of an AS-i V2
slave device.
Step Action
1 Access the TSX SAY 1000 module’s debugging screen.
2 Select a slave in the AS-interface V2 configuration zone then execute the
command Edit → Modify the address of an AS-i slave.
Result: The selection screen for a new address is displayed.
Modify address
Current Address: 4B
Bank selection: A
Aim of this This Chapter introduces the different word and bit objects associated with the AS-i
chapter V2 function, as well as how to address them.
At a Glance The addressing of bit and word objects associated with application-specific
functions is defined in the Common Applications part.
This page presents specific details associated with the AS-i V2 function.
Specific Values The table below gives specific values to AS-i V2 slave objects.
Element Values Comment
n (for bank A) 0 to 31 Slot 0 cannot be configured.
n (for bank B) 100 to 131 Slot 0 cannot be configured.
i 0 to 3 -
At a Glance
Aim of this This section introduces the different language objects associated with the AS-i V2
Section function.
At a Glance In each task cycle where the AS-i V2 function has been configured, these objects
are exchanged automatically.
Bit objects The table below shows the different implicit exchange bit objects.
Address Function Meaning when bit is on 1
%Ixy.MOD.ERR Module fault bit Indicates that the AS-i module has a fault.
%Ixy.0.ERR Channel fault bit 0 Indicates a channel 0 fault on the AS-i module
%Ixy.0.0 Validity of input Indicates that all inputs are valid.
Note: When this bit is on 0, it indicates that at least one input is
invalid: offline mode, data exchange off mode, or channel fault.
%I\xy.0\n.i digital input channel bit* Indicates that the input channel i of device n is activated.
%Q\xy.0\.n.i digital output channel bit* Indicates that output channel i of device n is activated.
*For bank A, n = 0 to 31
*For bank B, n = 100 to 131
Word objects The table below shows the different implicit exchange word objects.
Address Function Meaning for Xj = 1 (j = position of bit in the word)
%IWxy.0.0 List of standard (A) inactive j = 0 to 15 -> respectively standard address slave 0 to 15 inactive.
%IWxy.0.1 slaves (/LAS) j = 0 to 15 -> respectively standard address slave 16 to 31 inactive.
%IWxy.0.2 Liste of inactive extended (B) j = 0 to 15 -> respectively extended address slave 0 to 15 inactive.
%IWxy.0.3 slaves (/LAS) j = 0 to 15 -> respectively extended address slave 16 to 31
inactive.
%IWxy.0.4 Peripheral fault (LPF) on j = 0 to 15 -> respectively standard address slave 0 to 15 has
%IWxy.0.5 standard slaves (A) peripheral fault.
j = 0 to 15 -> respectively standard address slave 16 to 31 has
peripheral fault.
%IWxy.0.6 Peripheral fault (LPF) on j = 0 to 15 -> respectively extended address slave 0 to 15 has
%IWxy.0.7 extended slaves (B) peripheral fault.
j = 0 to 15 -> respectively extended address slave 16 to 31 has
peripheral fault.
%IWxy.0.8 Liste of standard (A) active j = 0 to 15 -> respectively standard address slave 0 to 15 active.
%IWxy.0.9 slaves (LAS) j = 0 to 15 -> respectively standard address slave 16 to 31 active.
%IWxy.0.10 List of active extended (B) j = 0 to 15 -> respectively extended address slave 0 to 15 active.
%IWxy.0.11 slaves (LAS) j = 0 to 15 -> respectively extended address slave 16 to 31 active.
*For bank A, n = 0 to 31
*For bank B, n = 100 to 131
At a Glance These word type objects carry information about the module or channel exchanges
in progress.
They are updated automatically by the system.
Description The table below provides the meaning of the word %MWxy.MOD.0.
Address Meaning
%MWxy.MOD.0:X0 Exchange of status words in progress on the module channel.
%MWxy.MOD.0:X1 Exchange of command words in progress on the module
channel.
Description The following table provides the meaning of the different bits of the word
%MWxy.i.0.
Address Meaning
%MWxy.0.0 Byte 0
X0: Periodic status reading in progress
X1: Specific command in progress
X2: Setting in progress
X15: configuration in progress
At a Glance These word type objects carry information about module or channel exchange
reports.
They are updated automatically by the system.
Description The following table provides the meaning of the different bits of the word
%MWxy.MOD.1.
Address Meaning
%MWxy.MOD.1:X0 Status parameter exchange error on channel 0 of the module
%MWxy.MOD.1:X1 Command parameter exchange error on channel 0 of the
module
Description The following table provides the meaning of the different bits of the word
%MWxy.i.1.
Address Meaning
%MWxy.0.1 Byte 0
X0: error in last periodic status reading
X1: error in last command action
X2: error in last setting action
Byte 1
X7: error in last configuration action
Example The following example shows a possible use of this type of word
At a Glance Explicit exchange objects carry information (e.g.: bus operation, status of slaves)
and the additional commands for advanced programming of the AS-i function.
The explicit exchange objects are exchanged at the request of the program user
using instructions:
l READ_STS (reading of status words),
l WRITE_CMD (writing the command words),
l WRITE_PARAM (writing the adjustment words),
l READ_PARAM (reading the adjustment parameters),
l SAVE_PARAM (saving the adjustment parameters),
l RESTORE_PARAM (restoring the adjustment parameters),
At a Glance These word type objects provide information on all the slaves present on the AS-i
V2 bus.
Description of The table below gives the meaning of the different bits of the word %MWxy.0.2.
word %MWxy.0.2
Address Function Meaning for Xj = 1
%MWxy.0.2:X0 Standard status No meaning
%MWxy.0.2:X1 Slave error.
%MWxy.0.2:X2 Line error (APF).
%MWxy.0.2:X3 Physical configuration different from PL7 configuration.
%MWxy.0.2:X4 Internal software fault.
%MWxy.0.2:X5 No meaning
%MWxy.0.2:X6 Fault communicating with processor
%MWxy.0.2:X7 Command or parameter configuration fault.
Description of The table below gives the meaning of the different bits of the word %MWxy.0.3.
word %MWxy.0.3
Address Function Meaning for Xj = 1
AS-i master status
Byte 0
%MWxy.0.3:X0 Correct configuration.
%MWxy.0.3:X1 Slave 0 present on the bus.
%MWxy.0.3:X2 Automatic addressing.
%MWxy.0.3:X3 Automatic addressing authorized.
%MWxy.0.3:X4 Operation in AS-i configuration mode.
%MWxy.0.3:X5 Operation in normal mode.
%MWxy.0.3:X6 Faulty AS-i power supply.
%MWxy.0.3:X7 Offline mode active.
Byte 1
%MWxy.0.3:X0 Data exchange inactive.
%MWxy.0.3:X1 Peripheral fault on a bus device.
Description of The table below gives the meaning of the different bits of words %MWxy.0.4 and
words %MWxy.0.7.
%MWxy.0.4 to
%MWxy.0.7
Address Function Meaning for Xj = 1
%MWxy.0.4:Xj List of detected slaves in j = 0 to 15 -> slaves 0 to 15 respectively have been detected.
%MWxy.0.5:Xj bank A (LDS) j = 0 to 15 -> slaves 16 to 31 respectively have been detected.
%MWxy.0.6:Xj List of detected slaves in j = 0 to 15 -> slaves 0 to 15 respectively have been detected.
%MWxy.0.7:Xj bank B (LDS) j = 0 to 15 -> slaves 16 to 31 respectively have been detected.
Description of The table below gives the meaning of the different bits of words %MWxy.0.8 to
words %MWxy.0.71.
%MWxy.0.8 to
%MWxy.0.71
Address Function Meaning
%MWxy.0.8 to I/O configuration and ID of Words 8 to 39 -> devices 0 to 31 respectively.
%MWxy.0.39 all detected slaves in bank A Byte 0
bit 0-3 = configuration code for I/O channels,
bit 4-7 = identification (ID) code.
Byte 1
bit 0-3 = identification code (ID1),
bit 4-7 = identification code (ID2).
%MWxy.0.40 to I/O configuration and ID of Words 40 to 71 -> devices 0 to 31 respectively.
%MWxy.0.71 all detected slaves in bank B Byte 0
bit 0-3 = configuration code for I/O channels,
bit 4-7 = identification code (ID).
Byte 1:
bit 0-3 = identification code (ID1),
bit 4-7 = identification code (ID2).
Description of The table below gives the meaning of the word %MWxy.0.72.
word
%MWxy.0.72
Address Function Meaning
%MWxy.0.72 Parameter data of last Contains the information (value of parameters sent) of the last
parametered slave. parametered slave. This is so that the PL7 can check the slave has
correctly received these values.
Description of The table below provides the meaning of the word %MWxy.0.73.
word
%MWxy.0.73
Address Function Meaning
%MWxy.0.73 Address of last parametered Contains the address of last parametered slave.
slave. Byte 0:
Address of the slave (1 to 31).
Byte 1:
Slave bank:
0 = bank A
1 = bank B.
Description The table below shows constant objects on the AS-i exteneded bus.
Address Function Meaning
%KWxy.0.0 AS-i master When byte 0 = 10, this shows that AS-i is master.
%KWxy.0.1:Xj List of expected slaves in j = 0 to 15 -> expected slaves 0 to 15 respectively.
%KWxy.0.2:Xj bank A (LDS) j = 0 to 15 -> expected slaves 16 to 31 respectively.
%KWxy.0.3:Xj List of expected slaves in j = 0 to 15 -> expected slaves 0 to 15 respectively.
%KWxy.0.4:Xj bank B (LPS) j = 0 to 15 -> expected slaves 16 to 31 respectively.
%KWxy.0.5 à I/O configuration and ID of Words 5 to 36 -> devices 0 to 31 respectively.
%KWxy.0.36 all expected slaves in Byte 0:
bank A bits 0-3 = configuration code for I/O channels,
bits 4-7 = identification code (ID).
Byte 1:
bits 0-3 = identification code (ID1),
bits 4-7 = identification code (ID2).
%KWxy.0.37 à I/O configuration and ID of Words 37 to 68 -> devices 0 to 31 respectively.
%KWxy.0.68 all expected slaves in Byte 0:
bank B bits 0-3 = configuration code for I/O channels,
bits 4-7 = identification code (ID).
Byte 1:
bits 0-3 = identification code (ID1),
bits 4-7 = identification code (ID2).
%KWxy.0.69:X0 Automatic Address If this = 1, automatic addressing is active.
Monitoring If this = 0, automatic addressing is deactivated.
At a Glance This word type object is used to manage the switch to Offline mode (See AS-i V2
Offline Operating Mode, p. 323) or Data Exchange Off mode (See AS-i V2 Data
Exchange Off Operating Mode, p. 324) of the AS-i V2 master.
Description The table below gives the different states of the word %MWxy.0.74, giving access
to the different modes.
Address Meaning for Xj=1
%MWxy.0.74:X0 Switching to Offline mode
%MWxy.0.74:X1 Leaving Offline mode
%MWxy.0.74:X2 Data exchange inactive
%MWxy.0.74:X3 Data exchange active
At a Glance These objects are used to manage the parameters of AS-i V2 slave devices.
They can be modified without stopping the AS-i V2 function.
At a Glance This word type object provides information on the state of the module TSX SAY
1000.
Description The table below gives the meaning of the different bits of the word
%MWxy.MOD.2:Xj.
Address Function Meaning for Xj = 1
%MWxy.MOD.2:X0 Standard module status Internal error.
%MWxy.MOD.2:X1 Configuration fault.
%MWxy.MOD.2:X2 Line fault.
21
At a Glance
Aim of this This chapter introduces the different AS-i V2 function operating modes.
chapter
At a Glance The extended AS-i V2 function allows three operating modes, each one fulfilling
particular needs. These modes are:
l protected mode,
l offline mode,
l data exchange off mode.
Operating mode The figure below shows the general operating diagram of the AS-i V2 bus.
Offline mode
PLC
off
Start
AS-i master module
No
Waiting to receive
configuration Is the master configured?
PLC
on
Yes
Protected mode
(1)
Standard management of
AS-i V2 slaves
(1) : It is possible to switch from protected mode to offline or data exchange off
modes (see AS-i V2 Offline Operating Mode, p. 323 or AS-i V2 Data Exchange Off
Operating Mode, p. 324).
Correspondence The table below shows the correspondence between Premium PLC operating
between PLC modes and those of the AS-i V2 bus.
operating modes
PLC AS-i bus
and the AS-i bus
Configured mode (1) Protected mode
Non-configured mode (1) Configuration mode
Legend:
(1) These PLC notions (configured, non-configured) concern the
declaration of the module and slave devices in the PL7
application hardware configuration screen.
At a Glance The AS-i V2 protected operating mode is the mode generally used for an application
which is running.
It assumes that the AS-i V2 module is configured in PL7.
This:
l continually checks that the list of detected slaves is the same as the list of
expected slaves,
l monitors the power supply.
In this mode, a slave will only be activated if it has been declared in the configuration
and been detected.
Principle of The diagram below shows the principle of activating AS-i V2 slaves.
activating a slave
PL7 AS-i V2 Bus Module
Comparison
List of activated
slaves LAS
At a Glance The Offline AS-i V2 mode is an advanced operating mode which can be used in
debugging or maintenance.
Principle When Offline mode is engaged, the module first resets all the present slaves to zero
and stops exchanges on the bus.
During Offline mode, the outputs are forced to zero.
Note: The Offline mode is also used to exploit the infrared addressing function on
the slaves which support this function.
Procedure The Offline operating mode is accessible from the PL7 application software by
acting on bits 0 and 1 of the word %MWxy.0.74.
Reminder: Bit 7 of word %MWxy.0.3 set on 1 indicates that the AS-i bus is in Offline
mode.
At a Glance The Data Exchange Off AS-i V2 mode is an advanced operating mode which can
be used in debugging or maintenance.
Principle When the Data Exchange Off mode is engaged, exchanges on the bus continue to
function, but data is no longer refreshed.
Procedure The Data Exchange Off operating mode can be accessed from PL7 application
software by acting on bits 2 and 3 of the word %MWxy.0.74.
22
AS-i V2 Bus Performance
Introduction The AS-i V2 bus is independently managed by the master. This exchanges data on
each cycle with each slave device configured on the bus (in ascending order of slave
address number).
AS-i V2 Scanning Scanning time t represents the exchange time between the master and n slaves (31
Time maximum on /A and/or /B).
Either:
l up to 19 active slaves, t = 3ms
l from 20 to 31 active slaves t = (1 + number of active slaves) * 0.156 ms
When two slaves A and B are at the same address, each slave of this pair is scanned
on every second cycle.
Thus, for 31 extended address slaves in /A + 31 extended address slaves in /B, the
scanning time will be 10ms.
Example The table below shows three examples of T response time for a PLC task lasting 10
ms, 30 ms, and 60 ms.
This T time is for a bus loaded with 31 slaves operating normally with no link faults.
PLC task Typical response time Maximum response time
10 ms 35 ms 56 ms
30 ms 65 ms 96 ms
60 ms 110 ms 156 ms
23
At a Glance
Aim of this This DFB describes the DFB for the AS-i Security Monitor.
Section
General This DFB is used to obtain data processed by the safety monitor.
Graphic This drawing provides a graphic representation of the AS-i security function block:
representation SAFETY_MONITOR
I0:Bit Enable
Q0 Error:Bit
I1:Bit
Inputs Q1 Outputs
I2:Bit Q2 Running:Bit
I3:Bit Q3
Internal public
data
Abort Bit
Timeout Word
Dfb_stat Word
Dfb_err Word
Moni_err Bit
Out_1 Bit
Out_2 Bit
SI_Ready Dword
SI_off Dword
SI_error Dword
Input parameters The table below describes the input parameters of the security DFB:
Name Type Description of monitor data
I0 Bit Input variable 0: %I\x.y.0\i.0 (x=rack, y=module, i=AS-i monitor address)
I1 Bit Input variable 1: %I\x.y.0\i.1 (x=rack, y=module, i=AS-i monitor address)
I2 Bit Input variable 2: %I\x.y.0\i.2 (x=rack, y=module, i=AS-i monitor address)
I3 Bit Input variable 3: %I\x.y.0\i.3 (x=rack, y=module, i=AS-i monitor address)
Output The table below describes the output parameters of the security DFB:
parameters
Name Type Description
Error Bit This bit is set to "1" if an error occurs: DFB error or security bus error (error on at
least one slave):
l if it is a DFB error (enable = 0): consult dfb_error ( ≠ 0) for further information. In
the event of a DFB error, the information from the security application is no
longer valid.
l if it is a security application error (dfb_error = 0 and enable = 1): consult sl_error
to obtain the list of slaves on which an error has occurred.
Running Bit This Bit is set to "1" during DFB execution.
Input/output The table below describes the input/output parameters of the security DFB:
parameters
Name Type Description
Enable Bit DFB activation (Cold Start): if this Bit is set to "1", the DFB is executed; otherwise it
is deactivated. The information can only be used if Enable = 0.
Q0 Bit Output variable 0: %Q\x.y.0\i.0 (x=rack, y=module, i=AS-i monitor address)
Q1 Bit Output variable 1: %Q\x.y.0\i.1 (x=rack, y=module, i=AS-i monitor address)
Q2 Bit Output variable 2: %Q\x.y.0\i.2 (x=rack, y=module, i=AS-i monitor address)
Q3 Bit Output variable 3: %Q\x.y.0\i.3 (x=rack, y=module, i=AS-i monitor address)
Public data The table below describes the public data parameters of the security DFB:
parameters
Name Type Description
Abort Bit If this bit is set to "0" in one cycle then set to "1" in the next cycle, all
exchanges between the CPU and Safety monitor are stopped and the
DFB is reinitialized.
All the internal data of the DFB is set to 0.
Timeout Word Data exchange timeout (time base of 100ms).
If the DFB does not receive a correct response before this period has
elapsed, the transaction is cancelled, the DFB is deactivated and the
error bit is set to "1" (Dfb_stat and Dfb_err are updated).
Moni_err Bit this bit is set to "1" if an error has occurred on the monitor.
Out_1 Bit this bit is set to "1" if the contact on OUT1 is closed.
Out_2 Bit this bit is set to "1" if the contact on OUT2 is closed.
SI_ready Dword each bit corresponds to the index of the security device which is in test
or read status.
SI_off Dword each bit corresponds to the index of the security device which is
deactivated.
SI_error Dword each bit corresponds to the index of the security device on which an
error has occurred.
Dfb_stat Word this is the DFB status; this variable enables the user to check on DFB
(See Operation of the AS-i security function block, p. 331) progress.
Dfb_err Word This word specifies the error type:
l 16#90; the response sent by the monitor is not valid,
l 16#91: the DFB has been deleted by the user,
l 16#92: the exchange has stopped as a result of a TimeOut. The
DFB cannot receive data.
To search for a The search for the address of a safety slave which has been activated can be
safety slave facilitated by acknowledgment of the slave's inputs I3/I2/I1/I0. These inputs are
which has been equal to 0/0/0/0 if the slave has been activated, and not equal to 0/0/0/0 if the slave
activated has not been activated. This information shall not be taken into account for safety
purposes: only the safety monitor supplies the safety outputs.
General All the information used in the AS-i security DFB is obtained from the language
operation objects associated with the TSX SAY 100 AS-i module and the TSX SAY 1000 AS-
i V2 module.
Step-by-step The table below provides a step-by-step description of how the security DFB
description of operates:
operation
Step Action
1 The bus master sends the request to test the monitor.
2 The bus master sends the request for the monitor to copy its status to static
memory.
3 The bus master analyses the data from the monitor.
4 Retrieval of data from all security devices.
5
General The security DFB, which is implemented in exactly the same way as the AS-i DIAG
DFB, can be programmed in any type of program (Main, SR or section) in Ladder
(LD), Structured Text (ST) or Instruction List (IL) language.
It is:
l systematically available in PL7 (See How to insert a security DFB, p. 334),
l read and write protected,
l dedicated to a single security monitor.
Rules l Preferably, the security DFB should be executed in the MAST task (for
performance reasons).
l You are strongly advised to only program a single instance of the security DFB in
the application.
l For a security DFB to be executed, the following conditions must be met:
l the DFB must be called (the part of the program to which it has been assigned
must be executed)
l the Enable input must be set to 1
Programming in The security DFB function block is inserted in a ladder network. Programming
Ladder language consists of linking together these inputs/outputs
Sécurité
DFB SAFETY_MONITOR
%I\1.0\31.0 %M102
EBOOL
I0 EBOOL
Error S
%I\1.0\31.1
EBOOL
I1 EBOOL
%I\1.0\31.2 Running
EBOOL
I2
%I\1.0\31.3
EBOOL
I3
EBOOL
%M101 Enable Enable %M101
%Q\1.0\31.0 EBOOL
Q0 Q0 %Q\1.0\31.0
EBOOL
%Q\1.0\31.1
Q1 Q1 %Q\1.0\31.1
EBOOL
%Q\1.0\31.2
Q2 Q2 %Q\1.0\31.2
EBOOL
%Q\1.0\31.3
Q3 Q3 %Q\1.0\31.3
where:
l %Li: label,
l Inst: name of a DFB instance,
l I0,..., I3: DFB inputs,
l %M101: Enable input of DFB,
l Q0,...,Q3: variables linked to the DFB outputs,
l %M102: Error output variable.
Reminder The AS-i security DFB is included in the PL7 base (See How to insert a security
DFB, p. 334).
Using DFBs This block instance can then be used as a standard function block in Ladder
language, or as an elementary function in Structured Text or Instruction List
language.
It can be programmed in all the different tasks (except in event processing tasks)
and sections of the application.
How to insert a The following table describes the procedure used to insert a security DFB:
security DFB
Step Action
1 Declare the security DFBs
1. Import the binary DFB file (SAFETY_MONITOR .UFB) by selecting Import
binary from the context-sensitive menu and importing the file from the
Dfb_asi sub-directory in the PL7 installation directory (e.g.
C:\PL7\PL7PRO43\Dfb_asi),
2. Declare an instance of the DFB in the PL7 variable editor.
2 Program the DFB in the ladder network in LD or in the sequence in ST.
See Programming rules for security DFB, p. 332
V
Introduction
Subject of this This part introduces the specific built-in Operator Dialog functions of PL7 and
part describes the software setup.
Introduction The PL7 software allows the implementation of specific functions, designed to
simplify the use of an operator dialog terminal (version 2.0 and higher) on a TSX
Premium PLC.
They allow the following actions to be carried out without referring to the
communication media between the command console CCX 17 and the PLC:
l displaying messages,
l displaying message and alarm message groups,
l entering values from the PLC program.
Hence the Operator Dialog functions are completely integrated in the PLC
application and support:
l data cohesion,
l unique saving,
l easy maintenance,
l simplified consoles.
l ...
Conditions for The built-in DOP functions require a program space of 1 Kword (4.7 Kwords for
using built-in ADJUST). Variables must be reserved for the data you want to display (use the
DOP functions constants %KWi).
Example of a The illustration below shows an example of a DOP function written in the different
DOP function PL7 languages using the assisted entry of the library functions.
PANEL-CMD
Parameters
Console address: %MW0 6 Report: %MW100 4
Data to Send: %KW40 2
Commands
Clear
Screen Line Line number 1
Entry log
Print Clear
Alarm log
Print Clear
Alarm management
Cancel an Alarm Alarm number 1
OK Cancel
LD Language
IL Language
LDN %100
ANDN %MW100:X0
[PANEL_CMD (ADR#0.0.4, %KW0:2, %MW0: 4 ) ]
ST Language
IF NOT %M100 AND NOT %MW100. X0 THEN PANEL_CND (%MW0 . 6,%KV0 . 2,%MW100 . 4),
END_-F
25
Introduction
Subject of this This chapter describes the different built-in DOP functions and shows how they are
chapter set-up in PL7.
Introduction
Subject of this This section shows the main parameters, divided into zones, of the built-in DOP
section functions.
Note: The parameters specific to a DOP function are shown at the level of the
function concerned.
General
Introduction The Built-in DOP functions are part of the procedure category; they do not return
value, but they do possess several parameters, some of which have to be filled in.
Illustration The illustration below gives an insight into the Library functions screen where the
various parameters of the selected function are displayed.
EF
Function information: Parameters Detail...
Family Lib.V. App.V Name Comment
Dates, Times, and Periods2.10 - ADJUST Read/write memory objects and I/O
Diagnostics 1.01 - ASK_MSG Variable blocking entry on CCX
Integrated DOP 3.03 3.03 ASK_VALUEVariable blocking entry on >>
Explicit exchanges 1.00 ASSIGN_K Dynamic key assignment >>
Call format
PROCEDURE parameter:
Name Type Kind Comment Entry field
ADR AR_W IN CCX17 address table
DATA AR_W IN Table for data to be sent
VAL AR_W OUT Table for data to be received
Call display
ASK_MSG( )
OK Cancel
Introduction This parameter contains the access path (address) for the CCX 17 dialog console.
This path can be either:
l located in a table of six internal words (%MW),
l located in a table of six internal constants (%KW),
l or passed directly to an immediate value in the form of an ADR# operator.
ADR# is then assimilated into a table of six consecutive internal words.
Addressing via The table below shows the signification of different words which make up the
words or console address.
constants
Word number Description
Most significant Least significant
%MWi / %KWi 6 (Uni-telway) 0
7 (FIPIO
%MWi +1 / %KWi+1 254 (1) 0 (1)
%MWi +2 / %KWi+2 Rack number Module number
%MWi +3 / %KWi+3 CCX 17 address channel
SYS
FIPIO connection point
%MWi +4 / %KWi+4 0 SYS (FIPIO)
%MWi +5 / %KWi+5 0 0
Key
(1) Operating a CCX 17 console means that only one intra-station
address is authorized. As a result, the {Station.Network} pair
systematically takes on the value {0.254}.
Writing this field is optional.
Note: The key word SYS (value 254) corresponds to attributing an address to the
system channel (UNI-TE server) for a communication channel.
Uni-telway The format of a CCX 17 address connected to the Uni-telway bus is:
addressing ADR#{<Network>.<Station>}<rack.module>.<channel>.<CCX 17
address>,
ADR#{<Network>.<Station>}< rack.module>.<channel>.SYS,
ADR#< rack.module>.<channel>.<CCX 17 address>,
ADR#< rack.module>.<channel>. SYS.
FIPIO addressing The format of a CCX 17 address connected to the FIPIO bus is:
ADR#{<Network>.<Station>}<rack.module>.<channel>.<connection
point>\SYS,
ADR#< rack.module>.<channel>.<connection point>\SYS.
Examples of For a CCX 17 slave on a UTW 4-5 address, connected to a TSX Premium PLC
addressing via the built-in Uni-telway link (channel 0) positioned in rack 0.
Addresses can be entered in many ways (example here using internal words %MW0
to %MW5):
If you use: in the function entry Help screen, … you must enter the program…
internal (or Example: %MW0:=16#0600;
constant) words %MW1:=16#FE00;
Parameters
Console address: %MW0 6 %MW2:=16#0000;
%MW3:=16#0400;
%MW4:=16#0000;
%MW5:=16#0000;
or
%MW0:6:=ADR#0.0.4;
ADR syntax Example: -
Parameters
Console address: ADR#0.0.4
- DOP_Function(ADR#0.0.4,...
For a slave CCX 17 connected to a TSX Premium master PLC via the built-in
FIPIO link (channel 1) positioned in rack 0 (connection point no. 7).
Addresses can be entered in many ways (example here using constant words
%KW0 to %KW5):
If you use: in the function entry Help screen… you must enter the program…
internal (or Example: %KW0:=16#0700;
constant) words %KW1:=16#FE00;
Parameters
Console address: %KW0 6 %KW2:=16#0000;
%KW3:=16#0701;
%KW4:=16#00FE;
%KW5:=16#0000;
or
%KW0:6:=ADR#\0.1.7\SYS,...;
ADR syntax Example: -
Parameters
Console address: ADR#\0.1.7\SYS
- DOP_Function(ADR#\0.1.7\SYS,
...
Note: If using constants, the %KW0:6 table must be initialized beforehand using
the Data editor by successively assigning the %KWi which make up the table.
Locating items In the case where data is to be found in the PLC application, it can be sent from:
within the PLC l a table of internal words (%MW),
application l a table of internal constants (%KW).
The table below shows the structure of data sent in this way.
Word Role
number
1 Contains a contains a marker for value 16#CC17, and has a double role:
l it allows the Help screen to identify a correct message and to redisplay the
values on the entry screen in order to help modify or display default values.
l it allows the function being carried out to check that the table received does
actually contain a message for a CCX 17. In fact, it is possible to call an
Integrated DOP function in a program without going via the Help/Control
screens.
In the case of an unmarked message, the function can immediately return an
error back to the application without sending unreliable data to the console.
2 Contains the command number.
3 Contains the length of data to be sent.
4, 5, ... Contains the data to be sent.
Location in a When data is in a CCX 17, the data to be sent is limited to DOP function execution
CCX 17 with commands.
application This data can be sent from the PLC application:
l from a table of internal words (%MW),
l from a table of internal constants (%KW),
l directly using an immediate integer value.
The table above shows data structure when using a table.
Word Role
number
1 Contains a command number
2 Contains the data to be sent to the console.
Note: By operating the MMI console, the Data to be received parameter contains
the value entered. If the status message variable is different from the data to be
received, it is not changed by the entry. It only affects the display on the CCX 17.
Introduction The report contains the parameters for managing asynchronous communication
functions.
It is common to all integrated DOP functions.
Report structure The report uses a table of four internal words (%MW) containing different
parameters such as:
l information on function activity,
l the exchange number which identifies the transaction in progress (useful when
using the CANCEL communication function),
l the exchange report split into two feedback codes:
l the communication level,
l the operation level,
l the value of the timeout which is used to monitor absent responses,
l the number of bytes to be sent and/or the number of bytes received.
%MWi:X0 activity This bit indicates the state of the application of the communication function.
bit It is set on 1 when the function starts and falls back to 0 when a response is received,
at the end of a timeout, or if the operation is cancelled (CANCEL function).
Exchange While a function is being sent, the system automatically assigns it a number which
number is used to identify the exchange.
This number serves as a reference to stop the exchange in progress, if necessary
(on using CANCEL).
Communication The communication report provides information on the communication aspect of the
report transaction.
This report is significant when the value of the activity bit changes from 1 to 0.
Note: The communication report does not affect the ADJUST function.
The different values of this report are indicated in the following table:
Value Significance of the communication report (least significant byte)
16#xx00 Successful exchange
16#0001 Stopping the exchange via a timeout
16#0002 Stopping the exchange on user request (CANCEL function)
16#0003 Incorrect address format (length is other than 6)
16#0004 Incorrect destination address (addresses unauthorized for the CCX 17, e.g.:
addresses being broadcast)
16#0005 Invalid report
16#xx06 Specific parameters are invalid (particularly those concerning data to be sent)
16#0007 Destination missing
16#0008 Reserved
16#0009 Size of reception buffer is insufficient
16#000A Size of transmission buffer is insufficient
16#000B System resources missing (communication saturation)
16#xx14 Negative response from the CCX 17 or from the PLC (ADJUST function)
16#00FF Message refused (the CCX 17 is not in a state where it can process it)
Note: The function can detect an error in the parameters before activating the
exchange. In this case the activity bit remains 0, the report is initialized with the
values corresponding to the fault.
Operation report The operation report details the result of the operation on the remote application.
It is significant if the communication report has the following values:
l 16#00,
l 16#06,
l 16#14 (except for the ADJUST function).
In other cases, the operation report is worth 0.
The different values of this report are indicated in the following table:
Communication report Significance of the operation report Integrated DOP
(least significant byte) functions
16#0000 Generic positive result All
16#1006 Number of management words below 24 ADJUST only
16#1106 Non-existent type object to be read (greater than 8)
16#1206 Inconsistency between bits RDEC and SINC
16#1306 Invalid value to be written
16#1406 Broadcast address (ALL) prohibited All except ADJUST
16#6506 {network.station} pair different from {0.254}
16#6606 Data to be sent does not have a 16#CC17 marker
16#6706 Invalid size of data to be sent
16#6806 Invalid CCX 17 response
16#6906 Length of "Data to be received" is insufficient
16#FF06 CCX 17 link inoperational
16#0114 Command not recognized
16#0214 Command queue capacity has been exceeded
16#0414 Size of command is less that the minimum required size
16#0814 Command refused because application transfer in progress
16#1414 Inaccessible object ADJUST only
16#1514 System error
16#2014 Incorrect data All except ADJUST
Timeout Timeout determines the maximum waiting time for a response. The time base for
this parameter is 100 ms.
value 0 corresponds to an infinite wait value. In this case, the CANCEL function
should be used.
If the timeout period has elapsed, the exchange terminates with an error report
(value 1). Similarly, the system refuses any response received at the end of the
timeout.
Example
Activity bit = 1
Start function
Timeout activation
Report set to zero
Allocation of exchange number
End of timeout
Receive response
Activity bit = 0
Stop timeout
Activity bit = 0
Report update
Report = 1
Length The length parameter is used to store the number of bytes received after receiving
a message for functions ASK_MSG and ASK_VALUE.
For the other functions, this parameter is worth 0.
Message field
Introduction The message field groups together the different elements that make up the data to
be displayed on the CCX 17 screen.
These elements are:
l the message text,
l the different display attributes (position, size, etc.).
l the message print command via the CCX 17.
Message text This field is used to enter the message text that is to be displayed on the CCX 17
console.
The length of the message is 40 characters max.
Print This parameter orders the command console to print a message when it appears on
the console screen.
Overprint This parameter refers to alarm messages only. Enabling this parameter overprints
the alarm message as soon as it appears.
Line This parameter specifies the line where the message must be displayed.
Position Value
Minimum 1
Default 1
Maximum 16
Column This parameter specifies the column where the first message character is
positioned.
Position Value(s)
Minimum 1
Default 1
Maximum 40
Automatic (1) Left, Centered, Right
Key
(1) This mode can be accessed by selecting automatic mode. It is local
to the function.
Size This parameter specifies the format of all the text characters or the variable to be
displayed.
Possible options are:
l Standard,
l Double.
Clear This field is used to associate a single command that has been executed with a
message before the message has been displayed.
Options are:
l None (no command is associated with a message),
l Line (clears the line on which the message is to be displayed),
l Screen (completely clears the screen).
Note: If no variable has been associated with a message, this command does not
run (so use the PANEL_CMD function).
Field zone
Introduction The Field zone is used to set the different parameters for the object which is
associated with a message.
These parameters are:
l the type of object,
l the display format,
l ...
Field type This parameter sets the type of object which is associated with a message.
The length of the message is 40 characters max.
Symbol This parameter specifies the symbol of the variable associated with the message. It
must be set in the station database. The address associated with this symbol is
automatically taken into account on confirming the screen.
Note: In the case of a TSX Agent connected to the FIPIO bus, the variable is read
in the bus master PLC, and not in the function sender PLC.
Address This parameter specifies the address of the variable associated with the message.
When a symbol is associated with the variable, it is automatically taken into account.
Authorized objects can be:
l internal bits (%Mi),
l internal words (%MWi),
l double internal words (%MDi).
Comment This field displays the variable comment for viewing. This comment is set in the
application data editor.
Refresh This function specifies whether the variable contained in the message should be
periodically refreshed while being displayed (function is active be default).
Key
(1) these associated parameters can be accessed by clicking on the Modify
button.
Note: From the parameters chosen, the software automatically calculates the
display format.
Introduction
Subject of this This section describes the different built-in DOP functions.
section
SEND_MSG function
Role This function is used to display a message with a dynamic variable (if necessary) on
a CCX 17 console screen.
Application The example given below makes use of the SEND_MSG function to display two
example status messages on the screen of a T CCX 1720 W console without an application.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY
link, addresses 4 - 5).
Note: This same example, using a CCX 17 with application, is shown using the
DISPLAY_GRP function.
OK Cancel Field
Field type
None Address Date Time
OK Cancel
GET_MSG function
Role This function is used to display, on the screen of a CCX 17 console, a message with
a variable which can be modified by the operator.
The entry is made in multiple mode. The operator thus has the possibility of entering
several variables successively, and the PLC program processes the entered value
when the variable appears.
Specific The Value parameter specifies the characteristics of the value which is associated
parameter: Value to the variable.
If the choice is… The value…
Not checked entry on the CCX 17 console keyboard is free (1).
Limited entry on the CCX 17 console keyboard must be within the limits defined
by the Min and Max values in the Entry field in order to be taken into
account by the application (1).
Increment display on the CCX 17 console screen is incremented or decremented
from the value of the increment (1).
Key
(1) The value or the increment entered on the CCX 17 console keyboard
follows the display format (e.g.: 9999.99), this determines the whole
parts and decimal parts authorized by the user entry.
Example of The example given below makes use of the GET_MSG function to display a status
application message containing a variable which can be modified on the screen of a T CCX
1720 W console without application.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY
link, addresses 4 - 5).
Note: This same example, using a CCX 17 with application, is shown using the
GET_VALUE function.
*)
IF %S1.3 THEN
%MW0:6:=ADR#0.0.4;
%MW102:=500;
%M102:=0;
Temperature = xxx °C END_IF;
(* Write message Temp… *)
IF NOT %M102 AND NOT %MW100:X0 THEN
GET_MSG(%MW0:6,%KW100:28,%MW100:4);
SET %M102;
END_IF;
GET_MSG
Parameters
Console address: %MW0 Report: %MW100 4
Data to Send: %KW1000 34
Message
Text: Temperature=____°C Print
Position Attributes Size
Mode Line 6 Column 11
Manual Column alignment Flashing Standard
Auto Left Centered Right Reverse video Double
Field
Symbol: Address: %MV10 Update
Comment:
Display format
999 Modify
Entry
Value
Not Checked Limited Increment
Increment: 50
Ok Cancel
ASK_MSG function
Role This function is used to display, on the screen of a CCX 17 console, a message with
a variable which can be modified by the operator.
The entry is made in synchronized mode. Therefore, it is possible to make one
single operator entry at each message display.
Note: It is strongly advisable to assign parameters for the timeout for an infinite
period (see Parameters field: Report, p. 348 so as not to invalidate the ASK_MSG
function before the operator entry is made.
Specific The Value parameter specifies the characteristics of the value which is associated
parameter: Value to the variable.
If the choice is… The value…
Not checked entry on the CCX 17 console keyboard is free (1).
Limited entry on the CCX 17 console keyboard must be within the limits defined
by the Min and Max values in the Entry field in order to be taken into
account by the application (1).
Increment display on the CCX 17 console screen is incremented or decremented
from the value of the increment (1).
Key
(1) The value or the increment entered on the CCX 17 console keyboard
follows the display format (e.g.: 9999.99), this determines the whole
parts and decimal parts authorized by the user entry.
ASK_MSG
Parameters
Console address: ADR#,LL0.1.7,SYS Data to receive: %KW200 2
Data to Send: %KW20 34 Report: %KW10 4
Message
Text: ASK MSG:_ Print
Position Attributes Size
Mode Line 5 Column 5
Manual Column alignment Flashing Standard
Auto Left Centered Right Reverse video Double
Field
Symbol: Address: %MV100
Comment:
Display format
99 Modify
Entry
Value
Not Checked Limited Increment
Ok Cancel
SEND_ALARM function
Role This function is used to activate, on the screen of a CCX 17 console, an alarm
message present in the PLC.
Note: Alarm messages are always displayed on the second line of the screen
(Superimpose parameter activated). They are dated and timed by the console
which synchronizes them with the PLC clock.
Specific The Alarm number parameter defines the alarm message identifier.
parameter: Its value is between 900 and 999.
Alarm number
Example of The example given below makes use of the SEND_ALARM function to display an
application alarm message on the screen of a T CCX 1720 W console without application.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY
link, addresses 4 - 5).
Note: This same example, using a CCX 17 with application, is shown using the
DISPLAY_ALARM function.
*)
*ALARM* IF %S1.3 THEN
Oven overheating = xxx °C %MW0:6:=ADR#0.0.4;
%MW102:=500;
%M103:=0;
END_IF;
(*Time overrun control*)
IF %MW10>500 THEN
SET %M12;
ELSE RESET %M12;
END_IF;
(* Write Surch alarm message… *)
IF %M12 AND NOT %M103 AND NOT %MW100:X0 THEN
SEND_ALARM(%MW0:6,%KW0:27,%MW100:4);
SET %M103;
END_IF;
SEND_ALARM
Parameters
Console address: %MW0 6 Report: %MW110 4
Data to be sent: %KW120 29
Message
Text: Oven overheating = ____°C Print
Size
Alarm number: 901 Standard Double Overprint
Field
Symbol: Address: %MW10
Comment:
Display format
999 Modify
OK Cancel
DISPLAY_MSG function
Role This function is used to display a message contained in the CCX 17 operator dialog
console memory.
Specific The Message number parameter defines the alarm message identifier contained in
parameter: the CCX 17 memory.
Message number Its value is between 1 and 300.
OK Cancel
DISPLAY_GRP function
Specific The Message group number parameter defines the group message identifier
parameter: contained in the CCX 17 memory.
Message group Its value is between 1 and 100.
number
Example of The example given below makes use of the DISPLAY_GRP function to display a
application group of two status messages on the screen of a T CCX 1720 W console containing
an application.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY
link, addresses 4 - 5).
Note: This same example, using a CCX 17 without application, is shown using the
SEND_MSG function.
OK Cancel
DISPLAY_ALRM function
Role This function is used to display an alarm message contained in the CCX17 operator
dialog console memory.
Specific The Alarm message number parameter defines the alarm message identifier
parameter: contained in the CCX 17 memory.
Alarm message Its value is between 1 and 300.
number
An alarm can be activated exclusively by:
l letter box (requires MMI 17 WIN software),
l built-in DOP functions
Note: Only the alarms with numbers higher than the length of the letterbox can be
accessed by the DISPLAY_ALRM function.
Application The example given below makes use of the DISPLAY_ALRM function to display an
example alarm message on the screen of a T CCX 1720 W console containing an application.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY
link, addresses 4 - 5).
Note: This same example, using a CCX 17 with application, is shown using the
SEND_ALRM function.
*)
*ALARM* IF %S1.3 THEN
Oven overheating = xxx °C %MW0:6:=ADR#0.0.4;
%MW102:=500;
%M103:=0;
END_IF;
(*Time overrun control*)
IF %MW10>500 THEN
SET %M12;
ELSE RESET %M12;
END_IF;
(* Write Surch alarm message… *)
IF %M12 AND NOT %M103 AND NOT %MW100:X0 THEN
DISPLAY_ALRM(%MW0:6,%KW0,%MW100:4);
SET %M103;
END_IF;
OK Cancel
ASK_VALUE function
Role This function is used to display a status message contained in the CCX17 operator
dialog console memory on a CCX 17 console screen.
This message includes a variable, which can be modified by the operator.
The entry is made in synchronized mode. Therefore, it is possible to make one
single operator entry at each message display.
Note: It is strongly advisable to assign parameters for the timeout for an infinite
period (see Parameters field: Report, p. 348 so as not to invalidate the
ASK_VALUE function before the operator entry is made.
Specific This parameter defines the message identifier contained in the CCX 17 memory.
parameter: Its value is between 1 and 300.
Status message
number
OK Cancel
GET_VALUE function
Role This function is used to display a status message contained in the CCX17 operator
dialog console memory on a CCX 17 console screen.
This message includes a variable, which can be modified by the operator.
Entry is made in multiple mode. The operator thus has the possibility of entering
several variables successively, and the PLC program processes the entered value
when the variable appears.
Specific This parameter defines the message identifier contained in the CCX 17 memory.
parameter: Its value is between 1 and 300.
Status message
number
Application The example given below makes use of the GET_VALUE function to display a status
example message containing a variable on the screen of a T CCX 1720 W console containing
an application.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY
link, addresses 4 - 5).
Note: This same example, using a CCX 17 without application, is shown using the
GET_MSG function.
*)
IF %S1.3 THEN
%MW0:6:=ADR#0.0.4;
%MW102:=500;
%M102:=0;
Temperature = xxx °C END_IF;
(* Write message Temp… *)
IF NOT %M102 AND NOT %MW100:X0 THEN
GET_VALUE(%MW0:6,%KW100:28,%MW100:4);
SET %M102;
END_IF;
OK Cancel
CONTROL_LEDS function
Application The example given below makes use of the CONTROL_LEDS function to control the
example T CCX 1720 W console’s green LED status.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY
link, addresses 4 - 5).
Relay status
Unchanged Open Closed
OK Cancel
ASSIGN_KEYS function
Role This function is used to configure all or some of the command keys of a CCX 17
console by linking them to internal bits from the communication master PLC.
Using this function globally modifies the configuration of the affected command
keys.
The maximum number of keys that can be configured is twelve, however, only the
keys present on the console receiving the command are taken into account.
Parameters Zone The principle of implementing the Parameters zone is elaborated in the Description
of parameters (See Description of the parameters common to the different DOP
functions, p. 340 ) section.
Zone: Set by This zone is used to specify which out of the PLC or CCX 17 contains the key
configuration data.
l PLC: the data considered is that entered in the Command key zones,
l CCX 17 the data considered is that from the application contained in the console.
Zone: Command This zone is used to define the characteristics associated with each key.
key x The table below shows the various possible characteristics.
Characteristics Meaning
Inhibit Invalidates the key status. Its confirmation inhibits the action and address
/ symbol fields.
Action Defines the operating mode of the key.
Selecting the mode on edge means that pushing in the key causes the
associated bit to be set to 1, and releasing it causes it to be set to 0.
Choosing counter output mode means that pushing in the key changes
the bit status. The default value is on edge.
Address Specifies the %Mi internal bit address associated with the key. If the
symbol associated with this bit exists in the station database, it is
automatically taken into account during address confirmation.
Symbol Specifies the symbol associated with the bit. The address associated with
this symbol is automatically taken into account.
Application The example given below makes use of the ASSIGN_KEYS function to assign a
example function to the T CCX 1720 W console command keys1 and 2.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY
link, addresses 4 - 5).
Note: For a CCX 17 with application, the assignment of command keys can be
included here, making this PLC application unnecessary.
*)
IF %S1.3 THEN
%MW0:6:=ADR#0.0.4;
%MW102:=500;
%M108:=0;
END_IF;
(* Assign command keys *)
IF %M12 AND NOT %M108 AND NOT %MW100:X0 THEN
ASSIGN_KEYS(%MW0:6,%KW240:16,%MW100:4);
END_IF;
Set by
PLC CCX17
PANEL_CMD function
Role This function is used to send various simple commands of the following type to the
MMI console:
l clearing a line or the screen,
l printing or clearing the operator entry log,
l printing or clearing the alarms log,
l alarm management.
Note: The PANEL_CMD function is available whether or not the CCX 17 has an
application.
Parameters field The principle of implementing the Parameters field is elaborated in the Description
of parameters (See Description of the parameters common to the different DOP
functions, p. 340) section.
Field: Command This field is used to set the command associated with the PANEL_CMD function.
For:
l clearing a line; the line number must be specified,
l canceling an alarm; you must designate the alarm number which corresponds to
identifier given while using SEND_ALRM or DISPLAY_ALRM.
Application The example below shows the implementation of the PANEL_CMD function for the
example purpose of canceling a T CCX 1720 W console alarm.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY
link, addresses 4 - 5).
OK Cancel
ADJUST function
Role This function is used to adjust (read and write) language objects (one object at a
time) from a CCX 17 or a MAGELIS, by controlling internal words in the PLC
memory.
The language objects which can be adjusted are:
l internal bits (%Mi),
l internal words or double words (%MWi, %MDi),
l rack or remote inputs/outputs (%I, %Q, %IW, %QW, %ID, %QD).
Read / Write This parameter defines the type of operation to be carried out:
(R_W) l read: bit = 0,
l write: bit = 1.
The types of objects assigned to this parameter may be:
l an internal bit (%Mi),
l an internal word extract bit (%MWi:Xj).
Type of object This parameter defines the type of object to be read or written.
(TYPE) The types of objects assigned to this parameter may be:
l an internal word (%MWi),
l an immediate value.
The table below shows the different types of objects which can be controlled using
the ADJUST function.
Type of Value of internal word or Type of Value of internal word or
object immediate value object immediate value
%Mi 0 %IW 5
%MWi 1 %QW 6
%MDi 2 %ID 7
%I 3 %QD 8
%Q 4
Object address This parameter contains the address of the object to be read or written.
(ADR) The object type assigned to this parameter is a table of eight internal words (%MWi).
The table below shows the content of the different words in the table.
Word This word contains… Possible values of the word
order
number
Word 0 the rack number where the language 0: bit objects, internal words or double words, I/O objects
object concerned is situated whose operations function is registered in rack 0.
n: other rack I/O objects.
Word 1 the number corresponding to the position 0: bit objects, internal words and double words, I/O objects
in the rack of the I/O module or of the whose operations function is associated to channels 1 and
processor in which the language object 2 of the processor registered at position 0 in the rack.
concerned is situated 1: I/O objects whose operations function is associated to
channels 1 and 2 of the processor registered at position 1
the rack.
n: other rack I/O objects.
Word 2 the channel number in the module where 0: bit objects, internal words and double words.
the language object concerned is situated 1: I/O objects whose operations function is associated to
channel 1 of the processor (communication functions with
PCMCIA).
2: I/O objects whose operations function is associated to
channel 2 of the processor (FIPIO link).
n: other rack I/O objects.
Word 3 the rank of the I/O object or the number of 0 or n: bit objects, internal words or double words, I/O
the internal language object concerned. objects with significant rank.
0: Other I/O objects.
Value to write This parameter contains the value to write in the object.
(VAL) The object type assigned to this parameter is a double word (%MDi).
Value of the This parameter contains the parameter value which has just been read.
object read The object type assigned to this parameter is a double word (%MDi).
(VRET)
Management The object type assigned to this parameter is a table of 24 internal words (%MWi).
parameters
(GEST)
To read the internal double word %MD12, the following values would need to be
entered:
Parameter Language Value Comment
object to be
entered
:
EN %MW20:X0 1 Executing the ADJUST function
R_W %MW20:X1 0 Read operation
TYPE %MW21 2 Type of object: %MD
ADR %MW22 0 Not significant
%MW23 0 Not significant
%MW24 0 Not significant
%MW25 12 Object number (%MD12)
%MW26 0 Not significant
%MW27 0 Not significant
%MW28 0 Not significant
%MW29 0 Not significant
VAL %MD30 0 Not significant
SINC %MW20:X2 0 Not significant
RDEC %MW20:X3 0 Not significant
VRET %MD32 Value of the object read
MAN %MD34:24 Buffer parameter for receiving and sending
requests
To write value 15 in the rack output word %QW3.2, the following values need to be
entered:
Parameter Language Value Comment
object to be
entered
:
EN %MW20:X0 1 Executing the ADJUST function
R_W %MW20:X1 1 Write operation
TYPE %MW21 6 Type of object: %QW
ADR %MW22 0 Rack number
%MW23 3 Module position
%MW24 2 Channel number
%MW25 0 Not significant
%MW26 0 Not significant
%MW27 0 Not significant
%MW28 0 Not significant
%MW29 0 Not significant
VAL %MD30 15 Value to write
SINC %MW20:X2 0 Not significant
RDEC %MW20:X3 0 Not significant
VRET %MD32 Value of the object read
MAN %MD34:24 Buffer parameter for receiving and sending
requests
To increment the output word on FIPIO %QW\1.2.12\0.1, the following values would
need to be entered:
Parameter Language Value Comment
object to be
entered
:
EN %MW20:X0 1 Executing the ADJUST function
R_W %MW20:X1 1 Write operation
TYPE %MW21 6 Type of object: %QW
To set to 0 the output bit on the AS-i %Q\105.0\7.2 bus, the following values need
to be entered:
Parameter Language Value Comment
object to be
entered
:
EN %MW20:X0 1 Executing the ADJUST function
R_W %MW20:X1 1 Write operation
TYPE %MW21 4 Type of object: %Q
ADR %MW22 1 Rack number
%MW23 5 Module position
%MW24 0 Channel number
%MW25 0 Not significant
%MW26 0 Not significant
%MW27 0 Not significant
%MW28 2 Bit rank (slave input/output)
%MW29 7 Slave number
VAL %MD30 0 Not significant
To decrement the output word on NANET %QW\4.0\2.1, the following values would
need to be entered:
Parameter Language Value Comment
object to be
entered
:
EN %MW20:X0 1 Executing the ADJUST function
R_W %MW20:X1 1 Write operation
TYPE %MW21 6 Type of object: %QW
ADR %MW22 0 Rack number
%MW23 4 Module position
%MW24 0 Channel number
%MW25 1 NANET object rank (word number)
%MW26 0 Not significant
%MW27 0 Not significant
%MW28 0 Not significant
%MW29 2 Slave number
VAL %MD30 0 Not significant
SINC %MW20:X2 0 Not significant
RDEC %MW20:X3 1 Decrementing the word value by 1
VRET %MD32 Not significant
MAN %MD34:24 Buffer parameter for receiving and sending
requests
26
Introduction
Subject of this This chapter introduces the supplementary information for installing DOP functions.
chapter
Introduction The list below is not exhaustive, however, it does group together the errors most
frequently encountered whilst installing DOP functions in an application.
List of l Do not forget to initialize the Time-out parameter (%MWi+2) before starting the
precautions Operator Dialogue function. For the ASK_MSG or ASK_VALUE functions, the
value has to be 0.
l If you use the same word to save each function’s report, you must then test the
activity bit (%MWi:X0) at value 0 before starting another function.
l Synchronize the start of the different Built-in DOP functions in order that the CCX
17 console command queue does not become full.
l Remember to correctly calculate the size of the %KWi internal constants for
displaying the data to be sent.
l Do not hesitate to allow a margin for error when allocating the data to be sent
(%KWi:n). In fact, if you need to modify the text name, there will be no overlap
between the different %KWi:n references.
l The maximum size for the Built-in DOP functions is 47 words.
l Warning, it is impossible to create a Built-in DOP function in line modification
mode, if the application located in the PLC does not already contain a copy of this
function.
l During power outage or communication loss, the application has to reset the CCX
17 in a coherent state (assigning buttons and messages to the screen).
l Canceling modifications or deleting a rung or phrase (List or Text) does not
cancel initialization of the %KWi variables.
Introduction
Introduction Status messages can be constructed from the PLC application by creating the send
using internal words (%Mwi) as intermediaries to display them on a CCX17 console
screen. This is the role of the SEND_MSG function.
Data to send The table below shows the significance of the different words which constitute the
parameter following parameter: Data to send (47 words maximum).
coding
Word Meaning
number
1 contains a marker of value 16#CC17,
2 contains value 0
3 contains the length in bytes and the zone of the following words,
4 to P contain the message text to send, this being the characters that are underlined representing the
characters expected during the display of a variable. The maximum length of this text is 40 characters.
If the text is composed of an odd number of characters, the last byte is worth 0, if the text is of even
length and if it is less than 39 characters, the last byte must contain the value 0,
P +1 contains the line number where the message must be displayed,
P +2 contains the column number where the start of the message must be displayed,
P +3 This two word zone (four characters) contains the message characteristics and is structured as follows:
P +4 Character 1 This character (in capitals) corresponds to a video attribute:
l B = blinking,
l R = reverse video,
l A = blinking and reverse video,
l N = no attribute
Character 2 This character (in capitals) corresponds to the character font size:
l S = normal size,
l D = double width or height
P+5 If you do not want to display a variable, the following word must be at 0 (in this instance,
following parameters is ignored), otherwise the following parameters must be added:
P+6 contains the position of the variable to display, counted in number of characters in relation to the start
of the message.
P+7 contains the number of characters to display for the variable.
P Number of words containing the text of the message to send (see line 4 to P).
Word Meaning
number
P+8 contains a supplementary command:
l 0: no command,
l 1: clear screen,
l 2: clear the line before the display.
P+15 and 16 contain the display format for the variable and are structured in the following ways:
Byte 1 specifies if the variable is signed (sign +), or not (space),
Bytes 2 and 3 specifies the display format:
Byte 2 Byte 2
ASCII or DIGITAL without the ASCII code for the space, that being 20
decimal places
DIGITAL with less than the ASCII code for the the ASCII code for the
ten decimal places space, that being 20 number of decimal
places
DIGITAL with at least ten the ASCII code for the the ASCII code for the
decimal places number of tens of decimal number of decimal place
places units
Byte 4 specifies the display type:
l N = no format,
l D = Digital,
l A = ASCII
P Number of words containing the text of the message to send (see line 4 to P).
Word Meaning
number
P+17 define if the variable must be refreshed or not:
l Y + space = yes,
l N + space = no.
Example of use The example below shows the values corresponding to the word table %MW0:12
(data to send) of the SEND_MSG(ADR#0.0.4,%MW0:12,%MW100:4) function;
Word Value Comment
number
%MW0 16#CC17 Marker
%MW1 0 Imposed value
%MW2 18 Byte size of the following zone which includes nine words
%MW3 Fo Message text
%MW4 ur Message text (continued)
%MW5 sp4 Message text (end)
%MW6 0 End of message mark
%MW7 2 Message position (line number)
%MW8 15 Message position (column number)
%MW9 ND Message characteristics (no attribute or double font)
%MW10 Nsp Message characteristic (no printing)
%MW11 0 The message includes no variable
Introduction Checked status messages can be constructed from the PLC application by creating
the send using internal words (%MWi) as intermediaries to display them on a CCX17
console screen. This is the role of the ASK_MSG and GET_MSG functions.
Data to send The table below shows the significance of the different words which constitute the
parameter following parameter: Data to send (47 words maximum).
coding
Word Meaning
number
1 contains a marker of value 16#CC17,
2 contains the command type:
l 33 = command number for ASK_MSG,
l 6 = command number for GET_MSG,
3 contains the length in bytes and the zone of the following words,
4 to P contain the message text to send, this being the characters that are underlined representing the
characters expected during the display of a variable. The maximum length of this text is 40 characters.
If the text is composed of an odd number of characters, the last byte is worth 0, if the text is of even
length and if it is less than 39 characters, the last byte must contain the value 0,
P +1 contains the line number where the message must be displayed,
P +2 contains the column number where the start of the message must be displayed,
P +3 This two word zone (four characters) contains the message characteristics and is structured as follows:
P +4 Character 1 This character (in capitals) corresponds to a video attribute:
l B = blinking,
l R = reverse video,
l A = blinking and reverse video,
l N = no attribute
Character 2 This character (in capitals) corresponds to the character font size:
l S = normal size,
l D = double width or height
P+5 contains the position of the variable to display, counted in number of characters in relation to the start
of the message.
P+6 contains the number of characters to display for the variable.
P Number of words containing the text of the message to send (see line 4 to P).
Word Meaning
number
P+7 contains a supplementary command:
l 0: no command (ASK_MSG synchronized entry),
l 24: free entry authorized after display (GET_MSG multiple entry).
P Number of words containing the text of the message to send (see line 4 to P).
Word Meaning
number
P+18 and 19 define the limit type:
l 0 = unlimited,
l 1 = minimum limit only,
l 2 = maximum limit only,
l 3 = minimum and maximum limit.
Example of use The example below shows the values corresponding to the word table %MW0:38
(data to send) of the GET_MSG(ADR#0.0.4,%MW0:38,%MW100:4) function;
Word Value Comment
number
%MW0 16#CC17 Marker
%MW1 6 Command number for GET_MSG
%MW2 70 Byte size of the following zone which includes 35 word
%MW3 Te Message text
%MW4 mp Message text (continued)
%MW5 er Message text (continued)
%MW6 at Message text (continued)
%MW7 ur Message text (continued)
%MW8 eesp Message text (continued)
%MW9 =sp Message text (continued)
%MW10 __ Message text (continued)
%MW11 _sp Message text (continued)
%MW12 °C Message text (end)
%MW13 0 End of message mark
%MW14 3 Text position (line number)
%MW15 11 Text position (column number)
%MW16 NS Message characteristics (no attribute or double font)
%MW17 Nsp Message characteristic (no printing)
%MW18 15 Position of the variable from the start of the message
%MW19 3 Number of characters to display
Introduction Alarm messages can be constructed from the PLC application by creating the send
using internal words (%MWi) as intermediaries to display them on a CCX17 console
screen. This is the role of the SEND_ALARM function.
Data to send The table below shows the significance of the different words which constitute the
parameter following parameter: Data to send (37 words maximum).
coding
Word Meaning
number
1 contains a marker of value 16#CC17,
2 contains value 0
3 contains the length in bytes and the zone of the following words,
4 contains the imaginary number given to the alarm message (this word is used after deactivating the
alarm if necessary). The value of this word must be between 900 and 999.
5 to P contain the message text to send, this being the characters that are underlined representing the
characters expected during the display of a variable. The maximum length of this text is 40 characters.
If the text is composed of an odd number of characters, the last byte is worth 0, if the text is of even
length and if it is less than 39 characters, the last byte must contain the value 0,
P +1 and 2 This two word zone (four characters) contains the message characteristics and is structured as follows:
Character 1 This character (in capitals) corresponds to the character font size:
l S = normal size,
l D = double width or height.
P+3 If you do not want to display a variable, the following word must be at 0 (in this instance,
following parameters is ignored), otherwise the following parameters must be added:
P+4 contains the position of the variable to display, counted in number of characters in relation to the start
of the message.
P+5 contains the number of characters to display for the variable.
P+6 contains the value 16#0030.
P Number of words containing the text of the message to send (see line 5 to P).
Word Meaning
number
P+7 and 8 contain the type of entry field:
l BIT +space = bit type,
l ANA + space = word type,
l LNG + space = double word type,
P Number of words containing the text of the message to send (see line 5 to P).
Example of use The example below shows the values corresponding to the word table %MW0:29
(data to send) of the SEND_ALARM(ADR#0.0.4,%MW0:29,%MW100:4) function;
Word Value Comment
number
%MW0 16#CC17 Marker
%MW1 0 Imposed value
%MW2 52 Byte size of the following zone which includes 26 word
%MW3 900 Alarm message number
Introduction For these functions it is possible to send them by using internal words (%MWi) as
intermediaries.
The Data to send parameter requires one word which contains accordingly:
l The status message number,
l Alarm message number,
l Message group number
Example of use The example below shows an example of a function using the word %MW0 (data to
send).
Introduction It is possible to set the relay status (version 2.1 and above) and the LEDs on the
luminous screen of a CCX17 console, then to send them using internal words
(%MWi) as intermediaries. This is the role of the CONTROL_LEDS function.
Data to send The table below shows the significance of the different words which constitute the
parameter following parameter: Data to send (2 words).
coding
Word Meaning
number
1 contains a marker of value 16#CC17,
2 indicates the coding of each LED as well as the relay state to send to the terminal.
l bits 0 to 3: green LED status,
l bits 4 to 7: yellow LED status,
l bits 8 to 11: red LED status,
l bits 12 to 15: relay status,
the state of each of the LEDS is coded on four bits as follows:
l 0000: unchanged LED status,
l 0001: LED off,
l 0010: LED on,
l 1111: LED flashing.
the relay status is coded on bits 12 to 15 as follows:
the state of each of the indicators is coded on four bits as follows:
l 0000: unchanged relay status,
l 0001: open relay status,
l 0010: closed relay status.
Example of use The example below shows the values corresponding to the word table %MW0:2
(data to send) of the CONTROL_1EDS(ADR#0.0.4,%MW0:2,%MW100:4) function;
Word Value Comment
number
%MW0 16#CC17 Marker
%MW1 16#1112 Green LEDS on, yellow and red off, open relay status
Introduction It is possible to set the configuration of the command keys (bit associated or not, key
operating mode, assignment by CCX17…) and send it using internal words (%MWi)
as intermediaries to display them on a CCX17 console screen. This is the role of the
ASSIGN_KEYS function.
Data to send The table below shows the significance of the different words which constitute the
parameter following parameter: Data to send (12 words).
coding
Word Meaning
number
1 contains a marker of value 16#CC17,
If a PLC carries out the assignment… If a CCX 17 carries out the assignment…
2 this word contains the list of keys to configure. Each this word contains 16#F000
command key is coded on a bit (0: non configured, 1:
configured):
l bit i (i = 1 to 8) command key no. 1.
the following two words indicate the operating mode of the values of the following ten words are
each of the command keys. Each key is coded by two indifferent and will be ignored by the CCX 17
bits console.
l 00: Reset,
l 01: functioning mode on edge,
l 10: toggle functioning mode,
l 11: no action.
Bits 2j,2j+1 = command key i+1 (i = 0 to 11)
the following eight words contain, accordingly:
l a value –1 when the command keys are not affected,
l the index of the internal bits affected by the command
keys
Word i = command key i (i = 1 to 8)
Example of use The example below shows the values corresponding to the word table %MW0:16
(data to send) of the ASSIGN_KEYS (ADR#0.0.4,%MW0:16,%MW100:4) function;
Word Value Comment
number
%MW0 16#CC17 Marker
%MW1 16#000F Command keys 1 to 4 are configured, the others are not.
%MW2 16#FF09 Key 1 in edge mode (01), key 2 in toggle mode (02), keys 3 and 4
%MW3 16#00FF inhibited (00), the others not programmed (11)
Introduction It is possible to manage different command types (clearing, printing) and to send
them by using internal words (%MWi) as intermediaries. This is the role of the
PANEL_CMD function.
Data to send The table below shows the significance of the different words which constitute the
parameter following parameter: Data to send (3 words maximum).
coding
Word Meaning
number
1 contains a marker of value 16#CC17,
2 contains the command number:
l 1: clear screen,
l 2: clear a line,
l 9: print the alarm message log,
l 10: clear the alarm message log,
l 11: print the alarm log
l 13: clear the alarm log,
l 29: clear the alarm (from 1 to 300) destined for CCX 17,
l 30: clear the alarm (from 900 to 999) destined for the PLC.
Example of use The example below shows the values corresponding to the word table %MW0:2
(data to send) for the PANEL_CMD(ADR#0.0.4,%MW0:2,%MW100:4) function;
Word Value Comment
number
%MW0 16#CC17 Marker
%MW1 1 Clear screen
Channel group Channels of the same type with common parameters. This notion concerns certain
application-specific modules such as discrete modules.
CPU Central Processing Unit: generic name used for Schneider Automation processors
C Debugging Screen
AS-i V2 Bus, 289
Channel diagnostics
Debugging screen
Discrete, 117
AS-i Bus, 223
Channel fault
Declaration of a module on the FIPIO bus, 64
Discrete, 117
Declaration of an I/O module, 63
Combination of parameters
Device Connection
AS-i V2 Bus, 285
AS-i V2 Bus, 274
Command objects
Device connection
AS-i bus, 244
AS-I Bus, 212
AS-i V2 bus, 315
Diagnostics, 25
Communication Interface, 29
AS-i V2 Bus, 291
Configuration, 22
Bus AS-i, 225
Configuration of reflex function blocks, 191
Diagnostics mode
Configuration screen
AS-i Bus, 227
AS-i Bus, 210
AS-i V2 Bus, 291
AS-i V2 Bus, 272
Bus AS-i, 225
Discrete, 79
Discrete, 71
Configuring slaves
Discrete reflex modules, 140
AS-i Bus, 210
DISPLAY_GRP, 370
AS-i V2 Bus, 272
DISPLAY_MSG, 369
Configuring the reflex function blocks, 188
Confirming the configuration, 66, 67
Connect E
AS-i V2 bus, 288
Event
Connecting
Discrete reflex, 193
AS-i bus, 222
Exchange management, 130, 308
Constants
Explicit exchanges, 40
AS-i Bus, 314
AS-i bus, 242
CONTROL_LEDS, 377
AS-i V2 bus, 311
Copy/paste, 83
Explicit objects, 132, 134, 135, 136, 137,
240, 309
D AS-i Bus, 241
AS-i bus, 246, 310
Data exchange off mode
AS-i V2 bus, 317
AS-i bus, 253
Discrete reflex, 197
AS-i V2 bus, 324
External errors
Debug, 25
AS-i Bus, 225, 291
AS-i bus, 222
External supply fault, 102
AS-i V2 bus, 288
Debug mode, 111
Debug screen F
Discrete, 113
Fallback mode, 108
Debugging
Fallback to 0
Discrete, 112, 115
AS-i bus, 220
S
SAVE_PARAM, 47
Saving adjustment parameters, 47
Security Device
AS-i V2 Bus, 286
Selecting the module
AS-i Bus, 207
T
Task
Discrete, 100
TBX, 64, 87, 94, 95, 99
Terminal Port, 29
TSX SAY 100
AS-i bus, 204
TSX SAY 100 module
AS-i bus, 204
TSX SAY 1000
AS-i bus, 264