The Debugging function. Schneider Electric PL7 Junior/Pro - Premium PLC Applications - Analog, Regulation PID, Weighing
Quảng cáo
Quảng cáo
The Debugging function
6
At a Glance
Aim of this
Chapter?
What's in this
Chapter?
This chapter looks at the debugging function and commands in analog input/output modules.
This Chapter contains the following Maps:
Topic
Introducing the Debugging Function of an analog module
Description of an analog module debugging screen
Analog module diagnostics
Forcing/unforcing analog channels
Detailed analog channel diagnostics
Modifying the channel filtering value
Aligning an input channel
Modifying the fallback value of an output
Calibration function for an analog module
Page
199
TLX DS 57 PL7 xxE
Debugging
Introducing the Debugging Function of an analog module
Introduction
Procedure
This function is only accessible in online mode. Debugging is used for each input/ output module of the application: l to display the parameters of each of its channels (channel state, filtering value, etc.), l to access the diagnostics and adjusting function for the selected channel (forcing the channel, masking the channel, etc.).
The function also gives access to the module diagnostics in the case of a fault.
The table below shows the procedure for accessing the Debugging function:
Step
1
2
Action
Switch to on-line mode.
Double-click on the module in hardware configuration.
Result : The module Debugging screen then appears.
200
TLX DS 57 PL7 xxE
Debugging
Description of an analog module debugging screen
At a Glance
Illustration
2
1
3
4
5
The debugging screen displays the value and status for each channel in the selected module in real-time. It also enables the user to access the channel command
(forcing the input or output value, reactivation of outputs, etc.).
The debugging screen is composed as follows:
TSX AEY 420 [RACK 0 POSITION 6]
Debugging
Designation: 4E ANA. RAPIDES HN. Version: 1.0
Channel
2
3
0
1
Symbol F
Global unforcing
ERR
DIAG..
DIAG..
DIAG..
DIAG..
<
0
-4
-2
-3
Value
RUN ERR IO DIAG...
Adjusting Channel 2
>
0
0
0
0
A
Display
Range +/-10V
-100000 to 10000
Forcing
0
Event
Event
Threshold 0:
0
Threshold 1:
0
Alignment
Target value
0
Confirm
0
Force
Unforce
Confirm
Offset
0
Reset
TLX DS 57 PL7 xxE
201
Debugging
Description The table below presents the different elements of the debugging screen and their functions.
Address Element
1
2
3
4
5
Title bar
Drop-down menu
Function
Indicates the reference of the selected module and its physical location as well as the rack number for the rack-mounted modules or the FIPIO connection point for the remote input/ outputs.
Enables selection: l of the debug phase: l l
Configuration,
Debugging (diagnostics), only possible when in online mode, l l Calibration (for input modules).
of channels by type (input or output), when the specified module contains both inputs and outputs.
Module zone Displays the name of the selected module as well as a copy of the module status LEDs
(Run, Err, I/O).
Provides direct access: l to module diagnostics when the module has an error (indicated by the LED integrated in the diagnostics access button switching to red), l to the Global unforcing function for channels.
Note: Displaying this zone is optional. The selection is made using the View
→
Module zone command.
Channel zones
Command zone
Displays the value and status for each channel in the module in real-time. The symbol column displays the symbol associated with the channel when the user has defined this
(from the variables editor).
Provides direct access: l to channel-by-channel diagnostics when channels have an error (indicated by the LED integrated in the diagnostics access button switching to red), l to the output reactivation command.
Gives access to the commands of a channel.
202
TLX DS 57 PL7 xxE
Debugging
Analog module diagnostics
At a Glance
Procedure
The Module diagnostics function displays errors when they occur, classified l l l according to category: internal errors (module breakdown, running self-test), external errors (terminal block fault), other errors (configuration error, module missing or switched off, faulty channel(s)
(details in channel diagnostics)).
A module error is indicated by a number of LEDs changing to red, such as: l l l l in the rack-level configuration editor: l the module position LED, in the module-level configuration editor: the Err and I/O LEDs, depending on the type of error, the Diag LED.
The table below shows the procedure for accessing the Module diagnostics screen.
Step
1
2
Action
Open the module debugging screen.
Click on the Diag button in the module zone.
Result: The list of module errors appears.
Module diagnostics
Internal faults External faults Other faults
Terminal block
OK
Note: It is not possible to access the module diagnostics screen if a configuration error, major breakdown error or module missing error occurs.
The following message appears on the screen: " The module is missing or different from that configured for this position ."
TLX DS 57 PL7 xxE
203
Debugging
Forcing/unforcing analog channels
At a Glance
Procedure
This function is used to modify the state of all or some of the channels of a module.
The state of a forced output is fixed and cannot be modified by the application until after unforcing.
Note: However, in the case of a fault involving an output fallback, the state of the outputs takes the value defined on configuration of the Fallback mode parameter.
The various commands available are: l for one or several channels: l forcing to the indicated value, l l unforcing (when the selected channel(s) are forced, for all the channels of a module (when at least one channel is forced: l global channel unforcing.
The table below shows the procedure for forcing or unforcing all or some of the channels of a module:
2
3
Step
1
4
Action for a channel
Open the module debugging screen.
Double-click in the cell in the Value column of the required channel (1).
Enter the required value in the Forcing box.
Click on the Force button.
Result : an F appears in the column F
Adjusting Channel 2
Display
Range +/-10V
-100000 to 10000
Forcing
0
Force
Unforce
Event
Event
0
0
Confirm
204
TLX DS 57 PL7 xxE
Debugging
Step Action for a channel
(1) The Channel adjustment screen can also be accessed by right-clicking on the required channel then left-clicking on the Properties button.
It is possible to disable forcing of all the channels of a module with the command button Global unforcing in the Debugging screen.
TSX AEY 420 [RACK 0 POSITION 6]
Debugging
Designation : 4 FAST HN. ANALOG INPUT Version : 1.0
Global Unforcing RUN ERR IO DIAG...
Rules to be respected
It is only possible to force an output when the task associated with this output is in
RUN mode. If the task is in STOP mode, forcing is accepted but not applied; the output is in Fallback/Maintain mode.
If an output is in forced state, it switches to Fallback/Maintain mode when the associated task switches to STOP mode. When this task returns to RUN mode, the output takes the forced value again.
A forced channel cannot be reconfigured in online mode.
TLX DS 57 PL7 xxE
205
Debugging
Detailed analog channel diagnostics
At a Glance The Channel diagnostics function displays errors when they occur, classified according to category: l internal faults: l Module failure l external faults: l sensor link fault l l terminal block fault range overshoot or undershoot fault l l calibration fault cold junction compensation fault l other faults: l terminal block fault l l configuration fault communication error l l application error
24V power supply fault l value outside limits l channel not ready
A faulty channel is indicated by the Diag LED in the Err column in the configuration editor switching to red.
206
TLX DS 57 PL7 xxE
Procedure
Debugging
The table below shows the procedure for accessing the Channel diagnostics screen.
Step
1
2
Action
Open the module debugging screen.
For the faulty channel, click on the Diag button in the Err column.
2
3
0
1
Ch.
Symbole F ERR
DIAG..
DIAG..
DIAG..
DIAG..
<
0
-4
-2
-3
Value >
0
0
0
0
A
Result: The list of channel errors appears.
Channel diagnostics
Internal faults External faults Other faults
Terminal block
Forced channel
OK
Note: The channel diagnostics information can also be accessed by program
(refer to the Shared task functions manual: READ_STS instruction).
TLX DS 57 PL7 xxE
207
Debugging
Modifying the channel filtering value
At a Glance This function is used to modify the filtering value of one or several channels of an l l l l analog module.
The available commands are:
0 : no filtering,
1
3
5
and
and
and
2
4
6
: low filtering,
: medium filtering,
: high filtering.
208
TLX DS 57 PL7 xxE
Debugging
Procedure
Step
1
2
3
The table below gives the procedure for changing a filtering value.
Action for a channel
Access the debug screen.
Select the channel to be modified in the channel zone and double-click in the corresponding box in the
Filter box.
Click on the little arrow in the box in the Filtering field of the Channel adjustment dialog box, and define the new selected filtering value in the drop-down menu.
Result : The Channel adjustment dialog box appears.
TSX AEY 1600 [RACK 0 POSITION 9]
Debugging
Designation: 16E ANA. HIGH LEVEL Version: 0.4
4
5
6
7
8
9
10
11
12
13
14
15
1
2
3
0
Channel Symbol F
Global unforcing RUN
ERR
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
Value
-252
-193
-188
-177
-166
-177
-177
-177
-257
-198
-182
-177
-171
-171
-166
-182
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Filter
ERR
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
A
IO
Adjusting Channel 7
DIAG...
Display
Range +/-10V
-100000 to 10000
Forcing
0
Force
Unforce
Filtering
1
4
Alignment
6
0
Confirm
Confirm
Offset
0
Reset
4
5
Confirm the choice by closing the Channel adjustment dialog box.
The new filtering value then appears in the box corresponding to the selected channel in the Filter column of the channel zone.
TLX DS 57 PL7 xxE
209
Debugging
Aligning an input channel
At a Glance
Procedure
The procedure for aligning an input is used to add an offset value to the value measured by this input, in order to compensate for a sensor shift (e.g. to adjust to 0
°C the measurement of a Pt100 probe immersed in a bucket of ice for adjustment).
The table below shows the procedure for aligning an input channel:
Step Action for a channel
1 Access the debug screen.
2 Select the channel to be aligned in the channel zone and double-click on the corresponding box in column A .
3 Click on the box in the Target value field in the Alignment dialog box and enter the new alignment value.
4 Confirm this new alignment value by clicking on the OK button.
Result : The new offset value is applied and appears in column A .
Channel 3 adjustments
Display
Range +/- 10V
-10000 to 10000
Forcing
0 Force
Unforce
Filtering
0 Confirm
Align
Target value
1964
Confirm
Offset
0
Reset
5 Close the Channel adjustment dialog box.
Notes
Note: When the alignment offset is modified by program with the WRITE_PARAM instruction (see
Shared task functions manual), its value must be between +1500 and –1500.
Note: The calculated offset value does not take into account the "keyboard" commands given by the user. Running the program (RUN), which also controls the alignment, simultaneously, renders the offset invalid.
210
TLX DS 57 PL7 xxE
Debugging
Modifying the fallback value of an output
At a Glance
Procedure
When an output is configured in Fallback mode, the corresponding button is valid but the Fallback/Maintain information is grayed out, because the fallback mode cannot be modified in Debugging mode. However, it is possible to change the fallback value by entering a new value.
The table below summarizes the procedure for modifying the fallback value:
Step
1
2
3
Action for a channel
Access the debug screen.
Select the channel in the channel zone and double-click in the corresponding box in the Fallback column.
Click on the box in the Value field in the Fallback dialog box and enter the new fallback value.
The value must be: l For TSX ASY 800 and ASY 410 software version modules < 1.0, l between -10000 and 10000 in range 10 V, l l between 0 and 10000 in ranges 0..20 mA and 4..20 mA,
For TSX ASY 800 and ASY 410 software version modules > 1.0, l l between -10500 and 10500 in range 10 V, between 0 and 10500 in ranges 0..20 mA and 4..20 mA.
TLX DS 57 PL7 xxE
211
Debugging
Notes
Step
4
Action for a channel
Confirm this new value by clicking on the OK button.
Result : The new fallback value is applied and appears.
TSX AEY 410 [RACK 0 POSITION 4]
Debugging
Designation: 16I ANA. HIGH LEVEL Version: 0.4
Channel
0
1
2
3
Symbol
Global unforcing
F ERR
DIAG.
DIAG.
DIAG.
DIAG.
0
0
0
0
Value
RUN ERR
0
0
0
0
Fallback
IO DIAG ...
Display
Range +/-10V
-100000 to 10000
Forcing
0 Force
Unforce
Fallback
Fallback Maintain
Value:
0 Confirm
5 Close the Channel adjustment dialog box.
Note: The fallback value can also be modified by program, with the
WRITE_PARAM instruction (see Shared task functions manual).
Note: The fallback value cannot be modified on TBX modules.
212
TLX DS 57 PL7 xxE
Debugging
Calibration function for an analog module
Introduction This function is only accessible in online mode. It is used to recalibrate the channels of each analog input module of an application.
Calibration is used to correct the long-term module drift. It can also be used to optimize the precision of the measurement at ambient temperatures other than 25 degrees C.
Procedure Procedure for accessing the Calibration function:
Step Action
1 Double-click on the module in hardware configuration.
Result : The Debugging screen appears.
2 In the drop-down menu at the top left, select the Calibration function to make the Calibration screen appear.
TSX AEY 1600 [RACK 0 POSITION 9]
Calibration
Configuration
Debugging
Calibration
HIGH LEVEL
RUN ERR IO DIAG...
TLX DS 57 PL7 xxE
213
Debugging
Introduction to the calibration screen
This screen displays the state of each of its channels in real-time and enables their calibration to be accessed.
Screen view:
1
2 Calibration
Designation: 16I ANA. HIGH LEVEL
3
RUN ERR IO DIAG ...
4
12
13
14
15
8
9
10
11
1
2
3
4
5
6
7
0
Channel Symbol F ERR
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
DIAG..
Value
-258
-198
-188
694
-177
-177
-182
-182
-263
-204
-188
-182
-177
-177
-172
-188
Different functions of the calibration screen
3
4
Address Function
1 This panel gives the module catalogue reference and slot in the PLC (rack and position).
2 This command zone displays the function in progress (Calibration function) and is used to select the Configuration or Debugging function from a dropdown list box. By activating the Calibration checkbox, the calibration of the channels (TSX AEY 800 / 810 / 1600, TBX AES 400, TBX AMS 620) or of the selected channel (TSX AEY 414) can be accessed.
This zone at "module" level contains the module name and version.
This zone at "channel" level displays the ERR information for each channel: all the measurements are invalid; filtering and alignment are inhibited.
214
TLX DS 57 PL7 xxE
Use
List
Debugging
For TSX AEY 800 / 810 / 1600, TBX AES 400 and TBX AMS 620 modules, only channel 0 needs to be calibrated for all the module channels to be calibrated.
For the TSX AEY 1614 module, only channels 0 and 8 need to be calibrated for all the module channels to be calibrated.
For the TSX AEY 414 module, general channel calibration must be performed.
The different calibration procedures are described in each section referring to input l l l l l modules: l TSX AEY 800 and TSX AEY 1600 (See Calibration of the TSX AEY 800 and TSX
TSX AEY 810 (See
Calibrating the TSX AEY 810 module, p. 42)
TSX AEY 1614 (See
TSX AEY 414 (See
TBX AES 400 (See
TBX AMS 620 (See
Calibrating the TSX AEY 1614 module, p. 53)
Calibrating the TBX AES 400 module, p. 101)
Calibrating the TBX AMS 600 module, p. 115)
TLX DS 57 PL7 xxE
215
Debugging
216
TLX DS 57 PL7 xxE
Tải xuống
Quảng cáo