Академический Документы
Профессиональный Документы
Культура Документы
Contents
Section
Part 1.
PL7-1 programming for the
TSX 17-10/17-20 micro-PLCs
Sub-section
1.1
1.2
1.3
1.4
1.5
2. PL7-1 Language :
Structure and Functions
2.1 Characteristics
2.2 Timer
2.3 Counter
11
12
13
2.4
2.5
2.6
3.1
3.2
4.1
4.2
4.3
Shift Register
Step Counter
Fast Counter/Timer (TSX 17-20 only)
Characteristics
Program Structure
Mains Power Break/Return
Initialization of the PLC
Program and Data Back-up Storage
14
15
16
17
18
19
20
20
4.4
4.5
4.6
4.7
4.8
20
21
22
23
24
5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8
5.9
25
28
29
30
32
34
35
37
38
Presentation
I/O Addressing
Operands
Operation Codes
PLC Scan Cycles
Page
1. PL7-1 Language
3
4
5
7
9
39
PL7-1 Language
1.1
Presentation
PL7-1 is the name given to the Boolean or Instruction List language that can be
used to program the TSX 17-10 and TSX 17-20 micro-PLCs.
This language can transcribe both the most frequently used graphic systems of
representation :
. Ladder diagram,
. Grafcet.
Ladder diagram
The transcription of a Ladder diagram in PL7-1 language consists in assigning the
contacts to the inputs of the PLC, and the coils to the outputs or internal bits of the
PLC.
I0,01
I0,02
I0,03
O0,01
O0,02
Operand
S0000
S0001
S0002
S0003
S0004
S0005
I0,01
I0,02
O0,01
I0,03
I0,04
O0,02
-
I0,04
L
A
=
L
ON
=
-
Description
Stop PB
Sensor S1
Alarm light A2
Limit switch L3
Detector D2
Klaxon
Grafcet
Grafcet is a graphic method of analysis which represents the functions of a
sequential automated system as a sequence of steps and transitions, associated
respectively with actions and conditions.
The PL7-1 language includes specific Grafcet instructions.
3
B012
4
5
I0,07
B015
7
=1
S0015
S0016
S0017
S0018
S0019
S0020
S0021
S0022
S0023
S0024
S0025
-
-*L
#
#
-*L
#
-*L
#
-*-
03
B012
04
05
04
I0,07
06
05
B015
07
06
-
Step 3
Filling
Hopper 8
Level reached
Hopper 9
Level reached
Hopper 10
Program utilities
The PL7-1 language also includes a range of program utilities (system bits,
diagnostics, etc.) which facilitate the integration and control of the operating
modes of the application.
PL7-1 Language
1.2
I/O Addressing
The address of an input or output is defined as follows :
. I for an input, or O for an output,
. the number of the module :
- 0 for the basic PLC,
- 1 for the 1st extension module,
- 2 for the 2nd extension module,
. a comma,
. the number of the I/O point (see the table below).
Examples :
. I0,04 signifies : Input N 4 of module 0 (basic module),
. O1,07 signifies : Output N 7 of module 1 (1st extension module).
TSX 17 micro-PLCs
Number
of I/O
Type
Inputs
Outputs
Event
Inputs
20
(12I + 8O)
from I0,00
to I0,11
from O0,00
to O0,07
I0,24 (*)
I0,25 (*)
34
(22I + 12O)
from I0,00
to I0,21
from O0,00
to O0,11
I0,24
I0,25
40
(24I + 16O)
from I0,00
to I0,23
from O0,00
to O0,15
I0,24 (*)
I0,25 (*)
Extension block
for TSX 17-10/20
34
(22I + 12O)
from Ix,00
to Ix,21
from Ox,00
to Ox,11
Extension block
for TSX 17-10/20
40
from Ix,00
(24O + 16O)
to Ix,23
from Ox,00
to Ox,15
Extension module
for TSX 17-10/20
8
Inputs
Extension module
for TSX 17-10/20
6
Outputs
from Ix,00
to Ix,07
from Ox,00
to Ox,05
I/O point
Use by default
Input
I0,00
Normal input
Output
O0,00
Normal output
PL7-1 Language
1.3
Operands
Maximum number
Address TSX 17-10 TSX 17-20
Can be
written
Section
Input bits
Output bits
Ix,j
Ox,j
72
48
72
48
yes
yes
1.2
1.2
Event-triggered
input bits
I0,24
I0,25
---
1
1
no
no
1.5
1.5
Internal bits*
Bi
256
256
System bits
SYi
24
24
some
1.3
Grafcet
step bits
Xi
62
62
yes
3.1
Intermediate
memory bits
IM
no
2.1
Fault bits
Sx,j
3x5
3x5
no
4.5
yes
--
* The first 128 internal bits (from B0 to B127) are saved after a mains power break
(hot restart).
List of function operands
Type
Maximum number
Address TSX 17-10 TSX 17-20
Can be
written
Section
Timers
Ti
32
32
yes
2.2
Counters
Ci
15
15
yes
2.3
Fast counter
C15
--
yes
2.6
Shift registers
SRi
no
2.4
Step counters
SCi
no
2.5
Type
Maximum number
Address TSX 17-10 TSX 17-20
Can be
written
Section
Shift register
bits
SRi,j
8 x 16
8 x 16
yes
2.4
Step counter
bits
SCi,j
8 x 256
8 x 256
yes
2.5
PL7-1 Language
Operands (Contd.)
Function
Initial
state
Set/
Reset (*)
Section
SY00
S or
US
4.1
SY01
S or
US
4.1
SY05
SY06
SY07
SY08
SY09
SY10
SY13
SY14
4.5
SY15
SU
2.6
SY16
US
SY17
2.3
SY19
1.5
SY21
US
3.2
4.6
SY22
US
3.2
4.6
SY23
US
1.4
3.2
4.6
S
S
S
4.5
(*)
Abbreviations used :
S
= set to 1 or 0 by the system,
U
= set to 1 or 0 by the user,
S U = set to 1 by the system, reset to 0 by the user,
U S = set to 1 by the user, reset to 0 by the system.
(**)
PL7-1 Language
1.4
Operation codes
Operation
code
Significance
L
LN
..................
..................
I,O,B,SY,T,C
SC,SR,X,S
A
AN
..................
..................
I,O,B,SY,T
SC,SR,IM,X,S
O
ON
OR the state of
OR the inverse state of
..................
..................
I,O,B,SY,T
SC,SR,IM,X,S
XO
I,O,B,SY,T
SC,SR,IM,X,S
None
I,O,B,SY,SR,X (*)
T
=N
I,O,B,SY,SR,X (*)
T
S
(Set)
I,O,B,SY,S
R
(Reset)
Associated
operands
T
C
SC
SR
X (*)
I,O,B,SY,S
T
C
SR
SR
X (*)
(*) The setting of Grafcet steps to 1 or 0 is effective only after validation by system
bit SY23.
The instructions = Xi, = NXi, S Xi and R Xi must be used only in the Preprocessing section.
PL7-1 Language
Operation codes (Contd.)
Operation
code
Significance
Associated
operands
SET *
RST *
=
*
I,O,B,X
CU
C (except C15 in a
TSX 17-20),SC,SR
CD
C (except C15 in a
TSX 17-20),SC,SR
JMPi
LABi
NOP
EP
Non-operative instruction
End of program
None
None
Grafcet instructions :
Instruction
Significance
Processing section in
which it can be used
=*=i
Sequential
_*_i
Sequential
#i
Sequential
Sequential
= * = POST
Post-processing
Xi
Pre-processing,
Sequential and
Post-processing
sections
(*) The maximum number of steps that can be used, including initial steps, is 62.
PL7-1 Language
1.5
Mono-task cycle
- The TSX 17-10 has a mono-task cycle only (no Fast task).
- The TSX 17-20 can be given a mono-task cycle by setting SY19 to 1.
The task is non-periodic and has a scan time of < 150 ms (watchdog).
Instruction List (or Boolean) language without Grafcet
Terminal dialog
S0000
S0001
.....
L
A
.
EP
I0,01
I0,02
....
Program
Scanning
SY00
SY01
....
S0000
S0001
.....
L
A
.
S0052
S0053
S0054
S0055
=*=
L
A
#
01
B0004
I0,03
02
S0000
S0001
.....
L
A
.
EP
SY00
SY01
....
Pre-processing
Sequential processing
(Grafcet)
Post-processing
PL7-1 Language
PLC Scan Cycles (Contd)
Two-task cycle
The TSX 17-20 can be given a two-task cycle by setting SY19 to 0.
The two tasks are :
. The Master task (non-periodic, the same as the mono-task),
. The Fast task (non-periodic).
Purpose of the Fast task : The Fast task guarantees short response times for
short routines that recur frequently. The number of instructions in the Fast task
should be kept to the minimum.
Principle : The Fast task interrupts the Master task when one of the following
instructions is encountered L.., LN.., _*_.., NOP or EP, and when one of the
following events occurs :
. the physical change of state of one of the event-triggered inputs (configured as
such) I0,24 and/or I0,25,
. the fast timer C15 reaches its preset value.
Scan cycle of the Fast task
Master task
Reading of the input byte
configured in the Fast task
F0000
F0001
.....
L
A
.
EP
I0,24
B108
....
Remarks :
Do not use Grafcet instructions, nor the instructions JMP and LAB in the
Fast task.
When the Fast task is :
- active, the input and output bytes configured in this task are processed by
both the Fast task and the Master task.
- inactive, the input and output bytes configured in this task are processed
by the Master task only.
Only one input byte (I0,00 to I0,07 or I0,08 to I0,15 or I0,16 to I0,21) and
one output byte (O0,00 to O0,07 or O0,08 to O0,11) of the basic PLC
module can be configured in the Fast task.
A change of state of the "event" inputs I0,24 or I0,25 that is generated by the
terminal or the program, and not by an outside event, will not initiate the
execution of the Fast task.
10
2.1
Characteristics
Instructions
A PL7-1 language instruction occupies one memory address and is composed of :
Example :
A memory address
S 0004
An operation code
A
+ An operand
I0,03
L
A
=
=N
I
B
O
B
0,04
012
0,01
025
1
2
8K Memory
24K Memory
TSX 17-10
TSX 17-20
2973 (*)
(*) If the Fast task is used, the number of lines of the Master task is reduced by the number
of lines of the Fast task.
Program scan
The processor reads and executes the instructions in the ascending order of their
addresses, up to the instruction EP (end of program).
Program jump : JMPi and LABi
The execution of the operation code JMPi immediately jumps the program scan
to the line containing the operation code LABi and the part of the program between
JMPi and LABi is not executed. JMPi and LABi must have the same number ;
this number has no relation to the line number.
"IM" function
This function simplifies the logic operations A, AN, O, ON, XO between two series
of instructions.
Principle : Before the execution of each L or LN instruction, the logical result is
memorized in IM until the next L or LN instruction.
Example
Program
L
A
LN
A
O
=
...
I0,01
I0,02
I0,03
I0,04
IM
O0,06
.....
I0,01
I0,02
B117
I0,03
I0,04
B117
O0,06
.....
I0,01
I0,02
I0,03
I0,04
O0,06
11
2.2
Timer
The Timer function permits the time-delayed control of specific actions. The value
of the time-delay is programmable and can be modified by the TSX T317 terminal
in the ADJUST mode (ADJ).
Characteristics
Number
Time bases (Ti,B)
Preset value (Ti,P)
On-delay timer
Use of the operation code =
L I0,01
=
T00
L
T00
= O0,01
.........
I0,01
T00
O0,01
:
Time delay
I0,01
I0,02
T00
O0,01 :
Remarks :
12
. A program jump over a timer, or the stopping of the PLC, does not halt the
running of a timer.
. In the ADJUST mode, the current value Ti,V is at 0 if the timer has timed
out, has not been started, or has been initialized by the operation code R.
. On a cold restart, the current value is reset to 0 and the preset value Ti,P
is the value that was defined in the CONFIGURATION mode (the adjustment value is lost).
2.3
Counter
System bit SY 17
Since equality is not always the desired condition, the system positions system
bit SY17 as follows :
. SY 17 = 0 if the counter value constant K,
. SY 17 = 1 if the counter value < constant K.
Thus providing 4 additional functions (>, <, , ).
Example
L
C00
K00123
C00
K00123
LN
AN
C00 K00123
SY17
Remarks
L
A
C00 K00123
SY 17
L C00 K00123
ON SY 17
Counter C00 more than or equal to 123
L
O
C00 K00123
SY 17
. The system bit SY17 can be used several times in the program for one or
more counters. It always affects the counter Ci immediately upstream of
the operand SY17.
. When the counter reaches its preset value (Ci,P) it is automatically reset
to 0000.
. On a cold restart, the current value is reset to 0000 and the preset value
(Ci,P) is the value that was defined in the CONFIGURATION mode (the
adjustment value is lost).
13
2.4
Shift Register
The shift register is a register which enables binary data bits to be moved as a
contiguous group a prescribed number of positions to the left or right.
Characteristics
Number of registers
Number of bits in a register
Test operation codes
L, LN, A, AN
O, ON, XO
Action operation codes
= SRi,j
= N SRi,j
S SRi,j
R SRi,j
R SRi
CU SRi
CD SRi
Operation
Initial State
CU SRi shifts the
bits one place to
the left
The bit shifted out
(bit 15) is lost
Bit 15
Bit 00
Bit 15
Bit 00
Similarly, CD SRi shifts all the bits of the register one place to the right, in this case
the bit shifted out is bit 00.
If more than 16 bits have to be shifted, several registers can be cascaded in the
program.
Example
LN
=
L
CU
SR
SR
SY
SR
Remark :
14
0,15
0,00
06
0
. On a cold restart, the bits of each register are reset to 0.
2.5
Step counter
A step counter is a series of steps which can be associated with actions. The
progress from one step to another can be controlled by internal or external events.
Only one step of a step counter can be at state 1.
Characteristics
Number of step counters
Number of steps of a step counter
Test operation codes
L, LN, A, AN
O, ON, XO
8
(from SC0 to SC7)
256 (from SCi,000 to SCi,255)
Output CD
Nr. of step at 1
Example
I
SC
SC
I
SC
SC
O
SC
O
SC
O
Remark :
0,03
0,003
0,000
0,02
0
0,000
0,01
0,001
0,02
0,002
0,03
On a cold restart, the active step is reset to 0 and step 0 of each step
counter is set to 1.
15
2.6
Characteristics
- Fast counter (configuration by default) :
The maximum frequency of the counter is 2 KHz. It has two physical inputs (a
counting input and a reset input) permitting the connection of 5VDC and 24VDC
sensors. Counting : 10 000 points.
- Fast timer :
In the fast timer, an internal time base of 0.555ms replaces the physical counting
input. A rising edge on the reset input resets the current value of the timer to 0.
Test and action operation codes
L C15K tests of the state of the counter in relation to constant K
LN C15K (from 0000 to 9999),
SY 17
see Section 2.3.
S C15K modification request of the the preset value K. This new value is
acquired after the counter has reached the preset value that it had
when the modification request was made.
R C15
resets the counter to 0 and resets the preset value to the value that
was defined in the ADJUST or CONFIGURATION modes.
System bit SY 15
When the fast counter C15 reaches its preset value :
. system bit SY15 is set to 1,
. the Fast task is executed if system bit SY19 has been reset to 0 in the Master
task,
. the counter is reset to 0.
Connecting the fast counter
The 9-pin D-type connector in the top left corner of the TSX 17-20 has two
independent, isolated inputs :
. Fast counting input :
0V = pin 1;
5V = pin 7;
24V = pin 6
. Reset input :
0V = pin 5;
5V = pin 8;
24V = pin 9
Remarks
16
. Resetting of the counter to 0 by the physical input resets the current value
only (the preset value is retained).
. By associating the fast counter with a step counter (in which each step is
loaded with a value K), a fast counter with multiple preselections can be
obtained.
. On a cold restart, the current value is reset to 0 and the preset value is the
value that was defined in the CONFIGURATION mode.
3.1
Characteristics
The PL7-1 language comprises 62 Grafcet steps maximum, including the initial
steps.
Within this limitation, the number of simultaneously active steps is unlimited.
Instructions
=*=i
-*-i
#
#i
= * = POST
xi
Examples
Linear sequence
01
=*=
L I0,01
02
#
02
-*L I0,02
03
#
03
-*........
Sequence selection
04
-*L I0,03
05
#
L I0,04
06
#
05
-*L I0,05
07
#
06
-*L I0,06
07
#
........
I0,01
2
I0,02
3
I0,03
5
I0,04
6
I0,05
I0,06
Simultaneous sequences
08
-*L I0,07
09
#
10
#
09
-*L I0,08
11
#
10
-*L I0,09
12
#
11
-*X12
L
13
#
12
-*X11
L
13
#
........
I0,07
9
10
I0,08
11
12
=1
13
I0,09
14
-*L I0,10
15
#
16
#
15
-*L I0,11
17
#
17
-*X16
L
A I0,12
A I0,13
18
#
16
-*X18
L
#
18
-*L I0,14
........
14
I0,10
16
15
I0,11
17
I0,12
I0,13
18
I0,04
17
3.2
S000
....
L....
....
Pre-processing
Sn
....
Sn+1
....
=*=
Sequential processing
Sj
Sj+1
....
....
=*=
POST
Post-processing
Sk
EP
Pre-processing :
= a series of instuctions
Role
Processing of :
- mains break/return,
- failures,
- application operating modes :
. init : by system bit SY21,
. reset : by system bit SY22,
. prepositioning of the Grafcet by system
bits SY22 and SY23,
. freezing of the Grafcet by system bit SY 23,
- input logic
Sequential processing :
= a series of instructions
Role
- Sequential processing of the application :
steps and transitions and their associated
actions and conditions.
Post-processing :
= a series of instructions.
Role
The processing of :
- the commands from the Sequential processing section concerning the control of the
outputs,
- the output safety interlocks.
The scan cycle is defined in Section 1.5. Only the steps that are active (or to be
activated or deactivated) and their associated instructions are executed in the
Sequential processing section.
Reminder : Grafcet instructions must not be used in the Fast task.
18
Program utilities
4.1
The Fast task cannot be executed until system bits SY00 and SY01 have been
reset to 0, i.e. not until after the execution of the first complete cycle.
19
Program utilities
4.2
Example
4.3
L SY01
S SY00
4.4
Input I0,00
Can be set in the Configuration mode to either :
Normal :
Normal operation as for any other input,
RUN/STOP : State 1 = PLC running, program being executed,
State 0 = PLC stopped, program halted.
Output O0,00
Can be set in the Configuration mode to either :
Normal :
Normal operation as for any other output,
SECU :
State 1 = PLC running,
State 0 = PLC stopped or failed.
This output can be used in external safety circuits.
Remarks . I0,00 and O0,00 must be used in the program only for the function that was
selected in the CONFIGURATION mode.
. The RUN/STOP input has priority over a RUN/STOP command from the
terminal.
20
Program utilities
4.5
Diagnostic aids
The operands described below can be used in the program to facilitate troubleshooting of the PLC or the application.
System bits
SY10 = 0 : I/O module fault or configuration fault,
SY13 = 1 : Back-up battery absent or defective.
Sx,4 = 1 : Internal power supply fault of the coils of the relay outputs of module x.
Remarks :
21
Program utilities
4.6
Use of the Pre-processing section and the system bits facilitates control of the
application operating modes without complicating the program.
Power-up
Initialization
YES
Processing
NO
. Change of mode
request,
Change of mode
request
NO
. Combinational
input logic
YES
Processing
Input logic
22
Program utilities
Programming of outputs
Each output bit or internal bit must be turned on or off only once in the program,
since only the last state that is scanned is taken into account when the outputs are
updated at the end of the scan cycle.
23
Program utilities
4.8
I0,02
I1,00
I0,02
I0,05
X22
O0,02
O0,01
I0,02
I0,05
O0,02
O0,01
I0,02
B017
I1,00
AN IO,05
O
B017
X22
I1,00
AN O0,02
=
O0,01
B017
LN I0,02
A
IO,05
I0,02
X5
AN B017
O
IM
LN O0,02
O
I1,00
IM
X5
O0,01
24
Soft keys
When the lower line of the screen displays the following operating mode
mnemonics, the 5 blue keys are soft keys.
Tsx1720_V10 STOP
TRFTERDGN
%
Tsx1720_V10 STOP
CNFADJ PRGCTL%
CNF
ADJ
PRG
CTL
%
:
:
:
:
:
Configuration mode
Adjust mode
Program mode
Control mode
Go to next screen
=*=
CU
CD
%
N
NOP
JMP / #
XO
Lab /-*-
TMR
SY/S
X/IM
CNT
FUN
SC/ [SC]
SR/ [SR]
Clear
Enter
Special keys
Enter : Validates the entry, or confirms a
function, and goes to the next
line.
Clear : Abandons the function and
goes to the previous line.
CB
0
Shift
Quit
As the Clear and Quit keys have several functions, it may be necessary to use
them with Shift key. The keys FUN and CB are not used.
26
CNF
In the margin :
In the introduction to each mode or function, the soft keys are
represented as shown opposite :
In the text :
The same key is represented between square brackets :
[CNF]
Other keys :
The other keys (operation codes, operands, numbers) are represented between
the symbols < and > as follows :
. Keys
. Keys
. Keys
CU
and
IM
and [SC]
: ...................................
< CU >
<X>
: ...................................
< IM >
< SC >
L
A
O
=
I
I
B
O
0,01
1,03
220
1,05
< A > < 7 > < 1 > < 0 > < ENTER >
< 0 > < 9 > < 2 > < 2 > < ENTER >
< = > < 8 > < 1 > < 0 > < ENTER >
< CLEAR >
Read the program up or down by < > or < >
< QUIT > returns to the mode selection display.
-*-
< P > < P > < P > < 1 > < ENTER >
024
< L > <9 > < 2 > < 4 > < ENTER >
27
5.2
Power-up
Presentation
On power-up, the terminal performs a series of self-tests, checks its RAM
memory, performs the checksum of its EEPROM memory and then displays the
following screens.
Keyboard test
This test is proposed for 3 seconds. To
test the keyboard, press any key or
sequence of keys except < CLEAR >
and check for the corresponding display.
SELFTEST
keyboard test?
English
ENGFRADEUITA%
Tsx1720_V10 STOP
CNFADJPRGCTL%
Tsx1720_V10 STOP
TRFTERDGN
%
Prog.mem. fail.
CLM:
8k24k
28
5.3
The various functions and sub-functions of the terminal are grouped in 7 operating
modes :
CNF : CONFIGURATION mode
Permits the writing in the PLC memory of the information necessary to the
processor (preset values, time bases, I/O addresses, etc.).
ADJ : ADJUST mode
Permits the display and modification of all the variables.
PRG : PROGRAM mode
Permits the creation and modification of the program, search for an
instruction, etc.
CTL : CONTROL mode
Permits the starting, stopping or initialization of the program.
TRF : TRANSFER mode
Permits the printing of the program and the back-up storage of the
program on audio cassette or EEPROM.
TER : TERMINAL mode
Permits the configuration of the printer link, the entry of the code 7533
which authorizes programming with the PLC running, and the modification of the language selection.
DGN : DIAGNOSTIC mode
Permits the diagnosis of faults of the PLC or the application.
CNFADJPRGCTL%
TRFTERDGN
SELECTED MODE
Validation
of the entry
ENTER
(*) Depending on the function selected, sub-functions may be proposed by the soft keys.
29
5.4
Configuration Mode
General
CNF
R
Gives access to the Configuration mode. When the PLC is stopped (see Section
5.6), this mode permits the configuration of the memory, the time bases, the
preset values, the I/0, and the fast counter C15.
CONFIGUR.
STOP
MEMTiBTiPCiP%
CONFIGUR.
I/0C/T
STOP
%
Note : Unless certain special functions are required (special I/O, fast task I/O, fast counter,
etc.), it is not necessary to configure any of these except for the time bases (TiB) and
preset values (TiP) which are set by default to 1 mn and 9999 respectively.
Memory function
Gives access to 3 possibilities :
MEM
R
SIZE: 8k -->24k
SIZCNV
CLM
[SIZ]*
[CNV]*
converts the memory size from 8 to 24K, or from 24 to 8K, if the program
size is compatible (conversion time 2 minutes).
Confirmation by < ENTER >.
[CLM]*
[MOD]
T.Base T00
1mn
MOD
The keys < > and < > give access to the next or previous timer.
Preset value function
Permits entry of the preset values of timers or counters (0000 to 9999).
TiP
[MOD]
PRESET T00
[MOD]
PRESET
CiP
NOP
9999
MOD
C00 9999
MOD
The keys < > and < > give access to the next or previous timer or
counter.
30
I/O
R
[IO0]
[I00]
[O00]
[F.I]*
[CNF]
[FIO]*
[I]
[O]
[NO]
I/O Config.
100F.ICNFFIO
100:R/S 000:nor
100000
1024:EV 1025:NO
124125
M1:LOC - M2:NO
M1 M2 CLC
FAST I/O
I O
FAST: 10,00..7
0..8..16.. NO
FAST: NO OUTP^UT
0..8.. NO
C/T
S
C15:fast timer
MOD
C15:fast counter
MOD
(*) The functions and sub-functions marked by an asterisk are available with the TSX 1720 only.
31
5.5
Program Mode
General
PRG
=
For safety reasons, the PLC must be stopped before creating or modifying the
program.
The Program mode gives access to the following 7 functions :
PROGRAM
STOP
FSTSEQSCHCLP%
Fast task and Master task functions
Reading, writing and modification of the
FST
Fast task (TSX 17-20 only).
R
SEQ
S
PROGRAM
STOP
RUNSTOINI
%
S0000 NOP
ADR
INS%
S0000 NOP
MODDELVISEND%
S0000 NOP
32
Search function
This function permits the search for all or part of an instruction.
SCH
=
L
I0,01
xxxxxxxxxx
0123456789
< ENTER > starts the search. The first I0,01, enter an instruction containing this operand
instruction found is displayed with its and then press
< 0 > < 1 > < 2 > < 3> < 4 > < ENTER >
address.
< ENTER > then continues the search.
< CLEAR > halts the search, another
instruction can then be entered.
to delete the crosses under the unwanted characters, thus leaving the crosses 5, 6, 7, 8, 9 under the
characters of the searched for operand I0,01.
PROGRAM
STOP
confirm CPL
Tsx1720_V10 STOP
CNFADJPRGCTL%
CLEAR
0
QUIT
PROGRAM
STOP
FSTSEQSCHCLP%
PROGRAM
STOP
RUNSTOINI
%
S0000 L
ADR
S0000 L
SY01
MODDELVISEND%
SY01
INS%
S0000 L
SY01
SELRSTCPYCUT%
5.6
Control Mode
General
CTL
NOP
Tsx1720_V10 STOP
RUNSTOINI
Tsx1720_V10 STOP
confirm
RUN?
34
If there are any forced bits in the program, STOP and RUN on the top line of the
display are replaced by S.F and R.F.
5.7
Transfer Mode
General
TRF
R
TRANSF.MODE STOP
PRTTR EPR
Print function
PRT
R
The screen shows the configuration of the data link (which is configured by default
to 600 baud with no parity after each power up).
The format is fixed : 1 start bit, 7 data bits, 2 stop bits.
[GO] starts the printout,
[BAU] permits selection of 300, 600
or 1200 baud,
[PAR] permits selection of EVEN,
ODD or NO parity,
[%]
selects the next screen which
permits the printing of :
[ALL] whole program (CNF + PRG),
[CNF] configuration only,
[PRG] pro gra m onl y (Fas t t as k +
Master task),
[SEQ] Master task only.
PRT: 600
GO BAU
NO
PAR%
LISTING:
ALL
ALLCNFPRGSEQ%
TRF: TSX
TR
CMP= > <= GO
TR
[]
Example :
[]
press :
[GO]
[ ] [GO]
then start the TR in the record mode and confirm
by < ENTER >.
After a few seconds the terminal displays the
addresses being recorded and proposes [ABO]
to abort (cancel) the transfer.
When the transfer is ended, the message "Func.
finished" appears.
Confirmation by < ENTER >. For transfers to the PLC, wait for the audio signal
from the tape recorder before pressing < ENTER >.
Note :
[ABO] cancels the entire transfer. If this key is pressed before the message Func.
finished appears, the addresses that have been displayed are not transferred.
35
EPR
MASTER
EEPROM
WORK
RAM
(Read Only)
RAM
EEPROM
TRF: TSX
TR
CMP= > <= GO
[]
TRF:RAM ==>EPROM
no protect.PRO
[PRO] protects the program copied to the EEPROM. The program cannot then
be read or printed. To re-use the EEPROM, make a new transfer from the
RAM (blank or unprotected).
[]
copies the program in the EEPROM (protected or not) to the RAM. If the
EEPROM was protected, the RAM will also be protected.
[GO]
Tsx1720_V10 STOP
TRFTERDGN %
Tsx1720_V10 STOP
CNFADJPRGCTL%
TRANSF.MODE STOP
PRTTR EPR
CLEAR
CLEAR
36
PRT: 600NO
GO BAU PAR%
LISTING:
ALL
ALLCNFPRGSEQ%
TRF: TSX TR
CMP= > <= GO
TRF:RAM
EPROM
CMP= > <= GO
5.8
Adjust Mode
General
ADJ
S
This mode permits the display, modification and forcing of the state or value of an
operand, with the the PLC running or stopped. The list of accessible operands is
given in Section 6.2.
To display the state or value of an operand, enter the operand on the screen
opposite and validate by < ENTER >.
ADJUST MODE
Variable:
O0,01
MODF:0F:1UNF
< SHIFT > < CLEAR > permit the entry of another operand.
Examples
O0,01=0 F F *
MOD
00100000
The 8 outputs from O0,00 to O0,07 are then displayed. Outputs O0,00 to O0,04
are at 0, O0,05 is at 1 and O0,06 and O0,07 are at 0. The letter F indicates that
O0,03 is forced to 0 and O0,05 to 1.
. To display and modify the current value of timer T00 press :
< TMR > < 0 > < ENTER >
T00 P=0015x 1 s
MoPV=0007 RMoV
. In the case of initialization by the program (SY00 set to 1) or by the terminal (INIT),
all the modifications made in the ADJUST mode are lost and the timer returns to
the values declared in the CONFIGURATION mode.
. When the PLC is running, the program has priority over the states of bits that have
been forced or modified.
. If a forced bit is present, STOP and RUN are replaced by R.F and S.F.
. With the PLC stopped, if SY08 = 1 (outputs reset) and an output is forced or
modified to 1, it remains physically at 0.
37
5.9
Diagnostic Mode
General
DGN
=
DIAGN.MODE STOP
TSXI/OTER
TSX
1 0 0 1
R/S CPU IO/M BAT
The screen above shows that the PLC is running and that there is a battery fault.
Light
R/S
CPU
IO/M
BAT
Out
PLC not powered
-------------------
On (steady)
Flashing
PLC running
Processor fault
I/O fault
Battery fault
PLC stopped
Watchdog overrun
Memory fault
-------
I/O
. ! cnf
M0 M1 M2
0 0 0 0 0
S4 S3 S2 S1 S0
TER
38
SELFEST
keyboard test?
TER
S
LGE
PRT
COD
If it is not correct, press < CLEAR > and repeat the operation.
If it is correct, press < QUIT > and then select the Program mode.
The code is cancelled when the terminal is powered down.
Warning :
39
Part 2
PL7-2 adjustement and operator
and operator dialogue
with the TSX 17-20 micro-PLC
Contents
Section
Sub-section
1 Introduction
1.1
1.2
1.3
1.4
2.1
2.2
3.1
2. Choice of Language
and Control Mode
3. Adjust Mode
4. Text Mode
40
Page
41
42
42
43
44
44
45
46
3.3
3.4
3.5
3.6
48
49
50
51
52
53
Introduction
1.1
TEXT mode,
ADJUST mode,
Language selection,
CONTROL mode,
Go to next screen or return to
previous screen.
NOP
%
N
TMR
SY/S
X/IM
CNT
FUN
SC/ [SC]
SR/ [SR]
Clear
Enter
Special keys
Enter : Validates the entry or confirms
a function and goes to the next
line,
Clear : Abandons the function and goes
to the previous line,
Quit : Abandons the mode.
CB
0
Shift
Quit
ADJ
[ADJ]
Other keys : The other keys are represented between the symbols < > as shown
in the examples below :
. Enter key
........................................................................ < ENTER >
. Cursor control key ........................................................................ < >
41
Introduction
1.2
Connection
The terminal must be connected by its
cable to a TSX 17-20 micro-PLC equipped with one of the following optional
software cartridges :
. TS X P 17 20FA ( with out r eal-ti me
clock),
. TSX P17 20FB (with real-time clock).
1.3
Power-up
On power-up, the terminal performs a series of self-tests, checks its RAM
memory, performs the checksum of its EPROM memory and then displays the
following screens.
Keyboard test
This test is proposed for 3 seconds. To
test the keyboard, press any key or
sequence of keys except < CLEAR >
and check for the corresponding display.
< CLEAR > abandons the function.
Connection to the PLC
During 3 seconds the terminal then tests
its connection to the PLC for correct
operation while the screen displays the
software version of the terminal.
If the connection is OK, the terminal
automatically enters the Text mode
(operator dialogue mode).
Mode selection display
To call up the Mode Selection Display
press < CLEAR >.
SELFTEST
keyboard test?
Introduction
1.4
Operating modes
Presentation
The operating modes available are :
TXT : TEXT mode
Permits operator dialogue by the exchange of text messages between
the PLC and the terminal (transmission/reception).
ADJ : ADJUST mode
Permits access to all the data variables in order to display or modify their
states or contents.
LGE : Language selection
Permits selection of the language in which messages are displayed by
the terminal (English, French, German, Italian or Spanish).
CTL : CONTROL mode
Permits the running, stopping or initialization of the user program.
MODE SELECTED
CLEAR
or
< QUIT >
QUIT
(*) Depending on the function selected, sub-functions may be proposed by the soft keys.
43
2.1
Choice of Language
LGE
This mode permits selection of the language in which messages are displayed by
the terminal.
2.2
CTL
NOP
Francais
ENGFRADEUITA%
Francais
ESP
Control Mode
This mode enables the operator to run, stop or initialize the program. The top line
of the screen displays the version of the PL7-2 software cartridge installed on the
TSX 17-20, e.g. V1.0.
Function "RUN"
requests execution of the program.
Confirmation by < ENTER >.
Function "STOP"
requests stopping of the program.
Confirmation by < ENTER >.
The program stops at the end of its scan
cycle after updating of the outputs.
Tsx1720_V10 STOP
RUNSTOINI
Tsx1720_V10 STOP
confirm
RUN?
Function "INIT"
requests initialization of the program, whether it is running or stopped. Confirmation by < ENTER >.
Initialization of the program has the same consequences as a cold restart (see the
PL7-2 Language Summary manual) :
. Setting to 1 of system bit SY0,
. Resetting to 0 of I/Ox,I; Bi; Wi; Xi,V; Di,V,
. Resetting to 0 of Mi,V; Ci,V; Ri,I; Ri,O,
. Resetting to their preset values of Ti,V; TXTi,j,
. Resetting of function blocks to their preset values as defined in the Program
mode, any values modified in the Adjust mode are lost,
. Initialization of the Grafcet and the Drum controllers,
. Cancellation of forcings and breakpoints,
. Acknowledgement of I/O faults,
. Positioning of the execution pointer at the start of the cycle (before updating of
the inputs),
. The real-time clock/calendar is unaffected and retains its values.
If initialization is requested while the program is running, the program is initialized
as described above and the scan then restarts at the beginning of its cycle.
44
Adjust Mode
3.1
Bit objects
Type
Designation
Operation
available
96
Ix,i
R/F
Output bits
64
Ox,i
R/F/W
internal Bits
256
Bi
R/F/W
System bits
24
Si
R/W (some)
Grafcet bits
96
Xi
Input bits
Max.
number
Word objects
Internal words
1024
Wi
R/W
Constant words
1024
CWi
System words
64
SWi
R/W
Register words
IWx,i
R/W
OWx,i
R/W
Monostables
Counters
Fast
counter
Registers
Drum
controllers
Time/date
blocks (or
"H" blocks)
32
31
Ti,P
(preset 9999)
R/W
Ti,V
(current value)
R/W
Mi,P
(preset 9999)
R/W
Mi,V
(current value)
R/W
Ci,P
(preset 9999)
R/W
Ci,V
(current value)
R/W
R/W
R/W
Ri,I
Ri,O
(input word)
(output word)
R
R
Di,V
(active tim e of
current step)
Di,S
(n of current
step 0-15)
DTP
DT
(1)
(1)
(1)
(1)
(1) W if modification was authorized when the block was configured (option
YES).
45
Adjust Mode
3.2
General
This mode enables the operator to modify the data according to the requirements
of the application. It does not permit any modification of the program itself.
The Adjust mode permits the following operations :
. Display, modification and forcing of I/O bits and internal bits,
. Display and modification of certain system bits,
. Display and modification of the contents of internal words, function block
parameters, and register words of intelligent modules,
. Display of constant words,
. Display of the activity and active time values of Grafcet steps.
If the PL7-2 software cartridge TSX P17 20FB containing the real-time clock is
installed on the TSX 17-20 micro-PLC, the Adjust mode also permits :
. Display and adjustment of the current time and date,
. Display of the time, date and cause of the last stop.
Accessing the mode
ADJ
S
Accesses the Adjust mode and displays the associated functions that are
available as follows :
REGLAGE PL72STOP
BITWRD[?]) X %
[BIT]
REGLAGE PL72STOP
[( H])
%
46
[[?]]
[X]
permits the display of the states (active or inactive) and the active time
values of Grafcet steps,
[%]
[[H]]
Adjust Mode
Selection of modes :
Example
Adjust mode
[ADJ]
TXTADJLGECTL
CLEAR
or
< QUIT >
Selection of functions :
Bits
[BIT]
Words
[WRD]
Function blocks
[?]
Grafcet steps
[X]
Real-time clock
[H]
BITWRD( [?]) X %
[( H])
Selection of sub-functions :
Bits
(I,O,B,SY)
Words
(W,COM,SW,
CW,IW,OW)
Function blocks
(T,M,C,D,R)
Real-time clock
(DTP,DT)
CLEAR
Validation
of the entry
ENTER
<>
<>
Q
QUIT
47
Adjust Mode
3.3
BIT
R
input bits,
output bits,
internal bits,
system bits.
REGLAGE PL72STOP
I O B SY
After pressing one of these 4 soft keys, the address of the bit required can be
entered and must then be validated by < ENTER >.
The bit is displayed in the byte to which it belongs and is indicated by an asterisk *
(or by F if it is forced).
[F:1]
I00,02=0
*
MOD
01010000
I00,02=0
MODF:0F:1UNF
I00,02=1
F
MOD
01010100
System bits
[MOD] Modifies the state of the bit.
Note :
SY08
MOD
=1
*
00100101
SY08
MOD
=0
*
00100100
. In the case of initialization by the program (SY0 set to 1) or by the terminal (by [INI]
in the Control mode), all the modifications m ade in the Adjust m ode are lost.
. The states of bits that have been forced have priority over the states that are
defined by the program.
. The states of output bits, internal bits and system bits that have been modified do
not have have priority over the states that are defined by the program.
. If a forced bit is present, the display of the status of the PLC, indicated by RUN or
STOP, is replaced by R.F or S.F.
. The forcing of output bits has no effect unless the PLC is running, or unless the
PLC is stopped and SY8 = 0. If the PLC is stopped and SY8 = 1, all the outputs
are reset to 0.
48
Adjust Mode
3.4
WRD
S
REGLAGE PL72STOP
W COMSW CW %
[W]
REGLAGE PL72STOP
IW OW
%
internal words,
system words
[CW]
[IW]
[OW]
After pressing one of these 4 soft keys, the address of the word required can be
entered and must then be validated by < ENTER >.
W0010=+
56
MODCNV
[CNV] converts the value of the word into the following codes :
Code
Identification
Decimal
(code by default)
letter D
Hexadecimal
letter H
BCD
letter B
Message
letter M
Binary
no letter
49
Adjust Mode
3.5
[( ?]
)
=
REGLAGE PL72STOP
( M ]) [
( C ]) [
( D ]) %
([T ]) [
REGLAGE PL72STOP
%
[( R])
[T]
timer
: 0 to 31
[M]
monostable
: 0 to 7
[C]
counter
: 0 to 31
(counter C31 is the fast counter/timer (FC)
[D]
drum controller : 0 to 7
[C]
register
: 0 to 3
After pressing one of these soft keys, the number of the function block required
can be entered and must then be validated by < ENTER >.
C02 P=0500
MOPV=0300
Counter
50
MOV
Adjust Mode
L
t
D02
STEP=00
0001101001000101
3.6
X
NOP
R02 15 I=+32767
FIFO
0=-32768
X015=1
B
t=0010X
1s
= the step is blocked, i.e. a breakpoint has been defined on this step by a
programming terminal. To delete the breakpoint, initialize the PLC as
described on page 44.
< > displays the previous step, < > displays the next step.
51
Adjust Mode
3.7
( H)
R
REGLAGE PL72STOP
DTP DT
1
DOP
YEAR=1988
YEAM& DH& MS& N
2
DAT
MOD
YEAR=1988
%
3
DAT
YEAR=1988
YEAM& DH& MS& N
DOP
YEAR=1988
YEAM& DH& MS& N
DOP
M&DAY=0705
YEAM& DH& MS& N
On screen 2 above :
[MOD] permits modification of the parameter displayed. After modification, validate by < ENTER > and display the next parameter by < >.
(*) Reminder of stop codes :
1 = stopped by the operator,
4 = stopped by a power break.
(**)
1
2
3
4
5
6
7
52
Reminder of N of weekdays :
= Monday,
= Tuesday,
= Wednesday,
= Thursday,
= Friday,
= Saturday,
= Sunday.
DAT
MOD
YEAR=1988
%
Year
DAT
MOD
M&DAY=0711
Month, day
DAT
MOD
H&MN=1127
Hour, minute
DAT
MOD
S&N =3601
Text Mode
4.1
Purpose
The TEXT mode (which is selected by default) allows the TSX T317 to be used
as an operator dialogue terminal for the exchange of messages with the TSX 1720 (display of alphanumeric messages from the TSX 17-20 and entry of numeric
messages on the keyboard of the TSX T317).
Accessing the Text mode
The TEXT mode is selected either :
. Automatically on connection to the
R
TSX 17-20 micro-PLC,
. Or by pressing the [TXT] soft key on
the Mode Selection display.
< ENTER > clears the screen,
< CLEAR > abandons the the Text mode and returns to the Mode Selection
Display.
TXT
TEXT MODE
Reception of a message
The user program can send a message (limited to 30 characters) to the terminal
by a using a TER type Text function block programmed in the transmission mode
(inputs S and O set to 1).
On reception, the message is displayed
from left to right on the two lines of the
LCD display.
VALVE 1 OPEN
VALVE 2 CLOSED
Transmission of a message
The message to be sent to the TSX 17-20 (limited to 30 characters) is entered by
using the numerical keypad of the terminal (0 to 9) and the keys < A > for the plus
sign (+) and < O > for the minus sign (-).
< CLEAR >
For the message to be received by the PLC, the user program must contain the
necessary TER type Text function block set to the reception mode (inputs S and
I set to 1).
Control characters
These characters can be transmitted by the Text block of the PLC in order to
position the cursor on the screen for the entry of a reply.
DEL (7FH)
BS (08H)
HT (09H)
VT (0BH)
LF (1AH)
CR (0DH)
:
:
:
:
:
:
53
Appendices
Contents
Section
Sub-section
Appendices
55
56
57
59
61
62
63
54
Page
60
Appendices
A.1 TSX T317 Technical Specifications
General
Dimensions : .......................................
Weight : ...............................................
Storage temperature : .........................
Operating temperature : ......................
Power supply : ....................................
Power consumption : ..........................
PLC link : .............................................
Printer link : .........................................
154 x 91 x 32 mm,
0.430kg
-20 to +70C without condensation,
0 to + 40C without condensation,
+5V supplied by the PLC,
80mA,
RS485,
RS232,
Protocol : transmission by monitoring the BUSY or
DTR signals.
Format :
1 start bit,
7 data bits,
2 stop bits.
Speed : 300, 600 or 1 200 baud,
Parity : odd, even or none,
Audio,
2 lines of 16 characters,
24 keys.
The back of the terminal is equipped with a magnet so that it can be attached to
any metallic surface.
Printer connections
Printer with DTR
Connect
and
Microline
82 A
9-point Sub-D
connector
7 (gray)
9 (orange)
2
SG
RD
11
gray
SSD
BUSY
SG
yellow
0V
RD
black
TD
white
DSR
DTR
orange
7
3
6
8
9
5-pin circular
connector
9-point Sub-D
connector
1 and 4
1
2
3
Audio output
0V
1
3
3 and 5
Audio input
55
Appendices
A.2 TSX 17 I/O Addressing
Addressing of discrete I/O
Ix,i
Ox,i
: Input bit,
: Output bit,
= the
0
0
.
.
.
.
Use by default
Input I0,00
Normal input
Output O0,00
Normal output
Use by default
Input I0,24
Normal input
Event-triggered input
Output O0,25
Normal input
Event-triggered input
Note :
Due to the reduced filtering of these inputs, it is necessary to use shielded cables
and to connect the shielding to the screw-terminal provided on the front of the PLC.
56
Appendices
A.3 PL7-1 Summary of Modes and functions
CNF : Configuration mode
Permits the configuration of the memory, the time bases, the preset values, the
I/0, and the fast counter/timer C15.
MEM/CLM = clears the memory (configuration, program and data),
SIZ/CNV
Ti,B
ti,P/Ci,P
I/O
C/T
Variable
Ix,i
Ox,i
Xi
Bi
SYi
Sx,j
Ti
Ci
SCi
Read
yes
yes
yes
yes
yes
yes
TiB,V,P
CiV,P
SCi,j
SRi
C15
SRi,j
V,P
I0,24/I0,25
yes
Modify
no
yes
no
yes
yes
yes
V,P
V,P
SCi,j
CU/CD
SRi,j
V,P
no
Force
yes
yes
no
no
no
yes
no
no
no
no
no
no
57
Appendices
PL7-1 Summary of Modes and Functions (Contd.)
PRG : Program mode (contd)
In both these tasks (FST and SEQ) the operator can :
MOD
INS
DEL
END
SEL/RST/CPY/CUT
= select, cancel the selection, copy or delete a section of the program,
ADR
VIS
RUN/STO/INI
= run, stop or initialize the program,
SCH
= search for all or part of an instruction,
CLP
= clear (delete) the program (the configuration is retained).
PRT
COD
58
TSX
I/O
TER
Appendices
A.4 PL7-1 Operation Code and Operand Entry Guide
Operation
codes
Keystrokes
Operands
Keystrokes
L / LN
..
%
N
Ii,j
.....
A / AN
..
%
N
Oi,j .....
O / ON
..
%
N
Bi ......
XO
SYi .....
Sx,i .....
XO
P
.....
......
5
Shift
......
Ti
......
......
Ci ......
.....
S*
SCi [SC] ..
Shift
R*
.....
=/=N
..
SCi,j .....
%
N
2
3
SRi [SR] ..
Shift
=*
.....
SRi,j .....
CU
.....
IM ......
3
6
Shift
CD
H
.....
Xi
......
%
N
......
Shift
JMP
....
XO
XO
LAB
....
.....
NOP
NOP
....
NOP
EP
NOP
Remarks :
= * = "i" ..
* "i" ..
# .......
XO
XO
XO
and
= * = POST
Shift
key
59
Appendices
A.5 PL7-1 Operation Code and Operand Associations
Operands
Operations
I/Oi,j Bi SYi Ti
Ci
Xi
L, LN
X X(k)
A, AN
O, ON
XO
X X(k)
S*
R*
=,=N
=*
CU
except
C15
CD
JMP
LAB
from 1 to 127
=*= "i"
initial steps
- * - "i"
# "i"
=*=
Post-processing
EP
NOP
X = Possible associations
- = Impossible associations
60
Appendices
A.6 PL7-1 Instruction Execution Times
General
The difference between the minimum and maximum execution times depends on
the state of the operand scanned by the processor, the appearance or not of a
rising or falling edge, and whether or not compilation or interpretation are
necessary.
Table of execution times
Operation code
L,LN
A,AN,O,ON
XO
P
S
S*
R*
=*
=,=N
CU,CD
H
N
JMPI
LAbi
= * =, - * #
NOP
EP
Operand
Minimum
(sec)
I; O; B; SY; Xi; T; S
6 (*)
C (kxxxx)
40
SCi,j; SRi,j
18
I; O; B; SY; X; IM; T; S
2
SCi,j; SRi,j
5
I; O; B; SY; X; IM; T; S
4
SCi,j; SRi,j
6
B
19
I; O; B; SY; X
2
T
2
C
2
SCi,j; Sri,j
2
I; O; B; SY; X
2
T
2
C
2
SCi,j; SRi,j
2
I; O; B; X
2
I; O; B; X
2
I; O; B; X
21
I; O; B; X
6
T; SRi,j
32
C
14
SCi
14
SRi
14
T
26
3
2
11
2
2
2
Maximum
(sec)
6 (*)
51
18
6
6
6
6
21
6
50
35
5
6
31
35
18
19
20
21
6
50
40
19
27
28
3
23
14
14
2
2
(*) If a program is written in the Fast task, add 8 microseconds to the above execution times
for the operation codes L and LN assigned to the operands I, O, B, SY, X, T and S.
61
Appendices
A.7 PL7-2 System Bits and Words
System bits
Bit
Function
Set/Reset
(*)
S or U S
S or U S
Initial
state
0
0
U
S
S
S
U
outputs forced to 0
I/O fault
battery absent or defective
display of the contents of SW16
C31, V = C31, P
requests reactivation of transistor
outputs
1 = overflow of unsigned arithmetic or
circular shift
U
S
S
U
SU
0
1
0
0
0
US
SU
SY18
SY19
SY20
SU
U
SU
0
1
0
SY21
SY22
SY23
1 = initialization of Grafcet
1 = resetting of Grafcet
1 = freezing Grafcet
US
US
US
0
0
0
SY00
SY01
1 = cold restart
1 = hot restart
SY02
SYO5
SY08
SY09
SY10
SY13
SY14
SY15
SY16
1
0
1
1
1
1
SY17
=
=
=
=
=
=
System words
Word
SW16
SW17
SW18
SW24
SW41
SW50
SW53
SW54
SW57
SW58
SW59
Function
word displayable in BCD on the optional
digital display module TSX 17 ACC2
checksum of the internal RAM of the PLC
checksum of the memory cartridge
address of the PLC on the UNI-TELWAY bus
length of the longest scan cycle (base 10ms)
century, year, month, day, hour, minute,
to seconds, tenths of seconds and stop code
of RT clock (current date and time in BCD)
century, year, month, day, hour, minute,
to seconds, tenths of seconds and day of the
week of RT clock (date and time of last stop
in BCD)
current time of the day in m inutes (0 to 1439)
current day of the year (0 to 366)
W = written
R = read
62
Written or read by
System
Program
W/R
W
W
R
R
W/R
R
R/W
Appendices
A.8 TSX T317 Error Messages
Message
Explanation
CNV impossible
X = 0 audio signal
X = 1 checksum
X = 2 number of bytes
X = 3 comparison
X = 4 recognition (header)
EPROM fault
RAM fault
Imposs. in RUN
Full memory !
Prog. protected
TSX refuses
No reply from TSX The terminal is not compatible with the PLC to which it is
connected.
63
Index
Pages
64
Battery ..............................................................................................................
Diagnostics .................................................................................................................. 38
Display of internal bits B240 to B255 .....................................................................
6, 21
Display of variables ................................................................................
37, 42, 48 to 51
Grafcet ............................................................................................
Printing ...........................................................................................................
3, 5, 39, 55
Program and data storage ...........................................................................................
20
Program jumps .............................................................................................. 8, 10, 11, 23
Program memory ........................................................................................... 11, 28, 30, 32
Program modification ...................................................................................................
32
Protection of the program ............................................................................................
36
Watchdog ...............................................................................................................
19, 20, 38
39, 43, 46
9, 38