Bits and words associated with discrete reflex module. Schneider Electric Software PLC Application-Specific Functions, Junior/Pro, 4.5
ಜಾಹಿರಾತು
ಜಾಹಿರಾತು
9.4
Installation of the discrete reflex module
Bits and words associated with discrete reflex module
Presentation
Subject of this section
What's in this
Section?
This section presents the different language objects specific to the discrete reflex module.
This section contains the following topics:
Topic
Implicit exchange language objects associated with module TSX DMY 28 RFK
Explicit exchange language objects associated with module TSX DMY 28 RFK
Page
35012326 00 July 2006
209
Installation of the discrete reflex module
Implicit exchange language objects associated with module TSX DMY 28 RFK
Presentation
Illustration
Implicit exchange language objects associated with the reflex module can be used in: z z the sequential logic of the function block, the PLC processor program, z
The illustration below shows the different exchanges possible: z within a reflex module, between the reflex module and the PLC processor.
PLC processor Reflex module
PLC program
%Ixy.i (i=0 à 15)
%Ixy.i (i=16 à 31)
%Qxy.i (i=16 à 31)
Output x
Sequential Logic
Output x Aux
%Ixy.i.1 (i=16 à 31)
Physical inputs
0 à 15
Physical outputs
16 à 27
Event task
%Ixy.i (i=28 à 31)
210 35012326 00 July 2006
-
Key:
(1)
(2)
Installation of the discrete reflex module
Bit objects The table below shows the different implicit exchange bit objects of module
TSX DMY 28 RFK.
Address Function Use within module
Mode Update
Read Real time %Ixy.i
(i = 0 to 15)
%Ixy.i
(i = 16 to 27)
%Ixy.i
(i = 28 to 31)
%Ixy.i.1
(i = 16 to 31)
%Qxy.i
(i = 16 to 31)
Image bits of the module's physical input status.
Image bits of the module's physical output status.
Image bits of the module's virtual output status.
Image bits of the module's internal auxiliary output status.
Module output command bits
ERRi
(i = 16 to 27)
ERR28
Short circuit error bits for the module's physical outputs
External supply error bits for module inputs
ERR29 External supply error bits for module outputs
%Ixy.i.ERR
Channel error bit
%Ixy.i.MOD.ERR Module error bit
-
-
Read
Read
Read
Read
(2)
Read
Read
Read
Real time
Real time
Real time
(1)
Real time
Real time
Real time -
-
Use in the PLC program
Mode Update
Read (1)
Read
Read
Read
-
Read/
Write
Read
Read
(1)
(1)
(1)
(1)
(1)
(1)
Not used
Update to the rate of the PLC task in which the channels are configured.
These command bits control the corresponding physical outputs when the Direct function is selected.
35012326 00 July 2006
211
Installation of the discrete reflex module
Word objects
Address
%IWxy.i:X0
(i = 28 to 31)
%IWxy.i:X1
(i = 28 to 31)
%IWxy.i:X7
(i = 28 to 31)
%QWxy.i:X0
(i = 28 to 31)
The table below shows the different implicit exchange word objects of module
TSX DMY 28 RFK.
Function
-
Use within module
Mode Update
Use in the PLC program
Mode Update
Read (1) Event status associated with channel i X0 = 1: rising edge
Event status associated with channel i X1 = 1: falling edge
Event status associated with channel i X7 = 1: loss of event
Event masking command bit -
-
Read
Read
Write
(1)
(1)
(1)
-
Key:
(1)
Not used
Update to the rate of the PLC task in which the channels are configured.
212 35012326 00 July 2006
Installation of the discrete reflex module
Explicit exchange language objects associated with module TSX DMY 28 RFK
Presentation
Modification of the internal values by program
The TSX DMY 28 RFK module reuses the language objects of standard discrete modules (see the Language objects associated with the discrete specific
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: z
%MWxy.i.4 which contains the first internal value of the function block, z
%MWxy.i.5 which contains the second internal value of the function block,
Other than the standard instructions (see Explicit exchange language objects
associated with module TSX DMY 28 RFK , p. 213 ), the TSX DMY 28 RFK module
also uses a specific instruction MOD_PARAM (Modify parameters) which enables the parameters associated with a single channel to be modified.
Syntax: MOD_PARAM %CHxy.i (no., value1 , value2 , 0) where: z i = 16 or 24 (index of the first channel of a group of 8 channels), z 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)
35012326 00 July 2006
213
Installation of the discrete reflex module
214 35012326 00 July 2006
AS-i Bus
III
At a Glance
Aim of this part
What's in this
Part?
This part presents the AS-i bus on PLC TSX/PCX 57 and describes its implementation with the software PL7 Junior and Pro.
This part contains the following chapters:
Chapter
10
11
12
13
14
15
16
Chapter Name
General introduction to the AS-i Bus
AS-i bus configuration
Debugging the AS-i bus
Bits and words associated with the AS-i function
AS-i operating mode
AS-i performance
DFB for AS-i Security Monitor
Page
215
35012326 00 July 2006
AS-i Bus
216 35012326 00 July 2006
General introduction to the AS-i Bus
10
At a Glance
Subject of this
Chapter
What's in this
Chapter?
This Chapter introduces the AS-i bus on the TSX/PCX 57 PLC, and describes how to access the different application editors.
This chapter contains the following topics:
Topic
Presentation of the AS-i Bus
Architecture of the TSX SAY 100 module
Structure of an AS-i slave
How to declare an AS-i communication module in the PLC rack
How to access the AS-i Bus configuration
Page
217
35012326 00 July 2006
AS-i Bus
Presentation of the AS-i Bus
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: z either in local mode, z or in connected mode; in this case the modification is limited to certain parameters.
218 35012326 00 July 2006
AS-i Bus
Implementation principles
Mode
Local
Local or connected
Connected
Local or connected
The following table presents the different implementation phases of the AS-i bus.
Phase
Declaration of module
Description
Selection of the TSX SAY 100 module’s slot in the rack.
Declaration of slave devices Selection for each device: z of its slot number on the bus, z of the slave type.
Input of the configuration parameters.
Configuration of the module channel (See AS-i bus
)
Confirmation on the module level.
Confirmation of the configuration parameters.
(See Confirming the configuration of a module.,
)
Global confirmation of the application (See Globally reconfiguring an
Confirmation at application level.
Symbolization
Programming
Transfer
Debugging
Documentation
Symbolization of the variables associated with the slave devices.
Programming the functions that are carried out with the help of the
AS-i bus.
Transfer of the application to the PLC.
Debugging the application with the help of: z the debugging help screens which display the slave z connection, their parameters, … the diagnostic screens which allow identification of errors.
Printing the different information relating to the application.
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).
35012326 00 July 2006
219
AS-i Bus
Architecture of the TSX SAY 100 module
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: z z z
Profile M0 - Minimum Master: the master only puts forward the configuration of slaves connected to the bus on power-up and input/output exchanges.
Profile M1 - Full Master: this profile covers all the operating functions set by the
AS-i standard,
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 architecture
The figure below shows the TSX SAY 100 module architecture.
TSX SAY 100
1 I/O data
2
3
4
5
6
Parameters current
Configuration /
Identification
LDS
LAS
LPS
AS-i bus
220 35012326 00 July 2006
Description of constituent elements
AS-i Bus
The table below shows the different elements that make up the architecture of the
TSX SAY 100 module.
4
5
6
2
3
Number Element
1 I/O data
Current parameters
Configuration/
Identification
Description
Image of 124 inputs and 124 outputs of AS-i bus.
Image of parameters for all slaves.
This field contains all the I/O codes and identification codes for all the detected slaves.
LDS
LAS
LPS
List of all the slaves detected on the bus.
List of active slaves on the bus.
List of slaves expected on the bus and configured by PL7.
35012326 00 July 2006
221
AS-i Bus
Structure of an AS-i slave
At a Glance
Structure illustration
The AS-i bus is used to interconnect 31 slave devices, each one having: z
4 input bits, z z
4 output bits,
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).
The figure below shows the structure of an AS-i slave.
AS-i slave
1 I/O data
D3
D0
2 Parameters
P3
P0
3
Configuration/
Identification
AS-i bus
4 Address
222 35012326 00 July 2006
Description of constituent elements
AS-i Bus
The table below shows the different elements that make up the structure of an
AS-i slave.
Number Element
1 Input/output data
2
3
4
Parameters
Configuration/
Identification
Address
Description
Input data is stored by the slave and made available for the AS-i master.
Output data is updated by the master module.
The parameters are used to control and switch internal operating modes to the sensor or the actuator.
This field contains: z z the code which corresponds to I/O configuration, the slave identification (ID) code.
Physical address of slave.
Note : The operating parameters, address, configuration and identification data are saved in a non-volatile memory.
35012326 00 July 2006
223
AS-i Bus
How to declare an AS-i communication module in the PLC rack
Procedure This operation allows you to declare an AS-i communication module in the rack of the PLC TSX 57 using the software.
Step
1
Action
Double click on the required position in the rack displayed.
Result : The dialog box Add a module appears:
Add a module
Family:
Analog mod.
Communication
Upcounting
Movement
Weighing
Discrete
1.5
1.5
1.5
1.5
1.7
1.5
Module:
TSX SAY100 As-Interface MODULE
TSX SCY 21600 PCMCIA MODULE
TSX SCY 21601 PCMCIA MODULE
OK
Cancel
2
3
4
Select the choice Communication in the Family field.
Select in the field Module the reference of the module.
Confirm the selection with OK .
Result : The module is declared in its slot; this is grayed out and contains the module reference.
Configuration
TSX 57303 V5.0...
XMWI
XTI..
6
A
Y
0
0 1 2 3 4 5
3
Note : The maximum number of TSX SAY 100 modules which can be installed in a configuration is: z z
2 modules, with a TSX/PMX/PCX 57-1• processor,
4 modules, with a TSX/PMX/PCX 57-2• processor, z 8 modules, with a TSX/PMX/PCX 57-3• processor, a TSX/PMX 57-4• processor.
224 35012326 00 July 2006
AS-i Bus
How to access the AS-i Bus configuration
Procedure This operation allows access to the configuration of an AS-i communication module.
Step
1
Action
Access the screen Hardware configuration
Result : The rack’s hardware configuration screen appears.
Configuration
TSX 57303 V5.0...
XMWI
XTI..
0 1 2 3 4 5 6
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 .
Result : The selected module’s hardware configuration screen appears.
TSX SAY 100 [RACK 0 POSITION 6]
Configuration
Designation :AS-Interface module
Chan. 0
AS-interface configuration
1
2
3
4
5
8
9
6
7
10
MAST
General parameters
Automatic addressing
Slave 1 configuration:
Profile
Comment
Asi entry AS-i symbol
1
2
3
4
Asi output
1
2
3
4
AS-i symbol
Fallback mode on failure
Maintien Fallb. to 0
Parameters
0
1
2
3
35012326 00 July 2006
225
AS-i Bus
226 35012326 00 July 2006
AS-i bus configuration
11
At a Glance
Subject of this
Chapter
What's in this
Chapter?
This Chapter describes the Configuration aspect for installing the AS-i bus.
This chapter contains the following topics:
Topic
Description of an AS-i communication module’s configuration screen
How to define a slave device on the AS-i bus
How to modify the AS-i Bus software configuration
How to access the description of an AS-i slave
How to define a new slave profile in the standard AS-I catalogue
How to modify AS-i slave general parameters: Automatic addressing
How to modify AS-i slave general parameters: Fallback mode
Page
35012326 00 July 2006
227
AS-i bus configuration
Description of an AS-i communication module’s configuration screen
At a Glance
Illustration
The configuration screen of the AS-i module gives access to the parameters associated with the module and the slave devices.
This screen allows the display and modification of the parameters in local mode, as well as Debugging in connected mode.
1
TSX SAY 100 [RACK 0 POSITION 6]
Configuration
Designation :AS-Interface module
2
3
4
Chan. 0 MAST
AS-interface configuration
1
2
3
8
9
10
6
7
4
5
General parameters
Automatic addressing
Slave 1 configuration:
Profile
Comment
2
3
4
Asi entry AS-i symbol
1
2
3
Asi output
1
4
AS-i symbol
Fallback mode on failure
Maintien Fallb. to 0
Parameters
0
1
2
3
5
6
228 35012326 00 July 2006
AS-i bus configuration
Description
Address Element
1 Title bar
2 Command zone
3
4
5
6
The following table shows the different elements of the configuration screen and their functions.
Channel zone
AS-i configuration zone
General parameters zone
Slave configuration zone
Function
Indicates the reference of the selected module and its physical position in the rack.
Allows the selection of the parameter type: z Configuration , z 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 .
Allows selection of the task in which the information from the AS-i communication channel will be scanned: z MAST task, z FAST task.
Display of this zone is optional. Selection is made using the command View →
Channel zone .
Allows: z display of the slave devices connected to the bus, z definition of a new configuration (adding, modifying or detecting slave devices).
Allows the display and the selection of the general parameters which are applied to all the slaves on the bus.
z z
Automatic addressing,
Fallback mode.
Allows display of the data associated with the selected slave, such as: z its profile, z z z a comment, its AS-i symbol (the symbols are defined with the help of the variables editor), its parameters.
35012326 00 July 2006
229
AS-i bus configuration
How to define a slave device on the AS-i bus
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: z
Non-specialized products, z
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.
230 35012326 00 July 2006
Procedure
35012326 00 July 2006
AS-i bus configuration
This operation supports the declaration of a slave device on the AS-i bus.
Step
1
2
Action
Access the AS-i module’s hardware configuration screen.
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.
9
1
8
11
12
Associate Profile
AS-interface profile families
Code AS-i family name
Capacitive detectors
Inductive proximity sensors
Photo-electric detectors
Private family
IP20 connection interface
AS-interface profile catalog
AS-i Name Comment View
Add
Modify
Details
Ok Cancel
3 In the Family Name field select the required family.
Result : The Profile catalogue associated with the selected family appears.
AS-interface profile families
AS-i AS-i family name
7
8
9
10
11
Control station
Détecteurs capacitifs
Photo-electric detectors
Interface E/S
Détecteurs inductifs
Associate a profiile
AS-i -Catalog : Photo-electric detectors
1.1
Nom
XUJ-K063539AS
1.1
XUJ-K103534AS
1.1
XUJ-K123538AS
1.1
XUJ-K703538AS
1.1
XUJ-ZAS1
Commentaire
Photo elect. detect. reflex
Photo elect. detect. Thru beam
Photo elect. detect bs 1.2m
Photo elect. detect bs 0.7m
Back over for XUJ detectors
Ok Cancel
View
Add
Modify
Détails
4 In the Profile catalogue select the required device.
231
AS-i bus configuration
Step
5
Action
Confirm the selection with OK .
Result : The slave device is defined in its slot, the reference of the connected device appears opposite the number of the slave.
AS-interface configuration
1
2
3
4
5
P XUJ-K1233538AS
6 To connect other slave devices to the AS-i bus, repeat the procedure from step
2.
232 35012326 00 July 2006
AS-i bus configuration
How to modify the AS-i Bus software configuration
At a Glance
Procedure for deleting a slave
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.
This operation allows the deletion of a slave declared on an AS-i Bus.
Step
1
2
Action
Select the slave to be deleted.
Select the command Edit → Delete an AS-i slave .
Procedure for moving a slave
This operation allows the movement of a slave declared on an AS-i Bus.
Step
1
2
3
4
Action
Select the slave to be moved.
Select the command Edit → Cut an AS-i slave .
Select the new required slot.
Select the command Edit → Paste an AS-i slave .
Procedure for copying a slave
This operation allows the copying of a slave declared on an AS-i Bus.
Step
1
2
3
4
Action
Select the slave to be copied.
Select the command Edit → Copy an AS-i slave .
Select the slot of the new slave.
Select the command Edit → Paste an AS-i slave .
35012326 00 July 2006
233
AS-i bus configuration
How to access the description of an AS-i slave
At a Glance
Definition of a profile
Details of a profile
The PL7 software allows access to all the information relating to an AS-i device such as: z z the definition of a profile, the details of a profile.
A profile is defined by: z z its name, a comment (optional), z z z identifiers (IO, ID), a number of inputs and/or outputs, operation parameters.
The Detail function allows access, for a given slave, to all the information presented 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:
AS- profilei:
I/O Error:
Télémécanique
0.0
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
234 35012326 00 July 2006
AS-i bus configuration
Procedure for accessing information on a profile
The following table shows the procedure for displaying the characteristics of a slave device.
Step
1
2
3
Action
Access the AS-i module’s hardware configuration screen.
Double click on the required slave.
Result: The window Associate a profile displays and highlights the device in question
Click on the button: z View to access definition information, z Detail to access all the information.
35012326 00 July 2006
235
AS-i bus configuration
How to define a new slave profile in the standard AS-I catalogue
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.
236 35012326 00 July 2006
Procedure
AS-i bus configuration
The following table presents the procedure for defining a slave profile, which is not provided in the standard catalogue.
Step
1
2
3
Action
Access the AS-i module’s hardware configuration screen.
Double click in a slave’s host cell (1 to 31).
Result : The screen Associate a profile appears.
Select Private family in the field Family name .
Result : The Profile catalog linked to the selected family appears.
8
11
9
1
12
Associate Profile
AS-interface profile families
Code AS-i family name
Capacitive detectors
Inductive proximity sensors
Photo-electric detectors
Private family
IP20 connection interface
AS-interface profile catalog
AS-i Name
A.4
Sensor 1I 4Q
Comment View
Add
Modify
Details
Ok Cancel
4
5
6
7
8
Click on the button Add .
Enter: z the name of the new profile, z a comment (optional).
Select: z the IO code (corresponds to the input/output configuration), z the ID code (identifier).
For each parameter define: z the system’s acknowledgement (box checked), z a label (optional).
Confirm the introduction of a new profile using Confirm .
35012326 00 July 2006
237
AS-i bus configuration
How to modify AS-i slave general parameters: Automatic addressing
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: z replacing a faulty slave (See Automatic replacement of a faulty AS-i slave, z
), inserting a new slave (See How to insert a slave device into an existing AS-i
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
1
2
Action
Access the AS-i communication module’s configuration screen.
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
Automatic addressing
Fallback mode on failure
Fallback: Maintain
Note : By default, the Automatic addressing parameter has been selected in the configuration screen.
238 35012326 00 July 2006
AS-i bus configuration
How to modify AS-i slave general parameters: Fallback mode
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: z
Fallback to 0 : AS-i slave outputs which are present on the bus are set to 0 z
(%Q objects are not modified),
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
1
2
Action
Access the AS-i communication module’s configuration screen.
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
Automatic addressing
Fallback mode on failure
Fallback: Maintain
35012326 00 July 2006
239
AS-i bus configuration
240 35012326 00 July 2006
Debugging the AS-i bus
12
At a Glance
Subject of this
Chapter
What's in this
Chapter?
This Chapter describes the Debug aspect of the AS-i bus.
This chapter contains the following topics:
Topic
Introduction to the Debug function
Description of an AS-i module’s debugging screen
How to access functionality in the module diagnostics and channel diagnostics for an AS-i device
Displaying the slaves’ status
How to access adjustment of an AS-i device’s parameters
Page
How to access the AS-i channels’ forcing/unforcing function
How to access the SET and RESET commands of the AS-i channels
Automatic replacement of a faulty AS-i slave
How to insert a slave device into an existing AS-i configuration.
How to modify the address of an AS-i device
35012326 00 July 2006
241
Debugging the AS-i bus
Introduction to the Debug function
At a Glance The Debug function is used for each AS-i communication module present in the application: z z to display the slave state (connection, parameters etc.), to access the adjustment function for the selected channel (channel forcing etc.).
The function also accesses module diagnostics in the event of a fault.
Note: This function is only available in online mode.
242 35012326 00 July 2006
Debugging the AS-i bus
Description of an AS-i module’s debugging screen
At a Glance
Illustration
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, …).
The following is the layout of the debugging screen:
1
2
TSX SAY 100 [RACK 0 POSITION 8]
Debug
Designation : AS-Interface module Version : 0.0
3
4
Chan. 0 : Asi
Channel 0
As-Interface BUS
AS-interface configuration
D
D
D
D
1 P
2 P
9
10
6
7
8
3
4
5
P
P
XZ-SDA22D32
XAL-S2003
LF2K09BW#**C
XZ-SDA22D32
RUN
MAST
Slave no : 1
Profile
Projected :
Detected :
%I
%Q
Chan.
0
1
2
3
2
3
0
1
3.0
3.0
Asi Symbol
Not handled
Not handled
Not handled
Not handled
ERR IO DIAG...
DIAG...
0
0
0
1
Parameters (3-0)
Value : 1111
Modify PARAM
State
F5
F6
F7
Global unforcing
Chan. action
F4 Force to 0
F8
Force to 1
Unforce
Set
Reset
5
35012326 00 July 2006
243
Debugging the AS-i bus
Description The following table shows the different elements of the debugging screen and their functions.
4
5
Address Element
1
2
3
Title bar
Module zone
Channel zone
Function
Indicates the reference of the selected module and its physical position in the
PLC.
Allows the selection of the parameter type: z z
Configuration ,
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).
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).
AS-i configuration zone Displays the slave devices connected to the bus.
Slave zone Displays the status of the slave’s channels and gives access to the debugging functions.
244 35012326 00 July 2006
Debugging the AS-i bus
How to access functionality in the module diagnostics and channel diagnostics for an AS-i device
At a Glance The functions of the module or channel diagnostics display the current errors in which are classed according to their category: z internal errors (internal software errors, communication error with the processor, z z configuration, parametering or command error), external errors(slave device failed, AS-i supply switched off, terminal error, difference between physical configuration and PL7 configuration), other errors (module absent or switched off).
A faulty module becomes apparent when certain lights change to red, such as: z in the configuration editor at rack level: z the module position light, z in the configuration editor at module level: z the lights RUN , ERR and I/O , z the light DIAG .
A faulty channel becomes apparent when certain lights change to red, such as: z in the configuration editor at rack level: z z the module position light, in the configuration editor at channel level: z the light DIAG .
35012326 00 July 2006
245
Debugging the AS-i bus
Procedure for accessing the module diagnostics
The following table presents the procedure to access the screen Module diagnostics .
Step
1
2
Action
Access the AS-i module’s hardware configuration screen.
Click on the button DIAG situated in the module zone.
Result : The list of module errors appears.
Internal faults
Module Diagnostics
External faults Other faults
OK
Procedure for accessing the channel diagnostics
The following table presents the procedure for accessing the screen Channel diagnostics .
Step
1
2
Action
Access the AS-i module’s hardware configuration screen.
Click on the button DIAG situated in the channel zone.
Result : The list of channel errors appears.
Internal faults
Channel Diagnostics
External faults
Device error
Other faults
Configuration error
OK
246 35012326 00 July 2006
Debugging the AS-i bus
Displaying the slaves’ status
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.
35012326 00 July 2006
247
Debugging the AS-i bus
Displaying slave status
Case
1
For each slave device, one of the following four cases can occur:
Illustration
Slave status:
AS-interface configuration
P XAL-S2003 D
3
1
2
4
5
Explanation
The slave P specified in configuration and the detected slave D are identical.
2 The slave P specified in configuration and the detected slave D are not identical. The slave is declared faulty (1).
3
4
Slave status:
AS-interface configuration
P XAL-S2003 D 1
2
3
4
5
Slave status:
AS-interface configuration
P XAL-S2003 1
2
3
4
5
Slave status:
AS-interface configuration
XAL-S2003 D 1
2
3
4
5
A slave P is specified at configuration but no slave is detected.
The slave is declared faulty (1).
An additional slave, not specified at configuration, is connected to the bus. The slave is declared faulty (1).
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.
248 35012326 00 July 2006
Debugging the AS-i bus
How to access adjustment of an AS-i device’s parameters
At a Glance
Procedure
The debugging screen of an AS-i module allows, amongst other things, access to modification of a slave’s parameters.
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
D
D
1 P
2 P
3
XZ-SDA22D32
XAL-S2003
Slave no : 1
Profile
Projected
Detected
3.0
3.0
Parameters (3-0)
Value : 1111
Modify PARAM
Global unforcing
D
D
6
7
8
9
10
4
5
P
P
LF2K09BW#**C
XZ-SDA22D32
%I
%Q
Chan.
0
1
2
3
2
3
0
1
Asi Symbol
Not handled
Not handled
Not handled
Not handled
0
1
0
State
0
Chan. action
F4 Force to 0
F5
F6
F7
F8
Force to 1
Unforce
Set
Reset
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
3 1
Voie 0 : Asi
Unused
Voie 0
BUS As-Interface
Send Cancel entry
AS-interface configuration
D
D
XZ-SDA22D32
XAL-S2003
3
4
1 P
2 P
Slave no : 1
Profile
Projected:
Unused
RUN
Flash On/Off
Detected: 3.0
Chan.
3.0
Close
MAST
AS-i Symbol
ERR IO
Parameters (3-0)
Value : 1111
Modif PARAM
State
DIAG...
DIAG...
Global unforcing
Chan. action
4 Modify the required parameters.
5 Click on Send to recognize the new values.
35012326 00 July 2006
249
Debugging the AS-i bus
How to access the AS-i channels’ forcing/unforcing function
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: z z for a channel: z forcing to 0, z z forcing to 1, unforcing.
for all the channels (when at least one channel is forced): z global unforcing.
Procedure The following table shows the procedure to follow to force or unforce the channels linked to an AS-i slave.
Action for a group of channels Step Action for a channel
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.
Result : It is possible to modify the channel using the buttons situated in the field Channel action .
Slave no : 1
Profile
Projected : 3.0
Parameters (3-0)
Value : 1111
Modify PARAM
Detected : 3.0
Global unforcing
%I
%Q
Chan.
0
1
2
3
2
3
0
1
Asi Symbol
Not handled
Not handled
Not handled
Not handled
0
1
0
State
0
0
Chan. action
F4 Force to 0
F5
F6
F7
F8
Force to 1
Unforce
Set
Reset
Click on the button Global unforcing found in the slave zone.
4 Select the required function (buttons Force to 0 or Force to 1 in the field Channel Action .
250 35012326 00 July 2006
Debugging the AS-i bus
How to access the SET and RESET commands of the AS-i channels
At a Glance
Procedure
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.
The following table presents the procedure for assigning a value of 0 or 1 to the selected AS-i slave’s channels.
Step
1
2
3
Action
Access the AS-i module’s debugging screen.
Select a slave in the zone AS-i Configuration .
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
Projected 3.0
Parameters (3-0)
Value : 1111
Modify PARAM
Detected
3.0
Global unforcing
%I
%Q
Chan.
0
1
2
3
2
3
0
1
Asi Symbol
Not handled
Not handled
Not handled
Not handled
0
1
0
State
0
0
Chan. action
F4 Force to 0
F5
F6
F7
F8
Force to 1
Unforce
Set
Reset
4 Select the required function (buttons Set or Reset ) in the field Channel action .
35012326 00 July 2006
251
Debugging the AS-i bus
Automatic replacement of a faulty AS-i slave
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. 238
).
Two options are available: z
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 z automatically inserted into the list of detected slaves (LDS) and list of active slaves (LAS).
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).
252 35012326 00 July 2006
How to insert a slave device into an existing AS-i configuration.
Debugging the AS-i bus
At a Glance
Procedure
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: z the service Automatic addressing of the configuration mode is active (See How z z
to modify AS-i slave general parameters: Automatic addressing, p. 238
), a single slave is absent in the physical configuration, the slave which is to be inserted is projected in the PL7 configuration, the slave has the profile expected by the configuration, z z the slave has the address 0.
Therefore the AS-i interface card will automatically assign to the slave the value predefined in the configuration.
The following table presents the procedure for making the automatic insertion of a new slave effective.
2
3
Step
1
Action
Add the new slave in the configuration screen in local mode.
Do a configuration transfer to the PLC in connected mode.
Physically link the new slave with address 0 to the AS-i bus.
Note: It is possible to modify an application by carrying out the above manipulation as many times as necessary.
35012326 00 July 2006
253
Debugging the AS-i bus
How to modify the address of an AS-i device
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
1
2
Action
Access the TSX SAY 100 module’s debugging screen.
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:
OK
8
9
6
7
4
5
0
2
Cancel
3
4
Select the required address in the list of Available addresses (use the scroll bar if necessary).
Confirm the selection with OK .
254 35012326 00 July 2006
Bits and words associated with the AS-i function
13
At a Glance
Subject of this
Chapter
What's in this
Chapter?
This Chapter introduces the different word and bit objects associated with the
AS-i function, as well as how to address them.
This chapter contains the following sections:
Section
13.1
13.2
Topic
Addressing objects associated with the AS-i function
Language objects associated with the AS-i function
Page
35012326 00 July 2006
255
Bits and words associated with the AS-i function
256 35012326 00 July 2006
ಡೌನ್ಲೋಡ್ ಮಾಡಿ
ಜಾಹಿರಾತು