System objects. Schneider Electric PL7 Micro/Junior/Pro - Detailed
Реклама
Реклама
System objects
3
Introduction
Aim of this section
What's in this
Chapter?
This section describes all the PL7 language system bits and system words
This Chapter contains the following Sections:
Section
3.1
3.2
Topic
System Bits
System words
Page
TLX DR PL7 xxE
281
System objects
3.1
System Bits
Introduction
Aim of this subsection
What's in this
Section?
This chapter describes the PL7 language system bits.
This Section contains the following Maps:
Topic
System bit introduction
Description of system bits %S0 to %S7
Description of System Bits %S8 to %S16
Description of system bits %S17 to %S20
Description of system bits %S21 to %S26
Description of system bits %S30 to %S59
Description of system bits %S60 to %S69
Description of System Bits %S70 to %S92
Description of system bits %S94 to %S99
Description of system bits %S100 to %S119
Page
282
TLX DR PL7 xxE
System objects
System bit introduction
General The TSX 37 and TSX 57 PLCs use %Si system bits which indicate the state of the
PLC, or they can be used to operate its functioning.
This bits can be tested in the user program to detect any function event before starting a set processing procedure. Some bits must be reset to their initial or usual state by program. However, the system bits, which are reset to their initial or usual state by the system, must not be done so by program or by the terminal.
TLX DR PL7 xxE
283
System objects
Description of system bits %S0 to %S7
In-depth description
Bit Function
Description of system bits %S0 to %S7
%S0
%S1
%S4
Cold start
Warm restart
Time base
10 ms
Description
Normally on 0, this bit is set on 1 by: l l l l l loss of data on power restart (battery fault), the user program, the terminal, cartridge uploading, pressing on the RESET button.
This bit goes to 1 during the first complete cycle. It is reset to 0 before the following cycle.
(Operation (("Operating Modes" - Reference Manual
Volume 1)))
Normally on 0, this bit is set on 1 by: l l l power restart with data save, the user program, the terminal.
It is reset to 0 by the system at the end of the first complete cycle and before output is updated.
(Operation (("Operating Modes" - Reference Manual
Volume 1)))
An internal timer regulates the change in status of this bit.
It is asynchronous in relation to the PLC cycle.
Graph :
Initial state
0
0
-
TSX37 TSX57
YES
YES
YES
YES
YES
YES
%S5
%S6
%S7
5ms 5ms
Time base
100 ms
Idem %S4
Time base 1 s Idem %S4
Time base
1 mn
Idem %S4
-
-
-
YES
YES
YES
YES
YES
YES
284
TLX DR PL7 xxE
System objects
Description of System Bits %S8 to %S16
Detailed
Description
Bit
%S8
%S9
%S9
%S10
%S11
%S13
%S15
Description of System Bits %S8 to %S16
Function Description
Wiring test Normally set to 1, this bit is used to test the wiring when the TSX 37 is in "non-configured" state.
l l at 1: the outputs are forced to 0, at 0: the outputs can be modified from a configuration terminal.
Setting outputs to 0
Normally at 0, can be set to 1 by the output program or from the terminal: l at 1: all discrete and analog outputs are set to 0, whatever the fallback mode configured for each module, l at 0: the outputs are updated normally.
Outputs on all buses to fallback
I/O fault
Normally at 0, can be set to 1 by the program or from the terminal: l at 1: all Discrete and Analog outputs set to fallback position (0 or 1) depending on the choice made in the l configuration, at 0: the outputs are updated normally.
Normally at 1. Is set to 0 when an I/O fault is detected on an in-rack module or a remote module (FIPIO) (noncompliant configuration, exchange fault, hardware fault).
The bit %S10 is reset to 1 when the fault disappears.
Watchdog overflow
First cycle after switching to
RUN
Normally at 0, is set to 1 by the system during the first cycle after the PLC switches to RUN.
Character string fault
Normally at 0, is set to 1 by the system when the execution time of a task exceeds the maximum execution time
(watchdog) declared in the configuration. A watchdog overflow causes the PLC to switch to STOP and the application stops in error state (ERR LED flashing).
Normally set to 0, is set to 1 when the destination zone for a character string transfer is not of sufficient size to receive this character string. This bit must then be reset to
0 by the user. Each task manages its own %S15 bit.
Initial state
1
0
0
1
0
-
0
TSX37 TSX57
YES
YES
NO
YES
YES
YES
YES
NO
NO
YES
YES
YES
YES
YES
TLX DR PL7 xxE
285
System objects
Bit
%S16
Function
I/O task fault
Description
Normally at 1, is set to 0 by the system when a fault occurs on an I/O module that is located in-rack or remotely on a
FIPIO network and that has been configured in the task.
This bit must be reset to 1 by the user. Each task manages its own %S16 bit.
Initial state
1
TSX37 TSX57
YES YES
286
TLX DR PL7 xxE
System objects
Description of system bits %S17 to %S20
In-depth description
Bit
%S17
%S18
%S19
Description of system bits %S17 to %S20
Function Description
Bit outputted on shifting or a arithmetic report.
Normally on 0, this bit is set on 1 by the system: l during a shift operation containing the state of the last bit, l overshooting in unsigned arithmetic (dates).
This bit must be reset on 0 by the user.
Overrun or arithmetic error
Normally on 0, it is set on 1 should a capacity overload l l l l l occur during an operation on 16 bits, either through: l a result above +32767 or less than –32768 in single length, l a result above +2,147,483,647 or less than -
2.147.483.648 in double length, l a result above +3.402824E+38 or less than –
3.402824E+38, in floating point (software version >
1.0), capacity overload in DCB, dividing by 0, the root of a negative number, forcing a non-existent step onto a drum.
stacking up an already full register, emptying an already empty register.
It must be tested by the user program after each operation where there could be an overload risk, then reset to 0 by the user if there is indeed an overload. Each task generates its own %S18 bit.
Task period overrun
(periodical scanning)
Normally on 0, this bit is set on 1 by the system in the event of a time period overrun (ie. task execution time is greater than the period defined by the user in the configuration or programmed into the %SW word associated with the task).
The user must reset this bit to 0.
Each task manages its own %S19 bit.
Initial state
0
0
0
TSX37 TSX57
YES
YES
YES
YES
YES
YES
TLX DR PL7 xxE
287
System objects
Bit
%S20
Function Description
Index overflow Normally on 0, it is set on 1 when the address of the indexed object becomes less than 0 or exceeds the number of objects declared in the configuration.
It must be tested by the user program after each operation where there could be an overload risk, then reset to 0 if there is indeed an overload. Each task generates its own
%S20 bit.
Initial state
0
TSX37 TSX57
YES YES
288
TLX DR PL7 xxE
System objects
Description of system bits %S21 to %S26
In-depth description
Bit
%S21
%S22
%S23
%S24
%S26
%21 to %S26 system bits associated with Grafcet
Function Description
Initialization
Setting Gracfet to 0
Normally on 0, this bit can be set on 1 by the program only during preliminary processing.
On 1, it disables all Grafcet steps. It is reset to 0 by the system after all has been taken into account at the end of the preliminary processing.
Freezing
Grafcet
This bit is managed by the user to initialize Grafcet
(preferably set on 1 for preliminary processing). It is repositioned to 0 by the system after Grafcet has been initialized (ie. after preliminary processing during evaluation of the new Grafcet state). Initializing Grafcet involves disabling all active steps and enabling the initial steps. On a cold start, this bit is set on 1 by the system during preliminary processing.
Setting macrosteps to 0
Normally on 0, setting %S23 onto 1 preserves Grafcet in the state is it at the time. Whatever the value of downstream transition conditions, Grafet does not change.
The freeze is maintained as long as the %S23 bit is on 1.
The bit is managed by the user program, and is positioned on 1 or 0 only during preliminary processing.
Normally on 0, setting %S24 to 1 will zero the macro-steps chosen in a 4 word table %SW22 to %SW25 system. It is reset to 0 by the system after all has been taken into account at the end of the preliminary processing.
Table overrun
(steps/ transitions)
Normally on 0, this bit is set on 1 by the table system when the enabling possibilities (steps or transitions) have been overrun or when an invalid chart has been executed (eg sending a destination to a step which does not belong to a chart). An overrun causes the PLC to go to STOP.
The user must reset this bit to 0 on initializing the terminal.
Initial state
0
0
0
0
0
TSX37 TSX57
YES
YES
YES
NO
YES
YES
YES
YES
YES
YES
TLX DR PL7 xxE
289
System objects
Description of system bits %S30 to %S59
In-depth description
Bit
%S30
%S31
%S38
%S39
%S4 0 to
%S47
%S49
%S50
%S51
Description of system bits %S30 to %S59
Function Description
Activating/ deactivating the master task
Normally on 1, the user setting the bit to 0 disables the master task.
Fast task activation
Enabling/ inhibiting events
Normally on 1, the user setting the bit to 0 disables the fast task.
Normally on 1, the user setting the bit to 0 causes events to be inhibited.
Saturation of event processing
I/O tripped static (racks) fault
This bit is set on 1 by the system to indicate that one or several events cannot be processed following saturation of the queues.
The user must reset this bit to 0.
Bits %S40 to %S47 are assigned to rack 0 to 7 respectively. Normally on 1, each bit is set on 0 following a corresponding rack input/output fault.
The bit is reset on 1 when the fault disappears.
Reactivating outputs
Updating time and date via words %SW50 to 53
Normally on 0, this bit can be set on 1 or 0 by the program or the terminal.
l on 0: accesses date and time by reading words via system words %SW50 to 53, l on 1: updates date and time by writing system words
%SW50 to 53.
Time loss in real time clock
Normally on 0, this bit can be set on 1 by the user for a request to reactivate all IOs, after the appearance of a static outputs fault triggered by an overcurrent or a shortcircuit.
This system-managed bit on 1 indicates that the real-time clock is absent or that its system words are meaningless.
In this case the clock must be reset to the correct time.
Initial state
1
1
1
0
1
0
0
0
TSX37 TSX57
YES
YES
YES
YES
NO
YES
YES
YES
YES
YES
YES
YES
YES
NO
YES
YES
290
TLX DR PL7 xxE
Bit
%S59
System objects
Function
Updating time and date via word %SW59
Description
Normally on 0, this bit can be set on 1 or 0 by the program date or the terminal.
l on 0: the system does not manage the system word
%SW59, l on 1: the system manages edges on the words
%SW59 to adjust the date and current time (by increment).
Initial state
0
TSX37 TSX57
YES YES
TLX DR PL7 xxE
291
System objects
Description of system bits %S60 to %S69
In-depth description
Bit
%S60
%S66
%S67
%S68
%S69
Description of system bits %S60 to %S69
Function Description
Voluntary switching command system bit which controls voluntary switching on implementation of a back-up architecture (see usage in the "Warm Standby Premium"). This bit can be reset on 0 either by the user or by the application.
Managing LED battery
Normally on 0, this bit can be set on 1 or 0 by the program or the terminal. It is used to activate/deactivate the LED battery , in the event of the absence of or an error in the backup stack.
l state 0: the LED battery is lit when the backup stack is absent or contains a fault, l state 1: the LED battery is always off.
On a cold start, %S66 is reset to 0 by the system.
State of cartridge cell
State of processor stack
Display of user data on PLC display panels
This bit is used to control the functioning of the RAM cartridge memory backup cell : l l at 0: cell present and operational at 1: cell absent or non-operational
This bit is used to control the functioning of the backup cell for data and programming in RAM memory.
l l at 0: cell present and operational at 1: cell absent or non-operational
Normally on 0, this bit can be set on 1 or 0 by the program or the terminal.
l l at 0: "Word" mode deactivated on displays, at 1: "Word" mode activated on displays.
Initial state
0
0
-
-
0
TSX37 TSX57
NO
YES
YES
YES
YES
YES
NO
YES
YES
NO
292
TLX DR PL7 xxE
System objects
Description of System Bits %S70 to %S92
Detailed
Description
Bit
%S70
%S73
%S74
%S75
%S80
%S90
%S92
Description of System Bits %S70 to %S92
Function Description
Data update on
AS-i bus or
TSX Nano connection
This bit is set to 1 by the system at the end of each TSX
Nano connection cycle or AS-i bus scanning cycle. When powered up, it indicates that all the data has been updated at least once and that they are therefore significant. This bit is reset to 0 by the user.
Change to protected mode on AS-i bus
Save current configuration on AS-i bus
Normally at 0, this bit is set to 1 by the user to change to protected mode on the AS-i bus. Bit %S74 must first be at
1. This bit will only be used in wiring tests, with no application in the PLC.
Normally at 0, this bit is set to 1 by the user to save the current configuration on the AS-i bus. This bit will only be used in wiring tests, with no application in the PLC.
Data Archiving memory card battery test
Normally at 1 (battery OK), this bit is set to 0 when the battery is low or faulty.
Reset message counter
Normally at 0, this bit can be set to 1 by the user to reset to 0 the message counters %SW80 to %SW86.
Update common words
Updated every second. This bit can be set to 0 by the program or by the terminal.
Change to communication function measurement mode
Normally at 0, this bit can be set to 1 by the user to put the communication functions in performance measurement mode. The communication functions timeout parameter then displays the return exchange time in tens of ms (if this time <10s, otherwise not significant).
Initial state
0
0
0
1
0
0
0
TSX37 TSX57
YES
YES
YES
NO
YES
YES
YES
YES
NO
NO
YES
YES
NO
YES
TLX DR PL7 xxE
293
System objects
Description of system bits %S94 to %S99
In-depth description
Bit
%S94
%S95
%S96
%S97
%S98
%S99
Description of system bits %S94 to %S99
Function Description
Saving DFB adjustments
Normally on 0, this bit can be set on 1 by the user to save the adjustment values of user function blocks.
Restoring DFB adjustments
Validity of application program saves
Validity of
%MW saves
Normally on 0, this bit can be set on 1 by the user to restore the adjustment values of user function blocks.
l l on 0: application program saves are invalid, on 1: application program saves are valid,
This bit can be read at any time ( either by the program or while adjusting), in particular after a cold start or a warm restart.
It is significant with regard to a PL7-effected Backup application within the internal Flash EPROM.
l l on 0: %MW saves are invalid, on 1: %MW saves are valid,
This bit can be read at any time ( either by the program or while adjusting), in particular after a cold start or a warm restart.
Deport of TSX
SAZ 10 module button
Normally on 0, this bit is managed by the user: l l on 0: TSX SAZ 10 module button is enabled, on 1: TSX SAZ 10 button is replaced by a Discrete input (Word %SW98 (See Description of system words
Deport of display block button
Normally on 0, this bit is managed by the user: l l on 0: centralized display block button is enabled, on 1: centralized display block button is replaced by a
Discrete input (Word %SW99 (See Description of
system words %SW98 to %SW109, p. 312 )).
Initial state
0
0
-
-
0
0
TSX37 TSX57
NO
NO
YES
YES
YES
YES
YES
YES
NO
NO
NO
NO
294
TLX DR PL7 xxE
System objects
Description of system bits %S100 to %S119
In-depth description
Bit
%S100
%S101
%S102
%S118
%S119
Description of system bits %S100 to %S119
Function Description
Protocol on terminal port
This bit is set on 0 or 1 by the system according to the state of the INL/DPT shunt on the console.
l if the shunt is absent (%S100=0), then the master
UNITELWAY protocol is used, l if the shunt is present (%S100=1) then the protocol used is the one indicated by the application configuration.
Configured diagnostics buffer
This bit is set on 1 by the system when the diagnostics option has been configured – a diagnostics buffer aimed at storing errors found by DFB diagnostics is then reserved.
This bit is set on 1 by the system when the buffer that receives DFB errors is full.
Full diagnostics buffer
General FIPIO
I/O fault
Normally on 1, this bit is set to 0 by the system when a fault appears on a device connected to the FIPIO bus.
This bit is reset to 1 by the system when the fault disappears.
General I/O on rack fault
Normally on 1, this bit is set to 0 by the system when a fault appears on an I/O module placed in one of the racks.
This bit is reset to 1 by the system when the fault disappears.
Initial state
-
-
-
1
1
TSX37 TSX57
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
TLX DR PL7 xxE
295
System objects
3.2
System words
Introduction
Aim of this subsection
What's in this
Section?
This sub-section describes the PL7 language system words.
This Section contains the following Maps:
Topic
Description of system words %SW0 to %SW11
Description of system words %SW12 to %SW18
Description of system words %SW20 to %SW25
Description of system words %SW30 to %SW35
Description of system words %SW48 to %SW59
Description of system words %SW60 to %SW62
Description of system words %SW63 to %SW65
Description of system words %SW66 to %SW69
Description of system words %SW80 to %SW89
Description of system words %SW96 to %SW97
Description of system words %SW98 to %SW109
Description of system word %SW116
Description of system words %SW124 to %SW127
Description of system words %SW128 to %SW143
Description of system words %SW144 to %SW146
Description of system words %SW147 to %SW152
Description of system word %SW153
Description of system word %SW154
Description of system words %SW155 to %SW162
Page
296
TLX DR PL7 xxE
System objects
Description of system words %SW0 to %SW11
In-depth description
Words
%SW0
%SW1
%SW8
%SW9
%SW10
%SW11
Description of system words %SW0 to %SW11
Function
Master task scanning period
Fast task scanning period
Acquisition of task input monitoring
Description
The user program or the terminal modify the duration of the master task defined in configuration. The duration is expressed in ms (1.255 ms) %SW0=0 in cyclic operation.
On a cold restart: it takes on the value defined by the configuration.
The user program or the terminal modify the duration of the fast task as defined in configuration.
The duration is expressed in ms (1.255 ms)
On a cold restart: it takes on the value defined by the configuration.
Normally on 0, this bit can be set on 1 or 0 by the program or the terminal.
It inhibits the input acquisition phase of each task.
l %SW8:X0 =1 assigned to MAST task: outputs linked to this task are no longer guided.
l %SW8:X1 =1 assigned to FAST task: outputs linked to this task are no longer guided.
Monitoring of task output update
Normally on 0, this bit can be set on 1 or 0 by the program or the terminal.
Inhibits the output updating phase of each task.
l %SW9:X0 =1 assigned to MAST task: outputs linked to this task are no longer guided.
l %SW9:X1 =1 assigned to FAST task: outputs linked to this task are no longer guided.
First cycle after cold start
If the bit for the current task is on 0, this indicates that the first cycle is being carried out after a cold start.
l l
%SW10:X0: is assigned to the MAST Master task
%SW10:X1: is assigned to the FAST fast task
Watchdog duration Reads the duration of the watchdog as set in configuration. It is expressed in ms (10…500 ms).
Management
User
User
User
User
System
System
TLX DR PL7 xxE
297
System objects
CAUTION
Matters relating to system words %SW8 and %SW9:
Caution: outputs for modules connected to the X bus switch automatically to fallback mode. Outputs for devices connected to the
FIPIO bus remain as they were before the bit was set to 1.
Failure to observe this precaution can result in injury or equipment damage.
298
TLX DR PL7 xxE
System objects
Description of system words %SW12 to %SW18
In-depth description
Words
%SW12
%SW13
%SW17
%SW18
Description of system words %SW12 to %SW18
Function
Terminal port UNI-
TELWAY address
Description
UNI_TELWAY address of terminal port (in slave mode) as defined in configuration and loaded into this word on cold start.
Main address of the station
Indicates for the main network: l l the station number (least significant byte) from 0 to 127 the network number (most significant byte) from 0 to 63
(micro-switch value on PCMCIA card)
Fault status on floating operation
Absolute time counter
On detection of a fault in a floating arithmetic operation, bit
%SW18 is set to 1 and %SW17 fault status is updated according to the following coding : l l
%SW17:X0 = Invalid operation / result is not a number
%SW17:X1 = Non-standardized operand / result is acceptable l l l l
%SW17:X2 = Divided by 0 / result is infinity
%SW17:X3 = Overflow / result is infinity
%SW17:X4 = Underflow / result is 0
%SW17:X5 = Result is not precise
This word is reset to 0 by the system on cold start, and also by the program for re-usage purposes.
This double word is used to calculate duration.
It is incremented every 1/10th of a second by the system
(even when PLC is on STOP). It can be read and written by the user program or by the terminal.
Management
System
System
System
User
System
User
TLX DR PL7 xxE
299
System objects
Description of system words %SW20 to %SW25
In-depth description
Words
%SW20
%SW21
%SW22 to
%SW25
Description of system words %SW20 to %SW25 (associated with Grafcet)
Function
Validity table for
Gracet transitions
Description
Grafcet activity level This word contains the number of active steps to be enabled or disabled for the current cycle. It is updated by the system on each change in the chart.
This word contains the number of valid transitions to be enabled and disabled for the current cycle. It is updated by the system on each change in the chart.
Macro-step clearing table
Each bit in this table corresponds with a macro-step where
%SW22:X0 is for XM0 … %SW25:X16 is for XM63
Macro-steps, for which the associated bit in this table is on 0, will be zeroed when bit %S24 is set on 1.
Management
System
System
User
300
TLX DR PL7 xxE
System objects
Description of system words %SW30 to %SW35
In-depth description
Words
%SW30
%SW31
%SW32
%SW33
%SW34
%SW35
Description of system words %SW30 to %SW35
Function
Master task execution time
Maximum master task execution time
Minimum master task execution time
Description
Indicates the execution time of the last master task cycle (in ms).
Indicates the longest master task execution time from the last cold start (in ms).
Fast task execution time
Maximum fast task execution time
Minimum fast task execution time
Indicates the shortest master task execution time from the last cold start (in ms).
Indicates the execution time of the last fast task cycle (in ms).
Indicates the longest fast task execution time from the last cold start (in ms).
Indicates the shortest fast task execution time from the last cold start (in ms).
Management
System
System
System
System
System
System
Note: More detail on execution time : this is the time elapsed between the beginning (input acquisition) and the end (output update) of a scanning period. This time includes the processing of event tasks and fast tasks, as well as processing console requests.
TLX DR PL7 xxE
301
System objects
Description of system words %SW48 to %SW59
In-depth description
Words
%SW48
%SW49
%SW50
%SW51
%SW52
%SW53
%SW54
%SW55
%SW56
%SW57
%SW58
%SW58
Description of system words %SW48 to %SW59
Function Description
Number of Events Indicates the number of events processed since the last cold start (in ms). This word can be written by a program or a terminal.
Dater function (1) System words containing date and current time (in BCD): l %SW49: day of the week (1 for Monday through to 7 for
Sunday).
l l l l
%SW50: Seconds (SS00)
%SW51: Hours and Minutes (HHMM)
%SW52: Month and Day (MMDD)
%SW53: Year (YYYY)
These words are manages by the system when bit %S50 is on
0.
These words can be written by the user program of by the terminal when the bit %S50 is set on 1 (See Description of
system bits %S30 to %S59, p. 290 ).
Dater function (1) System words containing date and time of the last power fault or PLC stop (in BCD): l l l l l
%SW54: Seconds (00SS)
%SW55: Hours and Minutes (HHMM)
%SW56: Month and Day (MMDD)
%SW57: Year (YYYY)
%SW58: most significant byte containing the day of the week (1 for Monday through to 7 for Sunday).
Last stop code The least significant byte contains the code for the last stop: l l l l l
1 = switch by the terminal from RUN to STOP
2 = stop caused by software fault (PLC task overrun)
4 = power outage
5 = stop caused by hardware fault
6 = stop on HALT instruction
Management
System
User
System
User
System
System
302
TLX DR PL7 xxE
Words
%SW59
Function
Adjusting the current date
System objects
Description
Contains two 8 bit series to adjust the current date.
The action is always performed on the rising edge of the bit.
This word is enabled by bit %S59.
Illustration: bits
2
3
4
0
1
5
6
7
+
8
9
10
11
12
13
14
15
-
Day of the week
Secondes
Minutes
Hours
Days
Months
Years
Centuries
Management
User
Note: (1) Only on TSX 37-21/22 and TSX 57 PLC
TLX DR PL7 xxE
303
System objects
Description of system words %SW60 to %SW62
In-depth description
Words
%SW60
Description of system words %SW60 to %SW61 specific to Warm Standby Premium diagnostics.-
Function
Backup PLC diagnostics
Description l l l l l
Diagnostics specific to the backup for a local PLC (Warm
Standby Premium) l l
Significance of the different bits for the word %SW60: l l l
%SW60:X0=1 indicates that the PLC is "Normal"
%SW60:X1=1 indicates that the PLC is in "Backup"
%SW60:X3=0 indicates an I/O fault in FIPIO while PLC is
"Normal", it is the image of bit %S118 l %SW60:X4=0 indicates a rack I/O fault; it is the image of bit %S119 l %SW60:X5=1 indicates a fault has been detected by the self-tests in at least one of the TSX ETY 210 l %SW60:X7=1 indicates a serious fault in the FIPIO network, such as a short circuit or a disconnected terminal block l %SW60:X8=1 indicates a fault in the TSX ETY 110 module used for inter-PLC links l %SW60:X9=1 indicates an inter-PLC communication fault
– it is not possible to recover dual-PLC diagnostics
%SW60:X10 is a reserved bit
%SW60:X11=1 indicates that the Backup PLC is unsuitable to be a "Normal" PLC. This information is generated only in a Normal PLC and has no significance in a Backup PLC.
%SW60:X12=0 indicates that the PLC is station A
%SW60:X12=1 indicates that the PLC is station B
%SW60:X13=1 indicates PLC Run mode
%SW60:X14=1 indicates PLC Stop mode
%SW60:X15=1 indicates PLC Halt mode
Management
System
304
TLX DR PL7 xxE
Words
%SW61
Function
Backup PLC diagnostics
System objects
Description l l
Significance of the different bits for the word %SW61: l %SW61:X0=1 indicates there is a problem on the Data
Base exchange via the Ethway inter-PLC link. This information is only generated for a Normal PLC in Run mode.
%SW60:X1=1 indicates that the PLC is in "Backup"
%SW61:X1=1 indicates there is a problem in communication between a TSX ETY 210 client TCP-IP module third party device. This information is generated only for a Normal PLC in Run mode. When this bit changes to 1, a switch is caused if the Backup PLC can become a l
Normal PLC.
%SW60:X4=0 indicates a rack I/O fault; it is the image of l bit %S119
%SW60:X5=1 indicates a fault has been detected by the l l l self-tests in at least one of the TSX ETY 210
%SW61:X2 is a reserved bit
%SW61:X3 is a reserved bit
%SW61:X4=1 indicates the first correct Data Base l exchange
%SW61:X5=1 indicates that the processor has been
Stopped by the backup function. Diagnostics is given in the word %MWp.14.2
l l
%SW61:X6 is a reserved bit
%SW61:X7=0 indicates a problem in configuration of operation of the backup function. Diagnostics is given in the word %MWp.14.2
l %SW61:X7=1 indicates that the backup function has been correctly configured l %SW61:X8 to %SW61:X15 are reserved bits p: designates the processor slot
Management
System
TLX DR PL7 xxE
305
System objects
Words
%SW62
Function Description
Display of the arbiter function for bus and producer / consumer of FIPIO bus.
The least significant byte indicates the state of the producer / consumer function,
The most significant byte indicates the state of the bus arbiter function (BA)
Byte value: l l
16#00: the function does not exist (no FIPIO application),
16#07: the function currently in STOP BA (STOP BA order is sent and the command has not finished).
l 16#0F: the function currently in RUN BA (RUN BA order is sent and the command has not finished).
l 16#70: the function has been initialized but is not operational (in STOP BA mode), l 16#F0: the function is currently being executed normally
(in RUN BA mode). BA),
Management
System
306
TLX DR PL7 xxE
System objects
Description of system words %SW63 to %SW65
Detailed description
Words
%SW63 to
%SW65
Description of system words %SW63 to %SW65 specific to Warm Standby Premium diagnostics.
Function
Exchange of diagnostics words between PLCs
Description
Dual-PLC backup diagnostics is available in the words
%SW63 to %SW65.
Normal PLC words %SW63, %SW64 and %SW65 are respective to Backup PLC words %SW60, %SW61 and
%SW62. Similarly, Backup PLC words %SW63, %SW64 and
%SW65 are respective to Normal PLCwords %SW60,
%SW61 and %SW62.
Illustration
Management
System
Normal
PLC
Backup
PLC
Standart diagnostic
PLC backup diagnostic
Dual PLC backup diagnostic
%SWxx
%SW60, %SW61,
%SW62
%SW63, %SW64,
%SW65
%SW66 Warm Standbyl
Premium global diagnostic
%SWxx
%SW60, %SW61,
%SW62
%SW63, %SW64,
%SW65
%SW66
These words are exchanges via the Ethway inter-PLC link
(TSX ETY 110 module)
TLX DR PL7 xxE
307
System objects
Description of system words %SW66 to %SW69
Detailed description
Words
%SW66
Description of system word %SW66 for Warm Standby Premium diagnostics
Function Description Management
Global diagnostics for Warm Standby
Premium architecture
In each of the PLCs, global diagnostics of Warm Standby
Premium are created from the backup diagnostics of the two
PLCs. These global diagnostics are stored in %SW66. Its bits have the following significance :
System l l l l l l l l l l l
%SW66:X0=0 indicates Warm Standby Premium downgraded functioning.
%SW66:X0=1 indicates Warm Standby Premium nominal functioning.
%SW66:X1=1 indicates that PLC A is a Normal PLC
%SW66:21=1 indicates that PLC B is a Normal PLC
%SW66:X3=1 indicates a break-down in inter-PLC communication
Information on PLC A
%SW66:X4=1 indicates a serious FIPIO network fault on PLC A
%SW66:X5=1 indicates that PLC A is on STOP
%SW66:X6=1 indicates that PLC A is on Halt
%SW66:X7=1 indicates an Ethernet TCP-IP communication breakdown in PLC A (module TSX l l l l
ETY 210 or client function) l l
%SW66:X8=1 indicates a breakdown on at least one of the racked modules in PLC A
%SW66:X9=1 indicates a breakdown on at least one of FIPIO devices in PLC A
Information on PLC B
%SW66:X10=1 indicates a serious FIPIO network fault on PLC B
%SW66:X11=1 indicates that PLC B is on STOP
%SW66:X12=1 indicates that PLC B is on Halt
%SW66:X13=1 indicates an Ethernet TCP-IP communication breakdown in PLC B (module TSX
ETY 210 or client function)
%SW66:X14=1 indicates a breakdown on at least one of the racked modules in PLC B
%SW66:X15=1 indicates a breakdown on at least one of FIPIO devices in PLC B
Note: %SW66 X4 to %SW66 X15 information is not significant if an inter-PLC communication breakdown is present (%SW66 X3 = 1)
308
TLX DR PL7 xxE
Words
%SW67
%SW68
%SW69
Time base used by
EF Tempo.
These words contains a time base used by EF Tempo. It is transferred from the Normal PLC to the Backup PLC for updating and synchronisation.
System objects
Description of system words %SW67 to %SW69 for Warm Standby Premium diagnostics.
Function
Network address and dual-PLC station address
Description
This word contains the network address and the dual-PLC station address, which can be used to set up inter-PLC communication. This word must be displayed in hexadecimal for interpretation in the following manner :
MSB network address
LSB station address
Management
System
System
TLX DR PL7 xxE
309
System objects
Description of system words %SW80 to %SW89
Detailed description
Words
%SW80
%SW81
%SW82
%SW83
%SW84
%SW85
%SW86
%SW87
%SW88
%SW89
Description of system words %SW80 to %SW89
Function
Telegram and message management
Managing communication flows (1) l l l l
Description l l l l
%SW80: No. of messages sent by the system to the terminal port.
%SW81: No. of messages received by the system from the terminal port.
%SW82: No. of messages sent by the system to the
PCMCIA module.
%SW83: No. of messages received by the system from the PCMCIA module.
%SW84: No. of telegrams sent by the system.
%SW85: No. of telegrams received by the system.
%SW86: No. of messages refused by the system.
l l
%SW87: Number of requests processed by synchronous server per master (MAST) task cycle.
%SW88: Number of requests processed by asynchronous server per master (MAST) task cycle.
%SW89: Number of requests processed by server functions (immediately) per master (MAST) task cycle.
Management
System
User
System
Note: (1) Only for TSX/PCX/PMX 57 PLC
310
TLX DR PL7 xxE
System objects
Description of system words %SW96 to %SW97
Detailed description
Words
%SW96
%SW97
These words only exist in TSX 37
Description of system words %SW96 to %SW97
Function
Command and/or diagnostics for save/ restore function of application program and %MW l l l
Description l l l l l l bit 0: requests a send to the save zone This bit is enabled on the rising edge. It is reset to 0 by the system as soon as the restoration of the rising edge has been taken into account.
bit 1: when this bit is on 1, this indicates that the save function has finished. This bit is reset to 0 as soon the rising edge on bit 0 has been taken into account.
bit 2: save report: l l
0 -> save without error,
1 -> error while saving.
bits 3 to 5: reserved.
bit 6: validity of application program saves (idem %S96).
bits 8 to 15: this bit is only significant is the report bit is on
1 (bit 2 = 1 means an error while saving): l 1 -> number of %MW to be saved is greater than the number of %MW that are configured l l
2 -> number of %MW to be saved is greater than 1000 or less than 0,
3 -> number of %MW to be restored is greater than the number of %MW that are configured l 4 -> size of application in internal RAM greater than 15
Kwords (remember that saving %MW is always associated with saving an application program in the internal Flash EPROM),
5 -> facilities are not allowed in RUN,
6 -> presence of a Backup cartridge in the PLC,
7 -> write fault in the Flash EPROM.
Number of %MW to be saved
Parameterizes the number of %MW to be saved.
When this word is between 1 and 1000, the first 1 to 1000
%MW are sent to the internal Flash EPROM.
When this word is 0, only the application program in the internal RAM is sent to the internal Flash EPROM.
Any %MW save is then wiped.
On a cold start, this word is initialized on –1 if the internal
Flash EPROM contains no saved %MW. If the opposite should happen, it is initialized at the value of the number of saved words.
Management
System
User
User
TLX DR PL7 xxE
311
System objects
Description of system words %SW98 to %SW109
Detailed description
Words
%SW98
Description of system words %SW98 to %SW109
Function
Discrete input module/channel geographical address (2)
Description
When the bit %S98 = 1, this word indicates the Discrete input
(module /channel) geographical address, in the replacement of the TSX SAZ 10 module button :
Management
User
MSB
Module number
LSB
Channel number
%SW99 Discrete input address (2)
When the bit %S99 = 1, this word indicates the Discrete input
(module / channel) geographical address, in the replacement of the centralized display block button :
MSB
Module number
LSB
Channel number
User
%SW108
%SW109
Forced channel counter
Forced analog channel counter
Makes channels forced to 0 or 1 compatible within the application. It is updated by forcing or unforcing channels.
Makes analog channels forced to 0 compatible.
System
System
Note: (2) Only in TSX 37
312
TLX DR PL7 xxE
System objects
Description of system word %SW116
Detailed description
Words
%SW116
Description of system word %SW116 - FIPIO
Function Description
FIPIO I/O task fault Normally on 0, each bit for this word signifies FIPIO exchange status within the task in which it is being tested.
This word is to be reset on 0 by the user.
l l l l l l l l
More details on words bits %SW116: l x0 = 1 explicit exchange error (variable has not been exchanged on the bus), l x1 = 1 time-out on an explicit exchange (no reply at the end of time-out), l x2 = 1 maximum number of explicit exchanges achieved at the same time, x3 = 1 a frame is invalid, x4 = 1 the length of frame received is greater than the length that was declared, x5 = reserved on 0, x6 = 1 a frame is invalid, or an agent is initializing, x7 = 1 absence of a configured device, x8 = 1 channel fault (at least one device channel is indicating a fault), x9 to x14 = reserved on 0, x15 = Global fault (OR bits 3, 4, 6, 7, 8).
Management
System
User
TLX DR PL7 xxE
313
System objects
Description of system words %SW124 to %SW127
Detailed description
Words
%SW124
%SW125
%SW126
%SW127
Description of system words %SW124 to %SW127
Function
Type of CPU fault
Type of blocking fault
Blocking fault instruction address
Description Management
The last type of CPU fault encountered is written into this word by the system (these codes are unchanged on a cold restart): l l l l
16#30: system code fault
16#60 to 64: stack overrun
16#90: System switch fault: Unforeseen IT
16#53: time-out fault during I/O exchanges
The last type of blocking fault encountered is written into this l l l l l l l word: l l l
16#DEB0: watchdog overrun
16#2258: execution of HALT instruction
16#DEF8: execution of JMP instruction to an undefined label l 16#2XXX: execution of CALL instruction to an undefined sub-program
16#0XXX: execution of an unknown function
16#DEFE: the grafcet program consists of sendings to undefined steps.
16#DEFF: floating point has not been not implemented
16#DEF0: division by 0 (1-->%S18)
16#DEF1: character string transfer error (1-->%S15)
16#DEF2: capacity overflow (1-->%S18)
16#DEF3: index overflow (1-->%S20)
Instruction address that generated the application blocking fault.
l l
%SW126 contains the offset for this address
%SW127 contains the base for this address
System
System
System
314
TLX DR PL7 xxE
System objects
Description of system words %SW128 to %SW143
Detailed description
Description of system words %SW128 to %SW143 - FIPIO
Words
%SW128 to
%SW143
Function
Faulty FIPIO connection point
Description
Each bit in this group of words indicates the state of a device connected to the FIPIO bus.
Normally on 1, the presence of a 0 in one of these bits indicates the appearance of a fault in this connection point.
For a non-configured connection point, the corresponding bit is always 1.
Table showing correspondence between word bits and connection point address.
Management
System
%SW128 :
%SW129 :
%SW130 :
%SW131 :
%SW132 :
%SW133 :
%SW134 :
%SW135 :
%SW136 :
%SW137 :
%SW138 :
%SW139 :
%SW140 :
%SW141 :
%SW142 :
%SW143 : x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
TLX DR PL7 xxE
315
System objects
Description of system words %SW144 to %SW146
Detailed description
Words
%SW144
%SW145
Description of system words %SW144 to %SW146 - FIPIO
Function
FIPIO bus arbiter function operating mode
Modification of
FIPIO bus arbiter parameters
Description
This system word is used to start and stop the bus arbiter function and the producer / consumer function. It can modify the starting, automatic and manual modes of the bus in the l l l l l l event of a stop.
l l x0 = 1 producer / consumer function in RUN mode x0 = 0 producer / consumer function in STOP mode (no variables are exchanged in the bus), x1 = 1 bus arbiter is in RUN 0 mode x1 = 0 bus arbiter is in STOP mode (no variables or message scanning is carried out in the bus), x2 = 1 automatic start in the event of an automatic bus stop x2 = 0 manual start in the event of an automatic bus stop x3 = reserved on 1 x4 to x15 reserved on 0.
The bits are set on 1 by the user, and reset to 0 by the system when initialization has been carried out.
l x0 = 1 modification of bus arbiter priority: the most significant system word byte contains the priority value of the bus arbiter which will applied to the bus.
l x1 = 1 modification of the return time value (Rt): the most significant system word byte contains the Rt value (in ms) l which will be applied to the bus. The system word is zeroed when initialization is complete.
x2 = 1 modification of the pause time value (T0): the most significant system word byte contains the T0 value (in ms) which will be applied to the bus. The system word is zeroed when initialization is complete.
l l l l x3 to x7 are reserved on 0.
x8 = 1 value of bus arbiter priority, x9 = 1 Rt value, x10 = 1 T0 value.
These parameters can be modified when the bus arbiter is in
RUN mode, but for them to be taken into account by the application, the BA must be stopped then restarted.
Management
User
User
System
316
TLX DR PL7 xxE
Words
%SW146
System objects
Function
FIPIO bus arbiter function display
Description Management
The least significant byte indicates the state of the producer / consumer function
The most significant byte indicates the state of the bus arbiter function.
Byte value l l
16#00: the function does not exist (no FIPIO application),
16#07: the function currently in STOP (ie STOP order has been sent and the command has not finished).
l 16#0F: the function currently in RUN (ie RUN order has been sent and the command has not finished).
l 16#70: the function has been initialized but is not operational (in STOP mode), l 16#F0: the function is currently being executed normally
(in RUN mode).
System
CAUTION
Matters affecting the words %SW144 and %SW145 modifying these system words can lead the PLC station to stop.
Failure to observe this precaution can result in injury or equipment damage.
TLX DR PL7 xxE
317
System objects
Description of system words %SW147 to %SW152
Detailed description
Words
%SW147
%SW148
%SW149
%SW150
%SW151
%SW152
Description of system words %SW147 to %SW152
Function Description
MAST network cycle time
A value which is not zero indicates, in ms, the MAST task network cycle (TCR-MAST) time value.
FAST task network cycle time value
A value which is not zero indicates, in ms, the MAST task network cycle (TCR-FAST) time value.
Number of frames sent
Number of frames received
Number of messages resumed
Reserved on 0.
This word indicates the number of frames sent by the FIPIO channel manager
This word indicates the number of frames received by the
FIPIO channel manager.
This word indicates the number of messages resumed by the
FIPIO channel manager.
Management
System
System
System
System
System
System
318
TLX DR PL7 xxE
System objects
Description of system word %SW153
Detailed description
Words
%SW153
Description of system word %SW153 - FIPIO
Function Description list of FIPIO channel manager faults.
Each bit is set on 1 by the system, and reset to 0 by the user.
See the list below.
Management
User
System
Bits description l l l l l l l l l l l
X0 = overrun station fault: corresponds to losing an MAC symbol while receiving
– this is linked to the receiver reacting too slowly.
X1 = message refusal fault: indicates an acknowledged message was refused, or it was not acknowledged in the first place. receiving MAC.
X3 = underrun station fault: corresponds to the station being unable to respect transfer speed on the network.
X4 = physical layer fault: corresponds to a prolonged transmission absence in the physical layer.
X5 = non-echo fault: corresponds to a fault for which the transmitter is currently sending out, with an emission current in the operating format, and at the same time detection that a signal is absent on the same channel.
X6 = excessive communication fault: corresponds to a fault whereby the transmitter is controlling the line for longer than the maximum set operating limit.
This fault is caused, for example, by deterioration of the modulator, or by a faulty layer data link.
X7 = undercurrent fault: corresponds to a fault whereby the transmitter generates, when sollicited, a current weaker than the minimum set operating limit. This fault is caused by, for example, by increased line impedance (eg. open line etc.).
X8 = breached frame fault indicates that a pause has been received in the frame body, after identifying a delimiter at the start of the frame, and before identifying a delimiter at the end of the frame. The appearance of a pause in normal operating conditions takes place after a delimiter has been identified at the end of a frame.
X9 = CRC frame receiving fault: indicates that the CRC calculated on a frame usually received and the CRC contained within this frame have different values.
X10 = receiving frame code fault: indicates that certain symbols, exclusive to delimitation sequences at the beginning and end of frames, have been received within the body of the frame.
X11 = length fault within the frame received: more than 256 bytes have been received for the frame body.
TLX DR PL7 xxE
319
System objects l l l l
X12 = unknown frame type received: within the frame body, the fist byte identifies the type of frame link. A set number of frame types are defined in the WORLDFIP norm link protocol. Any other code found within a frame is therefore an unknown frame type.
X13 = a truncated frame has been received: a frame section is recognized by sequence of symbols delimiting the end of the frame, while the destination station awaits the arrival of a delimiter sequence for the beginning of the frame.
X14 = unused, non-significant value.
X15 = unused, non-significant value.
320
TLX DR PL7 xxE
System objects
Description of system word %SW154
Detailed description
Words
%SW154
Description of system word %SW154 - FIPIO
Function Description list of FIPIO channel manager faults.
Each bit is set on 1 by the system, and reset to 0 by the user.
See the list below.
Management
User
System
Bits description l l l l l l l l l
X0 = aperiodic time-out sequence: indicates that the messages or aperiodic variables window has overflowed its limit within an elementary cycle of the macrocycle.
X1 = refusal of messaging request: indicates that the message queue is saturated
- for the time being the bus arbiter is in no position to latch onto nor comply with a request.
X2 = urgent update command refused: indicates that the queue for urgent aperiodic variables exchange requests is saturated - for the time being the bus arbiter is in no position to latch onto nor comply with a request.
X2 = non-urgent update command refused: indicates that the queue for nonurgent aperiodic variables exchange requests is saturated - for the time being the bus arbiter is in no position to latch onto nor comply with a request.
X4 = pause fault: the bus arbiter has not detected any bus activity during a time period larger than the standardized WorldFip time period.
X5 = a network collision has occurred on identifier transmission: indicates activity on the network during theoretical pause periods. Between a transmission and awaiting a reply from the bus arbiter, there should be nothing circulating on the bus. If the bus arbiter detects activity, it will generate a collision fault (for example, when several arbiters are active at the same time on the bus).
X6 = bus arbiter overrun fault: indicates a conflict on accessing the bus arbiter station memory.
X7 = unused, non-significant value.
X8 to X15 = reserved on 0.
TLX DR PL7 xxE
321
System objects
Description of system words %SW155 to %SW162
Detailed description
Words
%SW155
%SW160
%SW161
%SW162
Description of system words %SW155 to %SW162
Function
Number of explicit exchanges
Description
Number of explicit exchanges currently being processed
Result of the last recording (diagnostics function).
Result of the last non-recording (diagnostics function).
Number of errors currently in the diagnostics buffer.
Management
System
System
System
System
322
TLX DR PL7 xxE
Скачать
Реклама