Академический Документы
Профессиональный Документы
Культура Документы
Contents
Section
X
1. PL7-1 Language
Part 1.
PL7-1 programming for the
TSX 17-10/17-20 micro-PLCs
Sub-section
1.1 Presentation
Page
3
1.2 I/O Addressing 4
1.3 Operands 5
1.4 Operation Codes 7
1.5 PLC Scan Cycles 9
2. PL7-1 Language : 2.1 Characteristics 11
Structure and Functions 2.2 Timer 12
2.3 Counter 13
2.4 Shift Register 14
2.5 Step Counter 15
2.6 Fast Counter/Timer (TSX 17-20 only) 16
3. PL7-1 Language : Grafcet 3.1 Characteristics 17
3.2 Program Structure 18
4. Program Utilities 4.1 Mains Power Break/Return 19
4.2 Initialization of the PLC 20
4.3 Program and Data Back-up Storage 20
4.4 RUN/STOP Input and SECU Output 20
4.5 Diagnostic Aids 21
4.6 Application Operating Modes 22
4.7 Programming Guidelines 23
4.8 Programming Examples and Rules 24
5. TSX T317 Operating Modes 5.1 Presentation of the TSX T317 Terminal 25
5.2 Power-up 28
5.3 Presentation of the Operating Modes 29
5.4 Configuration Mode 30
5.5 Program Mode 32
5.6 Control Mode 34
5.7 Transfer Mode 35
5.8 Adjust Mode 37
5.9 Diagnostic Mode 38
5.10 Terminal Mode 39
2
1 PL7-1 Language 1
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.
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 S0015 -*- 03 Step 3
S0016 L B012 Filling
B012 S0017 # 04
S0018 # 05
4 5 S0019 -*- 04 Hopper 8
S0020 L I0,07 Level reached
S0021 # 06
I0,07 B015
S0022 -*- 05 Hopper 9
S0023 L B015 Level reached
6 7 S0024 # 07
S0025 -*- 06 Hopper 10
=1 - - - –
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.
3
1 PL7-1 Language
TSX 17 micro-PLCs
Number Event
Type of I/O Inputs Outputs Inputs
TSX 17-10/20 basic 20 from I0,00 from O0,00 I0,24 (*)
PLC with 20 I/O (12I + 8O) to I0,11 to O0,07 I0,25 (*)
4
1 PL7-1 Language 1
1.3 Operands
List of bit operands
Intermediate IM 1 1 no 2.1
memory bits
* The first 128 internal bits (from B0 to B127) are saved after a mains power break
(hot restart).
5
1 PL7-1 Language
Operands (Cont’d.)
List of system bit operands
Initial Set/
Bit Function state Reset (*) Section
6
1 PL7-1 Language 1
(*) 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 Pre-
processing section.
7
1 PL7-1 Language
Grafcet instructions :
Processing section in
Instruction Significance which it can be used
=*=i Represents the initial step i (*) Sequential
(i = 1 to 62)
_*_i Represents the step i (*) Sequential
(i = 1 to 62)
#i Activates step i and deactivates the Sequential
current (upstream) step
# Deactivates the current step without Sequential
activating a new step
= * = POST Indicates the start of the Post-processing Post-processing
section
Xi Bit associated with step i Pre-processing,
Sequential and
Post-processing
sections
(*) The maximum number of steps that can be used, including initial steps, is 62.
8
1 PL7-1 Language 1
Terminal dialog
S0000 L I0,01
S0001 A I0,02 Program
..... . .... Scanning
EP
Terminal dialog
S0000 L SY00
S0001 A SY01 Pre-processing
..... . ....
S0052 =*= 01
S0053 L B0004
Sequential processing
S0054 A I0,03
(Grafcet)
S0055 # 02
S0000 L SY00
S0001 A SY01
Post-processing
..... . ....
EP
Note :
When the PLC is stopped, the scan cycle is as follows :
. Terminal dialog, reading of inputs, updating of outputs
. And, if SY08 = 1, the outputs are reset to 0,
SY08 = 0, the outputs retain their states.
9
1 PL7-1 Language
Master task
Reading of the input byte
configured in the Fast task
F0000 L I0,24
Scanning of the Fast
F0001 A B108
..... . .... task program
EP
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 PL7-1 Language : Structure and Functions 2
2.1 Characteristics
Instructions
A PL7-1 language instruction occupies one memory address and is composed of :
Program memory
The number of lines (i.e. instructions) that can be used is limited by the size of the
memory, as follows :
Micro-PLC 8K Memory 24K Memory
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 Equivalent program (without the use of "IM")
L I0,01 L I0,01 I0,01 I0,02 O0,06
A I0,02 A I0,02
LN I0,03 = B117
A I0,04 LN I0,03
O IM A I0,04
= O0,06 O B117 I0,03 I0,04
... ..... = O0,06
... .....
11
2 PL7-1 Language : Structure and Functions
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 32 (from T00 to T31)
Time bases (Ti,B) 4 (10ms, 100ms, 1s, 1mn)
Preset value (Ti,P) 0000 to 9999
L I0,01
I0,01 :
= T00
L T00
T00 :
= O0,01
.........
O0,01 :
Time delay
Remarks : . 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 adjust-
ment value is lost).
12
2 PL7-1 Language : Structure and Functions 2
2.3 Counter
The counter function permits the upcounting or downcounting of external or
internal events. The preset value can be modified by the TSX T317 terminal in the
ADJUST mode.
Characteristics
Number 15 (from C00 to C14)
Preset value (Ci,P) 0000 to 9999
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 L C00 K00123
A SY 17
Counter C00 different from 123 Counter C00 more than or equal to 123
Counter C00 more than 123 Counter C00 less than or equal to 123
Remarks . 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 PL7-1 Language : Structure and Functions
Characteristics
Number of registers 8 (from SR0 to SR7)
Number of bits in a register 16 (from SRi,00 to SRi,15)
Operation
Initial State : 1 1 0 0 0 0 0 0 1 1 0 1 1 1 0 0
CU SRi shifts the
Bit 15 Bit 00
bits one place to
the left
The bit shifted out : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
(bit 15) is lost 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 Shift the register one place to the left every second.
Bit 00 must take the inverse state of bit 15.
Program
LN SR 0,15
= SR 0,00
L SY 06
CU SR 0
14
2 PL7-1 Language : Structure and Functions 2
Characteristics
Number of step counters 8 (from SC0 to SC7)
Number of steps of a step counter 256 (from SCi,000 to SCi,255)
Operation
Input CU
Output CD
Nr. of step at 1 0 1 2 3 2 1
L I 0,03
O SC 0,003 setting to step 000
S SC 0,000
L I 0,02 incrementation
CU SC 0
L SC 0,000
= O 0,01
L SC 0,001 activation of the outputs
= O 0,02
L SC 0,002
= O 0,03
Remark : On a cold restart, the active step is reset to 0 and step 0 of each step
counter is set to 1.
15
2 PL7-1 Language : Structure and Functions
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.
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.
Remarks . 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.
16
3 PL7-1 Language : Grafcet 3
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 initial step i (*),
-*-i step i (*),
# deactivation of the current step without activation of any other step,
#i activation of step i after deactivation of the current step,
= * = POST start of Post-processing and end of Sequential processing,
xi read/write bit associated with step i.
(*) The first step = * = i or - * - i that is written indicates the start of Sequential
processing and therefore the end of Pre-processing.
Simultaneous sequences
-*- 08 -*- 14
L I0,07 L I0,10 14
8
# 09 # 15
# 10 # 16
I0,07 I0,10
-*- 09 -*- 15
L I0,08 L I0,11
# 11 9 10 15 16
# 17
-*- 10 -*- 17
L I0,09 I0,08 I0,09 L X16 I0,11
# 12 A I0,12
-*- 11 11 12 A I0,13 17
L X12 # 18
# 13 -*- 16
-*- 12 =1 L X18 I0,12 I0,13
L X11 #
13 18
# 13 -*- 18
........ L I0,14 I0,04
........
17
3 PL7-1 Language : Grafcet
Master task
Pre-processing :
= a series of instuctions
S000 L.... Role
.... Processing of :
.... - mains break/return,
- failures,
Pre-processing - application operating modes :
Sn ....
. 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 :
Sn+1 =*= i = a series of instructions
....
Role
Sequential processing - Sequential processing of the application :
steps and transitions and their associated
Sj .... actions and conditions.
Post-processing :
Sj+1 =*= POST
.... = a series of instructions.
Role
Post-processing The processing of :
- the commands from the Sequential proces-
Sk EP sing 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
4 Program utilities 4
Remark 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
4 Program utilities
Example L SY01 If SY01 = 1 (hot restart) then set SY00 to 1 to initialize the PLC.
S SY00 These two bits are reset to 0 by the system at the end of the next cycle.
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
4 Program utilities 4
System bits
SY10 = 0 : I/O module fault or configuration fault,
SY13 = 1 : Back-up battery absent or defective.
21
4 Program utilities
NO Processing
22
4 Program utilities 4
Consequences :
. deactivation of all the active steps,
. stopping of the scan of the Sequential processing section.
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
4 Program utilities
B017
The operation code L or LN always stores the logical result of the previous line
in the IM memory until the next operation code L or LN is encountered.
24
5 TSX T317 Operating modes
P
Operand and numeric keys
After selecting the operation code, select the operand and its number :
1st action : 1st external marking (ope- I O B
rand). For the 2nd external 7 8 9
marking, if it exists, press
Shift + the key. TMR SY/S X/IM
26
5 TSX T317 Operating modes 5
Other keys :
The other keys (operation codes, operands, numbers) are represented between
the symbols < and > as follows :
. Keys CU and X : ................................... < CU > <X>
. Keys IM and [SC] : ................................... < IM > < SC >
. Keys Enter and Quit : ................................... < ENTER > < QUIT >
27
5 TSX T317 Operating modes
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 SELFTEST
sequence of keys except < CLEAR > keyboard test?
and check for the corresponding dis-
play.
28
5 TSX T317 Operating modes 5
CNF©ADJ©PRG©CTL% TRF©TER©DGN© %
Action on a soft key
SELECTED MODE
CLEAR or < SHIFT > < CLEAR >
© © ©
Action on a soft key
CLEAR or < SHIFT > < CLEAR >
Validation
of the entry
ENTER
(*) Depending on the function selected, sub-functions may be proposed by the soft keys.
29
5 TSX T317 Operating Modes
Memory function
MEM Gives access to 3 possibilities :
[SIZ]* choice of the size of the RAM SIZE: 8k -->24k
R
memory : 8 or 24 K. SIZ©CNV© ©CLM
[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]* clears the entire memory (configuration, program and data).
Confirmation by < ENTER >.
30
5 TSX T317 Operating Modes 5
31
5 TSX T317 Operating Modes
32
5 TSX T317 Operating Modes 5
Search function
SCH This function permits the search for all or part of an instruction.
=
Enter the instruction and press < ENTER >
Under each character a cross appears,
SCH: L I0,01
corresponding to a numerical key from 0 SEL: xxxxxxxxxx
to 9. 0123456789
When a cross is present, the correspon- Example :
ding character is searched for. To search for the lines containing the operand
< ENTER > starts the search. The first I0,01, enter an instruction containing this operand
instruction found is displayed with its and then press
address. < 0 > < 1 > < 2 > < 3> < 4 > < ENTER >
to delete the crosses under the unwanted charac-
< ENTER > then continues the search.
ters, thus leaving the crosses 5, 6, 7, 8, 9 under the
< CLEAR > halts the search, another characters of the searched for operand I0,01.
instruction can then be entered.
33
5 TSX T317 Operating Modes
Tsx1720_V10 STOP
CNF©ADJ©PRG©CTL%
0
S0000 L SY01 S0000 L SY01
QUIT
ADR© ©INS% MOD©DEL©VIS©END%
S0000 L SY01
SEL©RST©CPY©CUT%
34
5 TSX T317 Operating Modes 5
Print function
PRT The screen shows the configuration of the data link (which is configured by default
to 600 baud with no parity after each power up).
R The format is fixed : 1 start bit, 7 data bits, 2 stop bits.
PRT: 600 NO
[GO] starts the printout,
[BAU] permits selection of 300, 600
or 1200 baud, GO ©BAU© ©PAR%
[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, LISTING: ALL
[PRG] pro gra m onl y (Fas t t as k + ALL©CNF©PRG©SEQ%
Master task),
[SEQ] Master task only.
During printing it is possible to :
[ABO] abort printing,
[W/R] halt printing (Wait) if the key is
*** CONFIG. ***
hit once, and restart printing if it
is hit twice.
ABO© ©W/R
"Audio tape recorder" function
TR [CMP] compares a program in an audio
TRF: TSX TR
S
TR cassette with the program in
the PLC. CMP©=≤ > © <=© GO
[⇒] copies the program in the PLC Example :
to a TR cassette. To copy the program in the PLC to a TR cassette,
press :
[⇐] copies the program in a TR
cassette to the PLC. [ ⇒ ] [GO]
then start the TR in the record mode and confirm
[GO] starts the selected function. 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
5 TSX T317 Operating Modes
TRANSF.MODE STOP
PRT©TR ©EPR©
36
5 TSX T317 Operating Modes 5
T00 P=0015x 1 s
. To display and modify the current va-
lue of timer T00 press :
< TMR > < 0 > < ENTER > MoP©V=0007 R©MoV
The display comprises :
P preset value (Ti,P),
1s time base (Ti,B),
V current value (Ti,V),
[MOP] to modify the preset value,
[MOV] to modify the current value,
validation by < ENTER >
R timer running, or
D timer done, or
_ timer initialized (after a cold restart, INIT by terminal, or RESET by program).
Note : . 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 TSX T317 Operating Modes
38
5 TSX T317 Operating Modes 5
Warning : For obvious safety reasons, it is strongly recommended to stop the PLC
before making any modifications to the program. However, it is possible to
modify the program while the PLC is running in order to make modifications
that do not require the stopping of the application. All such modifications
should be made by authorized personnel only and remain the entire
responsibility of the user.
Before making any modification to the program it is essential to be fully
aware of its consequences on the application and to ensure that all the
necessary measures and precautions have been taken.
39
TSX T317 Terminal
X Part 2
PL7-2 adjustement and operator
and operator dialogue
with the TSX 17-20 micro-PLC
Contents
Section Sub-section Page
1 Introduction 1.1 Presentation of the terminal 41
1.2 Connection 42
1.3 Power-up 42
1.4 Operating modes 43
2. Choice of Language 2.1 Choice of language 44
and Control Mode 2.2 Control Mode 44
3. Adjust Mode 3.1 Accessible PL7-2 Data Objects 45
3.2 Presentation of the Mode and 46
Associated Functions
3.3 Display, Modification and Forcing of Bits 48
3.4 Display and Modification of Words 49
3.5 Display and Modification of Function Blocks 50
3.6 Display of Grafcet Steps 51
3.7 Display and Modification 52
of the Real-Time Clock
4. Text Mode 4.1 Presentation of the Mode 53
40
1 Introduction 1
Soft keys
When the lower line of the screen displays the following operating mode
mnemonics, the 5 blue keys act as soft keys. With PL7-2 language, the internal
and external markings of these keys have no significance.
%
Operation code keys : Not used with PL7-2 language. N
FUN 1 2 3
Special keys
Enter : Validates the entry or confirms CB
a function and goes to the next
0
line,
Shift Quit Clear Enter
Clear : Abandons the function and goes
to the previous line,
Quit : Abandons the mode. Shift, FUN and CB are not used.
In the text :
The same key is represented between square brackets : [ADJ]
Other keys : The other keys are represented between the symbols < > as shown
in the examples below :
. Enter key ........................................................................ < ENTER >
. Cursor control key ↑ ........................................................................ < ↑ >
41
1 Introduction
1.2 Connection
The terminal must be connected by its
TSX 17-20 PL7-2
cable to a TSX 17-20 micro-PLC equip-
ped 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).
The terminal is energized by the power
supply of the micro-PLC.
TSX P17 20 FA/FB
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 SELFTEST
test the keyboard, press any key or
sequence of keys except < CLEAR >
keyboard test?
and check for the corresponding dis-
play.
< 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 *TSX T317 V2.1*
software version of the terminal. copyright TE 88
If the connection is OK, the terminal
automatically enters the Text mode
(operator dialogue mode).
TEXT MODE
Mode selection display
To call up the Mode Selection Display
press < CLEAR >.
< CLEAR >
42
1 Introduction 1
MODE SELECTED
CLEAR
© © ©
or
< QUIT >
Action on a soft key
Validation
of the entry
ENTER
(*) Depending on the function selected, sub-functions may be proposed by the soft keys.
43
2 Choice of Language and Control Mode
CTL 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
NOP TSX 17-20, e.g. V1.0.
Function "RUN"
requests execution of the program. Tsx1720_V10 STOP
Confirmation by < ENTER >. RUN©STO©INI©
Function "STOP"
requests stopping of the program.
Confirmation by < ENTER >.
Tsx1720_V10 STOP
The program stops at the end of its scan
confirm RUN?
cycle after updating of the outputs.
Function "INIT"
requests initialization of the program, whether it is running or stopped. Confirma-
tion 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.
44
3 Adjust Mode 3
Bit objects
Grafcet bits 96 Xi R
Word objects
Internal words 1024 Wi R/W
8 OWx,i R/W
(1) W if modification was authorized when the block was configured (option
YES).
45
3 Adjust Mode
46
3 Adjust Mode 3
Selection of sub-functions :
Bits (I,O,B,SY) SUB-FUNCTION SELECTION SCREEN
Words (W,COM,SW, © © ©
CLEAR
CW,IW,OW)
Function blocks (T,M,C,D,R)
Real-time clock (DTP,DT)
Validation
of the entry
ENTER
47
3 Adjust Mode
System bits
[MOD] Modifies the state of the bit.
SY08 =1 *
MOD© 00100101
SY08 =0 *
MOD© 00100100
Note : . 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
3 Adjust Mode 3
S
REGLAGE PL72STOP REGLAGE PL72STOP
W ©COM©SW ©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 >.
[CNV] converts the value of the word into the following codes :
Code Identification
Decimal letter D
(code by default)
Hexadecimal letter H
BCD letter B
Message letter M
Binary no letter
49
3 Adjust Mode
[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 >.
50
3 Adjust Mode 3
B = 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
3 Adjust Mode
DAT YEAR=1988
Display of the date and time
YEA©M& D©H& M©S& N
1 3
• On screens and above, by using the following keys :
[YEA] displays the year,
[M&D] displays the month and day,
[H&M] displays the hours and minu- DOP YEAR=1988
tes, YEA©M& D©H& M©S& N
[S&N] displays the seconds and :
. code of the last stop (*) if [DTP]
was selected, DOP M&DAY=0705
. N° of the day of the week if YEA©M& D©H& M©S& N
[DT] was selected (**).
• Or on screens 1 or 2 above, by using the keys < ↑ > < ↓ >.
52
4 Text Mode 4
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).
VALVE 1 OPEN
On reception, the message is displayed
VALVE 2 CLOSED
from left to right on the two lines of the
LCD display.
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 > pressed once, deletes the last character entered,
pressed twice, deletes all the characters entered,
pressed 3 times, returns to the Mode Selection Display.
< ENTER > validates and transmits the message.
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) : clears the screen and positions the cursor top left,
BS (08H) : →
HT (09H) : ←
used to position the cursor on the screen,
VT (0BH) : ↑
LF (1AH) : ↓
CR (0DH) : positions the cursor bottom left.
53
TSX T317 Terminal
X Appendices
Contents
Section Sub-section Page
Appendices A.1 TSX T317 Technical Specifications 55
A.2 TSX17 I/O Addressing 56
A.3 PL7-1 Summary of Modes and Functions 57
A.4 PL7-1 Operation Code and Operand 59
Entry Guide
A.5 PL7-1 Operation Code and Operand 60
Associations
A.6 PL7-1 Instruction Execution Times 61
A.7 PL7-2 System Bits and Words 62
A.8 TSX T317 Error Messages 63
54
Appendices
The back of the terminal is equipped with a magnet so that it can be attached to
any metallic surface.
Printer connections
55
Appendices
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.
Note : The intelligent modules also have I/O bits which are addressed in the same way as
for the discrete I/O extensions.
56
Appendices
Permits the reading, writing and modification of the user program, which may be
composed of :
FST = fast task (TSX 17-20 only)
SEQ = master task (sequential)
57
Appendices
58
Appendices
%
L / LN .. L L N Ii,j ..... 7
%
A / AN .. A A N
Oi,j ..... 8
%
O / ON .. O O N
Bi ...... 9
S ...... S Ti ...... 4
R ...... R Ci ...... 1
%
=/=N .. = = N
SRi [SR] .. 3
Shift
=* ..... = =
SRi,j ..... 3
CU ..... A A
IM ...... 6
Shift
CD ..... O O
Xi ...... 6
%
H ...... N
Shift
JMP .... XO XO
LAB .... P P
and
= * = POST L L L
Shift key
59
Appendices
A, AN X X X X - - X - X X X X
O, ON X X X X - - X - X X X X
XO X X X X - - X - X X X X
P - X - - - - - - - - - -
S X X X X X(k) - X - X - X -
S* X X - - - - - - - - X -
R* X X - - - - - - - - X -
=,=N X X X X - - - - X - X -
=* X X - - - - - - X - X -
CU - - - - X X - X - - - -
except
C15
CD - - - - X X - X - - - -
H - - - X - - - - - - - -
JMP
LAB from 1 to 127
EP
NOP
X = Possible associations
- = Impossible associations
60
Appendices
(*) 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
System words
Written or read by
Word Function System Program
SW16 word displayable in BCD on the optional - W/R
digital display module TSX 17 ACC2
SW17 checksum of the internal RAM of the PLC W R
SW18 checksum of the memory cartridge W R
SW24 address of the PLC on the UNI-TELWAY bus - W/R
SW41 length of the longest scan cycle (base 10ms) W R
SW50 century, year, month, day, hour, minute,
to seconds, tenths of seconds and stop code W R/W
SW53 of RT clock (current date and time in BCD)
SW54 century, year, month, day, hour, minute,
to seconds, tenths of seconds and day of the W R
SW57 week of RT clock (date and time of last stop
in BCD)
SW58 current time of the day in m inutes (0 to 1439)
W R
SW59 current day of the year (0 to 366)
W = written
R = read
62
Appendices
63
Index
Pages
64