Language objects associated with the AS-i function. Schneider Electric PL7 Junior/Pro - Premium PLC Applications - Standard applications
Quảng cáo
Quảng cáo
13.2
Bits and words associated with the AS-i function
Language objects associated with the AS-i function
At a Glance
Subject of this
Section
What's in this
Section?
This Section introduces the different language objects associated with the AS-i function.
This Section contains the following Maps:
Topic
Implicit exchange objects associated with the AS-i function
Management of exchanges: Module %MWxy.MOD.0:Xj or channel MWxy.0.0
:Xj exchanges in progress
Exchange management: Module %MWxy.MOD.1:Xj or channel %MWxy.i.1:Xj report
Page
Explicit exchange objects: General
Explicit exchange objects: %MWxy.0.2:Xj to %MWxy.0.23:Xj channel status
Explicit exchange object: %MWxy.0.24:Xj channel command
Explicit exchange object: %MWxy.0.25 to %MWxy.0.56 parameter adjustment
Explicit exchange object: Status %MWxy.MOD.2:Xj
TLX DS 57 PL7 xx
237
Bits and words associated with the AS-i function
Implicit exchange objects associated with the AS-i function
At a Glance
Bit objects
Address
%Ixy.0.ERR
%Ixy.MOD.ERR
%Ixy.0
%Ixy.0.i
%I\xy.0\.n.i
%Q\xy.0\.n.i
%Qxy.0
%Qxy.0.i
In each task cycle where the AS-i function has been configured, these objects are exchanged automatically.
The table below shows the different implicit exchange bit objects.
Function
Channel fault bit
Module fault bit
Validity of input
Reserved input channel bit output channel bit
Reserved
Reserved
Meaning when bit is on 1
Indicates a power supply fault or a slave is missing on the AS-i bus.
Indicates that the module has a fault.
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.
-
Indicates that the input channel i of device n is activated.
Indicates that the output channel i of device n is activated.
-
-
Word objects
Address
%IWxy.0
%IWxy.0.1
%IWxy.0.2
%IWxy.0.3
The table below shows the different implicit exchange word objects.
Function
List of faulty slaves
List of activated slaves (LAS)
Meaning for Xj = 1 (j = position of bit in the word) j = 0 to 15 -> slaves 0 to 15 respectively are faulty or missing.
j = 0 to 15 -> slaves 16 to 31 respectively are faulty or missing.
j = 0 to 15 -> slaves 0 to 15 respectively are activated.
j = 0 to 15 -> slaves 16 to 31 respectively are activated.
238
TLX DS 57 PL7 xx
Bits and words associated with the AS-i function
Management of exchanges: Module %MWxy.MOD.0:Xj or channel MWxy.0.0 :Xj exchanges in progress
At a Glance
Description
These word type objects carry information about the module or channel exchanges in progress.
They are updated automatically by the system.
The following table provides the meaning of the different bits of the word
%MWxy.MOD.0.
Address
%MWxy.MOD.0:X0
%MWxy.MOD.0:X1
Meaning for Xj =1
Exchange of status words in progress on the module channel.
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
%MWxy.0.0:X0
%MWxy.0.0:X1
Meaning for Xj =1
Exchange of status words in progress on the AS-i channel.
Exchange of command words in progress on the AS-i channel.
Example The following example shows a possible use of this type of word
(* Request to update the status words on channel 0*)
(*of the module situated in slot 4 of rack 0 *)
(* if there is no exchange in progress on this channel *)
IF NOT %MW4.0:X0 THEN READ_STS %CH4.0;
END_IF;
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.
TLX DS 57 PL7 xx
239
Bits and words associated with the AS-i function
Exchange management: Module %MWxy.MOD.1:Xj or channel %MWxy.i.1:Xj report
At a Glance
Description
These word type objects carry information about the module or channel exchange reports.
They are updated automatically by the system.
The following table provides the meaning of the different bits of the word
%MWxy.MOD.1.
Address
%MWxy.0.1:X0
%MWxy.0.1:X1
Meaning for Xj =1
Status parameter exchange error on channel 0 of the module.
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
%MWxy.0.1:X0
%MWxy.0.1:X1
Meaning for Xj =1
Status parameter exchange error on the AS-i channel.
Command parameter exchange error on the AS-i channel.
Example The following example shows a possible use of this type of word
(* Detection of a status error on the module situated in *)
(* slot 4 of rack 0 *)
IF NOT %MW4.MOD0:X0 THEN READ_STS %CH4.MOD;
END_IF;
IF %MW4.MOD.1:X0 THEN SET %M100;
END_IF;
240
TLX DS 57 PL7 xx
Bits and words associated with the AS-i function
Explicit exchange objects: General
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.
l l l l l l
The explicit exchange objects are exchanged at the request of the program user using instructions:
READ_STS (reading of status words),
WRITE_CMD (writing the command words),
WRITE_PARAM
READ_PARAM
SAVE_PARAM
(writing the adjustment words),
(reading the adjustment parameters),
(saving the adjustment parameters),
RESTORE_PARAM (restoring the adjustment parameters).
TLX DS 57 PL7 xx
241
Bits and words associated with the AS-i function
Explicit exchange objects: %MWxy.0.2:Xj to %MWxy.0.23:Xj channel status
At a Glance These word type objects provide information on all the slaves present on the AS-i bus.
Description of word %MWxy.0.2
The table below provides the meaning of the different bits of the word %MWxy.0.2.
Address Function
%MWxy.0.2:X0 Standard status
%MWxy.0.2:X1
%MWxy.0.2:X2
%MWxy.0.2:X3
%MWxy.0.2:X4
%MWxy.0.2:X5
%MWxy.0.2:X6
%MWxy.0.2:X7
Meaning for Xj = 1
Reserved
One or several slaves are faulty.
Line error (power supply off or faulty terminal block).
Physical configuration different from PL7 configuration.
Internal software error.
Reserved
Error communicating with processor
Command or parameter configuration fault.
Description of word %MWxy.0.3
The table below provides the meaning of the different bits of the word %MWxy.0.3.
Address Function
%MWxy.0.3:X0 AS-i specific status
%MWxy.0.3:X1
%MWxy.0.3:X2
%MWxy.0.3:X3
%MWxy.0.3:X4
%MWxy.0.3:X5
%MWxy.0.3:X6
%MWxy.0.3:X7
%MWxy.0.3:X8
Meaning for Xj = 1
Correct configuration.
Slave 0 present.
Automatic addressing enabled.
Reserved
Reserved
Reserved
Faulty AS-i power supply.
Offline phase active.
Reserved
242
TLX DS 57 PL7 xx
Bits and words associated with the AS-i function
Description of words
%MWxy.0.4 and
%MWxy.0.5
Address
%MWxy.0.4:Xj
%MWxy.0.5:Xj
The table below provides the meaning of the different bits of words %MWxy.0.4 and
%MWxy.0.5.
Function Meaning for Xj = 1
List of detected slaves LDS j = 0 to 15 -> slaves 0 to 15 respectively have been detected.
j = 0 to 15 -> slaves 16 to 31 respectively have been detected.
Description of words
%MWxy.0.6 to
%MWxy.0.21
Address
%MWxy.0.6 to
%MWxy.0.21
The table below provides the meaning of the different bits of words %MWxy.0.6 to
%MWxy.0.21.
Function
I/O configuration and ID of all detected slaves
Meaning
Words 6 to 21 -> devices respectively 0-1, 2-3, ... 28-29, 30-31.
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 word
%MWxy.0.22
Address
%MWxy.0.22
The table below provides the meaning of the word %MWxy.0.22.
Function
Parameter data of last parametered slave.
Meaning
Contains the reply (value of parameters sent) of the last parametered slave. This is so that the PL7 can check the slave has correctly received these values.
Description of word
%MWxy.0.23
Address
%MWxy.0.23
The table below provides the meaning of the word %MWxy.0.23.
Function Meaning
Address of last parametered slave.
Contains the address of last parametered slave.
TLX DS 57 PL7 xx
243
Bits and words associated with the AS-i function
Explicit exchange object: %MWxy.0.24:Xj channel command
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.
Note: Using this object requires a thorough knowledge of AS-i communication principles.
Description
0
1
1
The table below shows the coding of bits 0 to 3 of the word %MWxy.0.24 allowing access to the different modes.
0
0
Bit 3 Bit 2 Bit 1 Bit 0 Function
0 0 0 0 Normal operating mode
0
0
0
0
0
1
1
1
0
1
Activation of offline mode
Disabling offline mode
No effect
1
0
1
0
0
1
0
0
1
Activation of data exchange off mode
Disabling data exchange off mode
No effect
Note: Offline mode has priority over data exchange off mode.
244
TLX DS 57 PL7 xx
Bits and words associated with the AS-i function
Explicit exchange object: %MWxy.0.25 to %MWxy.0.56 parameter adjustment
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.
Description The table below shows AS-i channel Adjustment objects.
Address Function
%MWxy.0.25
Parameter adjustment
%MWxy.0.26 to
%MWxy.0.56
Meaning no meaning
Contain the parameter values for slaves 1 to 31 respectively.
TLX DS 57 PL7 xx
245
Bits and words associated with the AS-i function
Explicit exchange object: Status %MWxy.MOD.2:Xj
At a Glance
Description
This word type object provides information on the state of the module.
The table below provides the meaning of the different bits of the word
%MWxy.MOD.2:Xj.
Address Function
%MWxy.MOD.2:X0 Standard module status
%MWxy.MOD.2:X1
%MWxy.MOD.2:X2
%MWxy.MOD.2:X3
%MWxy.MOD.2:X4
%MWxy.MOD.2:X5
%MWxy.MOD.2:X6
%MWxy.MOD.2:X7
Meaning for Xj = 1
Internal error.
Configuration fault.
Line fault.
Not used.
Not used.
Not used.
Module missing.
Not used.
246
TLX DS 57 PL7 xx
AS-i operating mode
14
At a Glance
Subject of this
Chapter
What's in this
Chapter?
This Chapter introduces the different AS-i function operating modes.
This Chapter contains the following Maps:
Topic
AS-i operating mode: General
AS-i protected mode
AS-i wiring test mode
AS-I offline operating mode
AS-i data exchange off operating mode
Page
TLX DS 57 PL7 xx
247
AS-i operation
AS-i operating mode: General
At a Glance
Operating mode
The AS-i function allows four operating modes, each one fulfilling particular needs. l l l l
These modes are: protected mode, wiring test mode (can be accessed using the button on the front panel of the module), offline mode, data exchange off mode.
The figure below shows the general schema of AS-i bus functioning.
Offline mode
248
Start
AS-i master module
No
Activate
wiring test
Yes
No
Is the master configured?
Yes
Offline
Wiring test mode
Protected mode
(1)
Slave I/O display (2)
Automatic AS-i bus management
(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
(2) : The module exits the wiring test mode and passes to protected mode if it receives a configuration.
TLX DS 57 PL7 xx
AS-i operation
Correspondence between PLC operating modes and the AS-i bus
The table below shows the correspondence between TSX/PMX/PCX 57 PLC operating modes and those of the AS-i bus.
PLC
Configured mode (1)
AS-i bus
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.
TLX DS 57 PL7 xx
249
AS-i operation
AS-i protected mode
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 activating a slave
The schema below show the principle of activating AS-i slaves.
PL7 AS-i Module
List of slaves
expected LPS
List of slaves
detected LDS
Comparison
List of slaves
activated LAS
250
TLX DS 57 PL7 xx
AS-i operation
AS-i wiring test mode
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 l l expected and detected slaves, unexpected and non-detected slaves, 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 conditions l l
The wiring test mode is an AS-i function which can be accessed when: 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.
each device has a unique address,
0 address is not used.
TLX DS 57 PL7 xx
251
AS-i operation
AS-I offline operating mode
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
Procedure
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.
The offline operating mode can be accessed either: l l from PL7 application software by acting on bits 0 and 1 of the word %MWxy.0.24, automatically when an AS-i power supply fault is detected.
Remember: Bit 7 of word %MWxy.0.24 set on 1 indicates that the AS-i bus is in
offline mode.
252
TLX DS 57 PL7 xx
AS-i operation
AS-i data exchange off operating mode
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
Procedure
When the offline data exchange mode is engaged, exchanges on the bus continue to function, but data is not longer refreshed.
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.
TLX DS 57 PL7 xx
253
AS-i operation
254
TLX DS 57 PL7 xx
AS-i performance
15
AS-i bus performance
At a Glance
AS-i scanning time
AS-i response time
Example
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).
t scanning time represents the exchange time between the master and n slaves (31 maximum).
Either: l l t = 156 micro seconds x (n+2), if n < 31, t = 156 micro seconds x (n+1), if n = 31.
Thus the scanning time cannot exceed 5 ms.
T response time represents the AS-i cycle time.
l l l
This includes: the bus scanning time, the update of the AS-I module internal memory, the PLC cycle.
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
10 ms
30 ms
60 ms
Typical response time
35 ms
65 ms
110 ms
Maximum response time
56 ms
96 ms
156 ms
255
TLX DS 57 PL7 xx
AS-i performance
256
TLX DS 57 PL7 xx
DFB for AS-i Security Monitor
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).
TLX DS 57 PL7 xx
257
DFB AS-i
258
TLX DS 57 PL7 xx
AS-i V2 bus
IV
At a Glance
Aim of this Part
What's in this part?
This part presents the AS-i V2 bus on PLC TSX/PCX 57 and describes its implementation with the software PL7 Junior and Pro.
This Part contains the following Chapters:
Chapter
17
18
19
20
21
22
23
Chaptername
General introduction to the AS-i V2 Bus
AS-i V2 bus configuration
Debugging the AS-i V2 bus
Bits and words associated with the AS-i V2 function
AS-i V2 operating mode
AS-i V2 performance
DFB for AS-i Security Monitor
Page
259
TLX DS 57 PL7 xx
AS-i V2 bus
260
TLX DS 57 PL7 xx
General introduction to the AS-i
V2 Bus
17
At a Glance
Aim of this chapter
What's in this
Chapter?
This chapter introduces the AS-i V2 bus on the Premium/Atrium PLC, and describes how to access the different application editors.
This Chapter contains the following Maps:
Topic
Introduction to the AS-i V2 Bus
Architecture of TSX SAY 1000 Module
Structure of a Standard Address AS-i
Structure of a Standard Address AS-i slave
How to Declare an AS-i Communication Module in the PLC Rack
How to Access Configuration of the AS-i V2 Bus
Page
261
TLX DS 57 PL7 xx
AS-i V2 Bus
Introduction to the AS-i V2 Bus
Introduction
AS-i V2 Bus
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, ASi slave devices connected to the bus) then ensure its software implementation.
l l
This second aspect will be carried out from the different PL7 editors: either in local mode, or in connected mode; in this case the modification is limited to certain parameters.
l l l l
The coupler TSX SAY 1000 integrates the functions AS-i V2.
The AS-i bus then allows: up to 62 standard and/or extended address slaves, up to 248 inputs and 186 outputs, up to 124 analog values integrated in the master AS-i, a cycle time of 10ms maximum.
262
TLX DS 57 PL7 xx
AS-i V2 Bus
Implementation
Mode
Local
Local or connected
Connected
Local or connected
The following table shows the different implementation phases of the AS-i bus.
Phase
Declaration of module
Documentation
Description
Selection of slot for TSX SAY 1000 module in the rack.
Declaration of slave devices Selection for each device: l l of its slot number on the bus, of the type of standard or extended address slave
Input of the configuration parameters.
Configuration of the module channel (See AS-i V2 bus
Confirmation of module level.
Confirmation of configuration parameters
(See Confirming the configuration of a module.,
)
Global confirmation of the application (See Globally reconfiguring an
)
Confirmation of application level.
Symbolization
Programming
Transfer
Debugging
Symbolization of the variables associated with the slave devices.
Programming the functions carried out using the AS-i V2 bus.
Transfer of the application to the PLC.
Debugging the application using: l the debugging help screens which display the slave connections, their parameters, etc.
l diagnostic screens allowing 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 previously configured the module and the slave devices.)
TLX DS 57 PL7 xx
263
AS-i V2 Bus
Architecture of TSX SAY 1000 Module
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.
Profile M1 and M1e - Full Master: this profile covers all the operating functions set l l by the AS-i standard,
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 architecture
The figure below shows the TSX SAY 1000 module architecture.
TSX SAY 1000
1 I/O data
2
3
4
5
6
7
Parameters current
Configuration/
Identification
LDS
LAS
LPS
LPF
AS-i bus
264
TLX DS 57 PL7 xx
Description of constituent elements
AS-i V2 Bus
The table below shows the different elements that make up the architecture of the
TSX SAY 1000 module.
4
5
6
2
3
Number Element
1 I/O data
Current parameters
Configuration/
Identification
LDS
LAS
LPS
7 LPF
Description
Images of 248 inputs and 186 outputs of AS-i V2 bus.
Image of parameters of all slaves.
This field contains all the I/O codes and identification codes for all the detected slaves.
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.
List of slaves having a device fault.
TLX DS 57 PL7 xx
265
AS-i V2 Bus
Structure of a Standard Address AS-i
At a Glance
Structure illustration
The AS-i V2 bus is used to interconnect 31 standard address devices.
The standard address slaves each have: l l l
4 input bits,
4 output bits,
4 parametering bits.
The AS-i V2 bus can manage a maximum of 124 standard address slave Inputs and
124 Outputs.
Each slave has its own address and a profile (defines variables exchange).
The figure below shows the structure of a standard address slave.
AS-i slave
1 I/O data
D3
D0
2 Parameters
P3
P0
3
Configuration/
Identification
AS-i bus
4 Address
Description of constituent elements
266
The table below shows the different elements that make up the structure of a standard address slave.
Number
1
2
Element
Input/output data
Parameters
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.
3 Configuration/
Identification
This field contains: l l the code which corresponds to I/O configuration, the slave identification codes (ID, ID1, ID2).
Physical address of slave.
4 Address
Note: The operating parameters, address, configuration and identification data are saved in a non-volatile memory.
TLX DS 57 PL7 xx
AS-i V2 Bus
Structure of a Standard Address AS-i slave
At a Glance
Structure illustration
The extended AS-i V2 bus is used to interconnect 62 extended address devices.
The extended address slaves each have: l l l
4 input bits,
3 output bits,
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).
The figure below shows the structure of an extended address slave.
AS-i slave
Input Bit Only
(D3)
1 I/O data
D0
2 Parameters
P2
P0
3
Configuration/
Identification
AS-i bus
4 Address
TLX DS 57 PL7 xx
267
AS-i V2 Bus
Description of constituent elements
The table below shows the different elements that make up the structure of an extended address slave.
Number
1
2
3
4
Element
Input/output data
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: l l l the code which corresponds to I/O configuration, the slave identification (ID) code, the slave identification codes (ID1 and ID2).
Physical address of slave.
Note: The operating parameters, address, configuration and identification data are saved in a non-volatile memory.
268
TLX DS 57 PL7 xx
AS-i V2 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
Communication
1.5
1.5
Upcounting
Movement
Weighing
Alternating
1.5
1.5
1.7
1.5
Module:
TSX SAY1000
TSX SCY 21600
TSX SCY 21601
AS-Interface MODULE
PCMCIA HOST MODULE
PCMCIA HOST MODULE
OK
Cancel
TLX DS 57 PL7 xx
2
3
4
Select the choice Communication in the Family field.
Select in the Module field the reference of the module.
Confirm the selection with OK.
Result: The module is declared in its slot; this turns yellow and contains the module reference.
Configuration
TSX 57303 V5.0...
XMWI
XTI..
0
2
6
0
0
P
S
Y
0
5
7
1
0
3
T
S
X
1 2 3 4 5 6
1
0
0
0
S
A
Y
Note: The maximum number of TSX SAY 1000 modules which can be installed in a configuration is: l l l
2 modules, with a TSX/PMX/PCX 57-1• processor,
4 modules, with a TSX/PMX/PCX 57-2• processor,
8 modules, with a TSX/PMX/PCX 57-3•, TSX/PMX 57-4• processor.
269
AS-i V2 Bus
How to Access Configuration of the AS-i V2 Bus
Procedure This operation allows access to the configuration of an AS-i communication module.
Step
1
Action
Access the Hardware configuration screen
Result: The rack’s hardware configuration screen appears.
Configuration
TSX 57303 V5.0...
XMWI
XTI..
2
0
2
6
0
0
P
S
Y
0
T
S
X
5
7
1
0
3
1 2 3 4 5 6
S
A
Y
1
0
0
0
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
AS-interface V2 configuration
Automatic addressing
Std/A Slaves /B Slaves
XVBC21A
P
10
11
12
13
14
5
6
3
4
7
8
9
0
1
2 P ASIME4IE
MAST
Slave 2B
Specifications
Profile:
Comment
IO 0 ID a ID2 0 ID1
4 input extended addr. Module
0
Parameters
0 Unused
1 Unused
2
0
Unused
Input / Output Symbols
Input Number
3
4
1
2
Output
3
4
1
2
%I\1.0\102.0
%I\1.0\102.1
%I\1.0\102.2
%I\1.0\102.3
Number
Not handled
Not handled
Not handled
Not handled
Symbol
Symbol
Not handled
Not handled
Not handled
Not handled
270
TLX DS 57 PL7 xx
AS-i V2 bus configuration
18
At a Glance
Subject of this
Chapter
What's in this
Chapter?
This Chapter describes the Configuration aspect for installing the AS-i V2 bus.
This Chapter contains the following Maps:
Topic
Description of an AS-i V2 communication module’s configuration screen
How to define a slave device on the AS-i V2 bus
How to modify the AS-i V2 Bus software configuration
How to access the description of an AS-i V2 slave
How to define a new slave profile in the standard AS-i V2 catalog
How to modify the general parameters of an AS-i V2 slave: Automatic addressing
How to modify the parameters of an AS-i V2 slave
How to modify the parameters of an analog AS-i V2 slave
How to Modify the Parameters of an AS-i V2 Slave with Combined Parameters
AS-i V2 security device issues
Page
TLX DS 57 PL7 xx
271
AS-i V2 bus configuration
Description of an AS-i V2 communication module’s configuration screen
At a Glance
Illustration
The configuration screen of the AS-i V2 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
2
3
4
TSX SAY 1000 [RACK 0 POSITION 1]
Configuration
Designation: AS-interface V2 Module
Channel 0
AS-interface V2 Bus
AS-interface V2 configuration
Automatic addressing
Std/A Slaves /B Slaves
XVBC21A
P
10
11
8
9
6
7
12
13
14
3
4
5
0
1
2 P ASIME4IE
MAST
Slave 2B
Specifications
Profile:
Comment
Parameters
0 Unused
IO 0 ID a ID2 0 ID1
4 input extended addr. Module
0
2 Unused
1 Unused 0
Input / Output Symbols
Input Number
1
2
3
4
Output
1
2
3
4
%I\1.0\102.0
%I\1.0\102.1
%I\1.0\102.2
%I\1.0\102.3
Number
Not handled
Not handled
Not handled
Not handled
Symbol
Symbol
Not handled
Not handled
Not handled
Not handled
5
6
7
272
TLX DS 57 PL7 xx
AS-i V2 bus configuration
Description
1
2
Number Element
Module
Title bar
Command
The following table shows the different elements of the configuration screen and their functions.
Function
Indicates the reference of the selected module and its physical position in the rack.
Allows the selection of the parameter type: l l
Configuration,
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.
3
AS-i V2 bus
Channel 0
4 AS-interface V2 configuration
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.
l l
Allows: l Viewing standard and extended address setting slave devices connected to the bus, definition of a new configuration (adding, modifying or detecting slave devices).
Selecting automatic addressing mode
5
Slave
Specifications
6
7
Parameters
Input / Output
Symbols
Allows viewing of: l l
Slave profile
Comments on the selected slave
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 l
Watchdog
Fallback Position
Allows data associated with the selected slave to be displayed, such as: l l its AS-i symbol (the symbols are defined with the help of the variables editor),
Its label (or address) which can be used in the program
TLX DS 57 PL7 xx
273
AS-i V2 bus configuration
How to define a slave device on the AS-i V2 bus
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 l l l l l l l l l l l l l l
Keyboards
Illuminated columns
Command and signaling
AS-i modules and interfaces
Motor-starters
Inductive sensors
Phototronic sensors
Private family
IP20 linkage interfaces
Position switches
Analog modules
Security modules
Logical modules
IP67 Distributors
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.
274
TLX DS 57 PL7 xx
Procedure
TLX DS 57 PL7 xx
AS-i V2 bus configuration
This operation enables the declaration of a slave device on the AS-i V2 bus.
Step
1
2
Action
Access the AS-i module’s hardware configuration screen.
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
7
8
4
5
6
Code ASI Family Name
Keyboards
Illuminated columns
Command and signaling
AS-i Modules and Interfaces
Motor-starters
Catalog of AS-interface profiles
ASI Name @
Ok Cancel
Comment
Consult
Add
Modify
Delete
Detail
3 In the ASI Family Name field select the required family.
Result: The Profile catalogue associated with the selected family appears.
15
16
14
10
13
Associate a profile
Families of AS-interface profiles
Code ASI Family Name
12345678 Analog Modules
Security modules
Logical modules
IP67 Distributors
Variable speed controllers
Consult ASI Catalog: IP67 Distributors
0.0.F.F
0.0.F.F
0.A.0.0
0.A.0.0
3,0.F.F
ASI Name
XZ-SDA40D2
XZ-SDA40D3
ASIME4IE
ASIMM04IE
XZ-SDA22D11
@ std std
A/B
A/B std
Comment
4 E 100 mA User Module
4 I 200 mA User Module
4 input extended addr. Module
Mini mod. 4 input extended addr
2I/2O rel. M12 User Module
Add
Modify
Delete
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).
275
AS-i V2 bus configuration
Step
4
5
6
Action
In the Profile catalogue select the required device.
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
10
11
12
13
8
9
6
7
14
0
3
4
1
2
5
P
ASIME4IE
To connect other slave devices to the AS-i V2 bus, repeat the procedure from step 2.
Configuration
Rules
The configuration rules for the slaves are as follows: l The /B Slaves column can only support extended address slaves, and this on condition that the std /A Slaves cell immediately to its left is not occupied by a l standard address slave.
The std /A Slaves column can support extended address slaves. This column can also support standard address slaves, as long as the /B Slaves cell immediately to its right is not occupied by an extended address slave.
A maximum of 62 extended or 31 standard address slaves can be configured.
A validity check is carried out during slave entry. A message like the one below will be displayed if this is not possible:
PL7Pro
Confirmation Impossible:
One extended address slave is already present on /B.
OK
276
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).
TLX DS 57 PL7 xx
AS-i V2 bus configuration
How to modify the AS-i V2 Bus software configuration
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 deleting a slave
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 a slave declared on an AS-i V2 Bus to be moved.
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 V2 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.
TLX DS 57 PL7 xx
277
AS-i V2 bus configuration
How to access the description of an AS-i V2 slave
At a Glance
Definition of a profile
The PL7 software allows access to all the information relating to an AS-i V2 device l l such as: the definition of a profile, the details of a profile.
A profile is defined by: l l l l l its name, a comment (optional), identifiers (IO, ID, ID1, ID2), a number of inputs and/or outputs, operation parameters.
Note: profile description for Private Family products is not accessible.
Details of a profile
The Detail function allows access, for a given slave, to all the information presented 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:
AS-i profile:
I/O Configuration:
Telemechanics
0.0
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
278
TLX DS 57 PL7 xx
AS-i V2 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
4
Action
Access the AS-i V2 module’s hardware configuration screen.
Double click on the required slave.
Result: The Associate a profile window displays and highlights the device in question.
Select the profile family and the reference for the desired slave.
Click on the button: l l
View to access definition information,
Detail to access all the information.
TLX DS 57 PL7 xx
279
AS-i V2 bus configuration
How to define a new slave profile in the standard AS-i V2 catalog
At a Glance
Procedure
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.
The following table presents the procedure for defining a slave profile, which is not provided in the standard catalog.
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 /A or /B).
Result: The Associate a profile screen appears.
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
9
1
12
3
15
ASI Family Name
Phototronic sensors
Private family
Connection interfaces IP20
Position switches
12345678 Analog Modules
ASI Catalog: Private family
1.1.F.1
1.A.1.1
ASI Name
Sens 1I 4O
Test
@ std
A/B
Special Sensor
Test
Comment
Consult
Add
Modify
Delete
Detail
Ok Cancel
4
5
6
Click on the Add button.
A new AS-interface profile definition window opens.
Enter: l l the name of the new profile, a comment (optional).
Select: l l the IO code (corresponds to the input/output configuration), the ID code (identifier) (plus ID1 and for an extended type),
280
TLX DS 57 PL7 xx
Step
7
8
AS-i V2 bus configuration
Action
For each parameter define: l l the system’s acknowledgement (box checked), a label (optional).
Confirm the introduction of a new profile using Confirm.
TLX DS 57 PL7 xx
281
AS-i V2 bus configuration
How to modify the general parameters of an AS-i V2 slave: 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: l replacing a faulty slave (See
Automatic replacement of a faulty AS-i V2 slave, l inserting a new slave (See How to insert a slave device into an existing AS-i V2
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 V2 communication module’s configuration screen.
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
Note: By default, the Automatic addressing parameter is selected in the configuration screen.
282
TLX DS 57 PL7 xx
AS-i V2 bus configuration
How to modify the parameters of an AS-i V2 slave
At a Glance
Example of parameters
Procedure
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.
On certain slaves, the following may be activated: l The internal watchdog, upon a communication stop with the (TSX SAY 1000) bus master.
The output fallback position pre-programmed in the slave.
l
This parameter activates the slaves' output fallback when changing to STOP or when the PLC is faulty.
l l
The fallback position is pre-defined in the slave device. Possible modes are:
Fallback to 0: the outputs ofAS-i slaves present on the bus are set to 0 status.
Maintain status: AS-i slave outputs remain in the status they were in before
STOP mode was engaged.
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
1
2
3
Action
Access the AS-i V2 communication module’s configuration screen.
Select the slave whose parameters are to be modified.
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
1 Fallback
2
3
Unused
Unused
TLX DS 57 PL7 xx
283
AS-i V2 bus configuration
How to modify the parameters of an analog AS-i V2 slave
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: l l l
Filter Selection, which activates la rejection of 50/60 Hz on inputs.
Channel 2 Enabling, which enables the second analog channel.
Peri Flt Enabling, which enables peripheral faults to be displayed.
The parameters displayed differ according to the slave in use, please refer to slave documentation for further details.
Procedure
Note: Module TSX SAY 1000 can only manage 7.3 type analog slaves.
The following table shows the procedure for defining the parameters of an analog slave device.
Step
1
2
3
Action
Access the AS-i V2 communication module’s configuration screen.
Select the slave whose parameters are to be modified.
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
1 Conf. Channel 2
2
3
Peri. Flt. Conf
Unused
284
TLX DS 57 PL7 xx
AS-i V2 bus configuration
How to Modify the Parameters of an AS-i V2 Slave with Combined Parameters
At a Glance
Procedure
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.
The table below shows the procedure for selecting the parameters of the slave devices with combined parameters.
Step
1
2
3
Action
Access the configuration screen of the AS-i V2 communication module.
Select the slave whose parameters are to be modified.
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
List of Values Pages 112 to 127
TLX DS 57 PL7 xx
285
AS-i V2 bus configuration
AS-i V2 security device issues
At a Glance
Precautions of
Use
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).
Input/Output objects from these devices should not be used in the application 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.
286
TLX DS 57 PL7 xx
Debugging the AS-i V2 bus
19
At a Glance
Aim of this chapter
What's in this
Chapter?
This Chapter describes the Debug aspect of the AS-i V2 bus.
This Chapter contains the following Maps:
Topic
Introduction to the Debug function
Description of an AS-i V2 module's debugging screen
How to access module- and channel-diagnostics functions on an AS-i V2 device.
Displaying the slaves' status
How to access adjustment of an AS-i V2 device's parameters
How to access the AS-i V2 digital channels' forcing/unforcing function
How to access the SET and RESET commands on AS-i V2 digital channels
How to modify the value of an analog channel
Automatic replacement of a faulty AS-i V2 slave
How to insert a slave device into an existing AS-i V2 configuration.
How to modify the address of an AS-i V2 device
Page
TLX DS 57 PL7 xx
287
Debugging the AS-i V2 bus
Introduction to the Debug function
Introduction The Debug function allows each AS-i V2 communication module present in the application: l l to display slave status (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.
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.
288
TLX DS 57 PL7 xx
Debugging the AS-i V2 bus
Description of an AS-i V2 module's debugging screen
At a Glance
Illustration
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.).
This is the layout of the debugging screen:
1
2
3
4
TSX SAY 1000 [RACK 0 POSITION 5]
Debugging
Designation: AS-Interface V2 MODULE Version: 0.1
RUN ERR
Channel 0: Maestro
Channel
AS-interface V2 BUS
AS-interface V2 configuration
Automatic addressing
Std/A Slaves /B Slaves
Ext I/O Module
XZ-SDA22D12
Ext I/O Module
XZ-SDA22D12
XZ-SDA22D12
XZ-SDA22D12
XZ-SDA22D12
Analog B&W 2IN
Analog B&W 2IN
Ext I/O Module
XZ-SDA22D12
Ext I/O Module
XZ-SDA22D12
XZ-SDA22D12
20
21
22
23
24
25
26
27
17
18
19
14
15
16 Ext I/O Module
Ext I/O Module
Ext I/O Module
MAST
Slave 21A
Profile
%I
%Q
Projected:
Detected:
IO
Parameters (3-0)
Value: 0111
DIAG...
IO
IO
7
7
ID
ID
DIAG...
3
3
ID2
ID2 d d
Modif PARAM
Ch.
1
2
3
2
3
0
1
0
Asi Symbol
Format: Decimal
Status
0
0
0
0
0
0
10000
0
ID1
ID1 f f
Action channel 0
Change value
Global unforcing
5
TLX DS 57 PL7 xx
289
Debugging the AS-i V2 bus
Description
Number Element
1 Title bar
2
3
4
Module zone
The following table shows the different elements of the debugging screen and their functions.
Channel zone
Function
Indicates the reference of the selected module and its physical position in the
PLC.
Allows parameter type to be selected: l l
Configuration,
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).
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).
Displays the slave devices connected to the bus.
5
Configuration Zone
AS-interface V2
Slave zone Displays the status of the slave’s channels and gives access to the debugging functions.
290
TLX DS 57 PL7 xx
Debugging the AS-i V2 bus
How to access module- and channel-diagnostics functions on an AS-i V2 device.
At a Glance
Procedure for accessing the module diagnostics
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 l l l the module position LED, in the configuration editor at module level: the RUN, ERR and I/OLEDs, 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 l the module position LED, in the configuration editor at channel level: l the DIAGLED.
The following table shows the procedure to access the Module diagnostics screen.
Step
1
2
Action
Access the AS-i module’s hardware configuration screen.
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
TLX DS 57 PL7 xx
291
Debugging the AS-i V2 bus
Procedure for accessing channel diagnostics
The following table shows the procedure for accessing the Channel
diagnosticsscreen.
Step
1
2
Action
Access the AS-i module’s hardware configuration screen.
Click on the DIAG button located in the channel zone.
Result: The list of channel errors appears.
Diagnostics Channel
Internal faults External faults
Slave error
Inconsistency with logical and physical configuration
Other faults
Data Exchange inactive on
AS-i bus
OK
292
TLX DS 57 PL7 xx
Debugging the AS-i V2 bus
Displaying the slaves' status
At a Glance The lower part of the communication module’s debugging screen is reserved for ASi 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.
Displaying slave status
Illustration
AS-interface V2 configuration
Faulty Slave: red "LED"
Std/A Slaves
0
1
2
3
6
7
4
5
8
9
10
11
12
13
14
/B Slaves
4I/3O
Slave valid
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
TLX DS 57 PL7 xx
293
Debugging the AS-i V2 bus l l l
The Slave Diagnostics window displays the following faults for each slave device:
A configured profile is specified but no slave is detected.
A profile is detected but there is no configured slave profile.
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.
294
TLX DS 57 PL7 xx
How to access adjustment of an AS-i V2 device's parameters
Debugging the AS-i V2 bus
At a Glance
Procedure
The debugging screen of an AS-i V2 module allows the user, amongst other things, to modify a slave’s parameters.
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
Detected: IO
Parameters (3-0)
Value: 1111
3
3
ID f
ID f
ID2
ID2 f f
Modif PARAM
ID1
ID1 f f
%I
Action channel 0
F4 Force to 0
%Q
Ch.
2
3
0
1
0
1
2
3
Asi Symbol
Not handled
Not handled
Not handled
Not handled
Format: Decimal
0
0
0
0
Status
F5
F6
F7
F8
Force to 1
Unforce
Set
Reset
Global unforcing
3 Click on the Modif PARAM button located in the slave zone’s Parameters field.
Result: The Parameter modification window appears.
Modify Parameters Slave no : 40
Parameters
0 Unused
1 Unused
2
3
Unused
Unused
Send Cancel Input
4 Selecting and omitting parameters.
5 Click on Send to recognize the new values.
C lose
TLX DS 57 PL7 xx
295
Debugging the AS-i V2 bus
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
Select a combination of parameters from the drop-down list
296
TLX DS 57 PL7 xx
Debugging the AS-i V2 bus
How to access the AS-i V2 digital channels' forcing/unforcing function
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 l forcing to 0 l forcing to 1 l unforcing.
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
1 Access the AS-i V2 module’s debugging screen.
Action for all channels
2 Select a slave in the AS-interface V2 Configuration zone.
3 Select the channel which is to be modified from the slave zone table.
Result: The channel can be modified using the buttons situated in the Action channel field.
Click on the Global unforcing button located in the slave zone.
%I
%Q
Ch.
2
3
0
1
0
1
2
3
Asi Symbol
Not handled
Not handled
Not handled
Not handled
Format: Decimal
0
0
0
0
Status
Action channel 0
F4 Force to 0
F5 Force to 1
F6
F7
F8
Unforce
Set
Reset
Global unforcing
4 Select the required function (buttons Force to 0 or Force to
1) in the Channel Action field.
TLX DS 57 PL7 xx
297
Debugging the AS-i V2 bus
How to access the SET and RESET commands on AS-i V2 digital channels
At a Glance
Procedure
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.
The table below shows the procedure for assigning a value of 0 or 1 to the selected
AS-i V2 slave’s channels.
Step
1
2
3
Action
Access the AS-i V2 module’s debugging screen.
Select a slave in the AS-interface V2 Configuration zone.
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.
%I
%Q
Ch.
0
1
2
3
0
1
2
3
Asi Symbol
Not handled
Not handled
Not handled
Not handled
Format: Decimal
0
0
0
0
Status
Action channel 0
F4 Force to 0
F5 Force to 1
F6
F7
F8
Unforce
Set
Reset
Global unforcing
4 Select the required function (buttons Set or Reset) in the Channel action field.
298
TLX DS 57 PL7 xx
Debugging the AS-i V2 bus
How to modify the value of an analog channel
At a Glance
Procedure
This function allows the values of channels linked to an AS-i V2 analog slave to be modified.
The following table shows the procedure for modifying the value of an AS-i V2 slave's analog channel.
Step
1
2
3
Action
Access the AS-i V2 module’s debugging screen.
Select an analog slave in the AS-interface V2 Configuration zone.
Select the channel whose value you wish to modify from the Slave zone.
%I
%Q
Ch.
2
3
0
1
0
1
2
3
Asi Symbol
Format: Decimal
Status
0
0
0
0
0
0
10000
0
Action channel 0
Change value
Global unforcing
4 Click on the Change Value button.
Result: the following window appears:
Analog I/O
Slave 21A / Channel 0
Value decimal:
10000
OK
5 Enter the value in decimals and click on OK
Note: the value is always entered as decimal, but it may be displayed in a different format using the Format drop-down list, located at the bottom of the
Slave zone.
TLX DS 57 PL7 xx
299
Debugging the AS-i V2 bus
Automatic replacement of a faulty AS-i V2 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 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
Two options are available: l The replacement slave is programmed with the same address using the pocket programmer, and has the same profile and sub-profile as the faulty slave. It is thus automatically inserted into the list of detected slaves (LDS) and into the list of active slaves (LAS), l The replacement slave is blank (address 0 (A), 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 into the list of active slaves (LAS).
300
TLX DS 57 PL7 xx
Debugging the AS-i V2 bus
How to insert a slave device into an existing AS-i V2 configuration.
At a Glance
Procedure
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, l l l l
a single slave is absent in the physical configuration, the slave which is to be inserted is specified in the PL7 configuration, the slave has the profile and sub-profile expected by the configuration, 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.
The following table shows 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.
Carry out a configuration transfer to the PLC in connected mode.
Physically link the new slave with address 0 (A) to the AS-i V2 bus.
Note: An application can be modified by carrying out the above manipulation as many times as necessary.
TLX DS 57 PL7 xx
301
Debugging the AS-i V2 bus
How to modify the address of an AS-i V2 device
At a Glance
Procedure
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.
The following table shows the procedure for modifying the address of an AS-i V2 slave device.
Step
1
2
Action
Access the TSX SAY 1000 module’s debugging screen.
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:
Bank selection:
Addresses available on this bank:
4
5
6
7
8
2
3
0
1
4B
A
OK Cancel
3
4
5
Select bank A or B in the Bank Selection list.
Note: bank B cannot be selected where there is a standard address slave.
Select the required address in the list of Available addresses (use the scroll bar if necessary).
Confirm the selection with OK.
302
TLX DS 57 PL7 xx
Bits and words associated with the AS-i V2 function
20
At a Glance
Aim of this chapter
What's in this
Chapter?
This Chapter introduces the different word and bit objects associated with the AS-i
V2 function, as well as how to address them.
This Chapter contains the following Sections:
Section
20.1
20.2
Topic
Addressing objects associated with the AS-i V2 function
Language objects associated with the AS-i V2 function
Page
TLX DS 57 PL7 xx
303
Tải xuống
Quảng cáo