Schneider Electric TSXAXT200 Up / Downcounting modules User Guide
Reklamë
Reklamë
___________________________________________________________________________ X
Contents
___________________________________________________________________________
Presentation
1.1
Description
1.2
Physical Description
1.3
Initiation
Page
3
________________________________________________________________________________________
Operation and Programming
2.1
Architecture
2.2
Principle of Counting
2.3
Maximum Counting rate
2.4
Additional Functions
2.5
Programming the TSX AXT 2 00
2.6
Examples of Using PL7-2
9
________________________________________________________________________________________
Installation
3.1
Locating the Module
3.2
Preparing the Module
3.3
Connecting the Module
33
________________________________________________________________________________________
Start-up and Maintenance
4.1
Checking the Connections
4.2
Troubleshooting
45
________________________________________________________________________________________
Appendices
5.1
Technical Characteristics
5.2
Signed Binary Code
49
___________________________________________________________________________
1
___________________________________________________________________________ X
Contents
___________________________________________________________________________
___________________________________________________________________________
2
___________________________________________________________________________ X
Presentation Section 1
___________________________________________________________________________
1.1
Description
Page
4
4
4
4
________________________________________________________________________________________
1.2
Physical Description 5
5
6
________________________________________________________________________________________
1.3
Initiation 6
6
7
8
___________________________________________________________________________
3
_______________________________________________________________________________________
1.1
Description
1.1-1 General
The TSX AXT 2 00 is an input module with two up/downcounting channels that is designed for use with Telemecanique’s TSX 47/67/87 programmable logic controllers
(PLCs).
_____________________________________________________________________
1.1-2 Functions
Upcounting
The TSX AXT 2 00 module has two identical but independent channels which can count pulses with frequencies up to 2 KHz. This maximum rate of counting is directly linked to the scan time of the user program, (see Sub-section 2.3).
Upcounting and Up/downcounting
Each channel has an up/downcounting discriminator that increments or decrements the counter according to the counting direction.
Application Examples
. Counting of parts,
. Positioning of a mobile,
. Measurement of velocity and frequency,
. Measurement of length,
. Measurement of flow,
. Computing a mobile’s position,
. Movement control and monitoring,
. etc.
____________________________________________________________________
1.1-3 Design
Protection
The input channels are protected against industrial noise and are isolated from each other and from the internal voltages of the PLC.
Easy Use
The 5 VDC or 24 VDC inputs are compatible with discrete devices, such as proximity detectors and limit switches, and incremental encoders. The high-performance configuration mode and its related software are easy to implement (see Section 2).
Easy Operation
The module and its connectors can be installed and removed with the power on. The
PLC processor is continuously informed of the module status and the user program can access any information for subsequent processing.
___________________________________________________________________________
4
Presentation 1
_______________________________________________________________________________________
1.2
Physical Description
1.2-1 TSX AXT 2 00 Module
The TSX AXT 2 00 module can be installed in any slot designed for PLC configuration inputs/outputs. The TSX AXT 2 00 module is composed of:
1 A metal case which protects the components physically and against radiated electrical noise.
2 An opening which gives access to the two upcounting/downcounting discriminator switches for each channel.
3
One fault LED (F) for each channel, which comes on when the counting capacity is exceeded.
4
Two LEDs per channel indicating the logic states of the two counting inputs
(In0 and In1).
5
One LED per channel indicating the logic state of the reset input (RST).
6 One LED per channel indicating the logic state of the inhibit input (INH).
7 One socket connector for each channel
(9-pin Sub-D type).
8 One blank label per channel for the user’s identifying marks.
1 2
F
TSX SCM 20
IN0
IN1
RST
OK
Ch0
Ch1
F
IN0
IN1
RST
OK
7
8
3
4
5
6
___________________________________________________________________________
5
_______________________________________________________________________________________
1.2-2 Locating Devices
The rear of the module is equipped with:
1
Factory-coded locating devices, which prevent the risk of error when modules are installed.
2
Locations for a second set of locating devices (optional), which can be coded by the user to distinguish between modules of the same type but which are configured or adjusted differently (e.g.
with different discriminator switch settings).
3 A device that centres the module.
5
7
1
2
3
____________________________________________________________________
1.3
Initiation
________________________________________________________________________________________
1.3-1 Equipment Required
For this initiation exercise in the use of the TSX AXT 2 00 module, the following equipment is required:
. One TSX AXT 2 00 module and one TSX CAC 04 connector kit,
. One TSX 47-10/20 PLC version V3 or higher (*),
. One TSX RAM 8/16/32 8 memory cartridge,
. One programming terminal,
. Three pushbuttons (or 2-wire type sensors),
. One 24 VDC power supply.
_________
(*) This initiation exercise can be conducted in the same way on TSX 67/87 PLCs (refer to subsection 2.5-5).
___________________________________________________________________________
6
Presentation 1
_______________________________________________________________________________________
1.3-2 Preparation of Hardware and Programming
1. Prepare the TSX 47 PLC and its programming terminal.
2. Check that the discriminator switches on the TSX AXT 2 00 module are set to OFF.
(See Sub-section 3.2 of this manual).
3. Install the TSX AXT 2 00 module in slot 0 of rack 0.
If the module is installed in another slot, the bit addresses used in the program must be modified accordingly.
4. Connect the 3 pushbuttons (INH, RST and In0) and the 24 VDC power supply to the
TSX CAC 04 connector as shown in the wiring diagram below.
5. Plug this connector into the upper socket (i.e. the socket of Channel 0) on the front of the TSX AXT 2 00 module.
0V DC power supply 24 V
Inhibition
Resetting
Counting
INH
RST
In0
TSX CAC 04
3
4
1
2
5
6
7
8
9
___________________________________________________________________________
7
_______________________________________________________________________________________
6. Enter the Ladder language program below in the Master task.
"COUNTING BITS
IØ,7
1
IØ,Ø
L
IØ,1
IØ,2
Reset
W1,Ø
( )
W1,1
( )
W1,2
( )
Acquisition of counting bits
IØ,Ø to IØ,4
IØ,3
2
IØ,4
"
W1,3
W1,4
( )
L
"RESULT WORD
3
Totalizing in the result word
_____________________________________________________________________
1.3-3 Module Operation
1. Select the DEBUG mode and switch to
RUN.
2. Select the ADJUST mode on the terminal and request the display of internal word W0 in decimal.
D
MOD
W0
ADJUST : WORD
0
CNV
RUN
The display opposite appears:
3. Actuate the pushbutton connected to the counting input In0 several times: on each rising edge, the internal word W0 is incremented by one unit.
4. While continuing to actuate the pushbutton connected to input In0, actuate the INH pushbutton to set the inhibit input to state 1: the internal word W0 stops being incremented.
5. Actuate the pushbutton connected to the reset input RST: the internal word W0 is reset to zero.
Note:
The front panel LEDs marked In0, INH, RST indicate the states of the corresponding inputs.
___________________________________________________________________________
8
___________________________________________________________________________ X
Operation and Programming Section 2
___________________________________________________________________________
2.1
Architecture
Page
10
10
11
________________________________________________________________________________________
2.2
Principle of Counting 12
12
14
15
________________________________________________________________________________________
2.3
Maximum counting rate 16
16
17
________________________________________________________________________________________
2.4
Additional Functions 18
18
18
19
20
________________________________________________________________________________________
2.5
Programming the TSX AXT 2 00 Module 21
21
21
22
22
24
________________________________________________________________________________________
2.6
Examples of Using PL7-2 24
24
26
28
30
___________________________________________________________________________
9
_______________________________________________________________________________________
2.1
Architecture
2.1-1 Block diagram
Input devices
. Limit switch,
. Proximity or
photoelectric detector,
. Incremental encoder.
TSX AXT 2 00 counting and positioning module
In 0
In 1
Channel 0
InH
PLC I/O bus
Ixy,0
Ixy,1
Ixy,2
Ixy,3
Ixy,4
Ixy,5
Ixy,6
Count value coded on 5 bits
Sign bit
Inhibit bit . Limit switch,
. Proximity or
photoelectric detector,
. Pushbutton,
. 24 VDC output from PLC.
RST
Ixy,7 Reset bit
≥
1 Ixy,S Overflow bit
. Limit switch,
. Proximity or
photoelectric detector,
. Incremental encoder.
. Limit switch,
. Proximity or
photoelectric detector,
. Pushbutton,
. 24 VDC output from PLC.
In 0
In 1
Channel 1
InH
RST
Ixy,8
Ixy,9
Ixy,A
Ixy,B
Ixy,C
Ixy,D
Ixy,E
Count value coded on 5 bits
Sign bit
Inhibit bit
Ixy,F Reset bit
___________________________________________________________________________
10
Operation and Programming 2
_______________________________________________________________________________________
2.1-2 Counting Functions
Inputs In0 and In1: 5 VDC and 24 VDC
On each channel, the module counts the pulses (rising edge) received on the counting inputs In0 and In1. The value of the count is coded on 5 bits which can be accessed by the user program.
. For upcounting applications, the discriminator is not utilized and only input In0 is used.
. For up/downcounting applications, the discriminator is utilized and both inputs
(In0 and In1) are used and connected to the device(s) that output the 90
°
out-of-phase signals.
These inputs are designed for incremental encoders; however, for applications not requiring as much precision, two devices such as proximity detectors may be used.
Up/Downcounting Discriminator
The discriminators are activated or deactivated by two switches on the module.
The discriminator detects the phase-shift between the two signals In0 and In1. A phaseshift of plus 90
°
between these two signals causes the count value to be incremented, whereas a phase-shift of minus 90
°
causes the count value to be decremented.
Reset Input RST: 24 VDC
This input can be connected to a 24 VDC device, or to the zero reference output of an incremental encoder. When the signal fed to this input goes high (state 1), the counting bits are reset to zero.
Inhibit Input INH: 24 VDC
This input can be connected to a 24 VDC device. When the signal fed to this input goes high (state 1), the counting is inhibited and stopped.
Fault light F
This fault light comes on when the counting capacity of the TSX AXT 2 00 module has been exceeded (overflow). In normal operation the light is unlit.
The fault can be cleared by setting the reset input RST to 1. The fault is also cleared automatically when the PLC is powered up.
Note:
The 5 or 24 VDC power for the input devices must be supplied by the user. It is not supplied by the
TSX AXT 2 00 module.
___________________________________________________________________________
11
_______________________________________________________________________________________
2.2
Principle of Counting
The TSX AXT 2 00 module has two independent input channels Ch0 and Ch1. Each of these channels has two counting inputs In0 and In1. Each channel can perform, independently of the other, the upcounting and downcounting functions.
____________________________________________________________________
2.2-1 Counting Bits
The module processes the count pulses. The PLC CPU can access the count values, which are coded on five bits, called counting bits, as follows:
. Channel 0 (Ch0)
. Channel 1 (Ch1)
Ixy,0
Ixy,8
Ixy,1
Ixy,9
Ixy,2
Ixy,A
Ixy,3
Ixy,B
Ixy,4
Ixy,C
Example of upcounting only
Only counting input In0 is used and the discriminator must be set to OFF.
Counting input
Count value
Channels
Counting bits
In0
Ch0
Ixy,4
Ixy,3
Ixy,2
Ixy,1
Ixy,0
In0
0 1 2
Ch1
Ixy,C 0 0 0
Ixy,B 0 0 0
Ixy,A 0 0 0
Ixy,9
Ixy,8
0 0 1
0 1 0
3 4
0 0
0 0
0 1
1 0
1 0
28 29 30 31
1
1
1
0
0
1 1 1
1 1 1
1 1 1
0 1 1
1 0 1
In this case, the sign bit of each channel (Ixy,5 or Ixy,D) is always at 0.
The maximum and minimum values that can be coded on the five counting bits are 0 and
+31 respectively.
___________________________________________________________________________
12
Operation and Programming 2
_______________________________________________________________________________________
Example of Up/Downcounting
Both counting inputs In0 and In1 are used and the discriminator must be set to ON.
Counting inputs In0
In1
In0
In1
Count value
Channels
Sign bit
Counting bits
Ch0
Ixy,5
Ixy,4
Ixy,3
Ixy,2
Ixy,1
Ixy,0
Ch1
Ixy,D
Ixy,C
Ixy,B
Ixy,A
Ixy,9
Ixy,8
0 1
0 0
0 0
0 0
0 0
0 0
0 1
2
0
0
1
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
-1
1
1
1
1
1
1
-2
1
1
1
1
1
0
-32
The maximum values that can be coded on the five counting bits are + 31 and - 32.
▲ phase shift of + 90
°
or
π
/2 ■ phase shift of - 90
°
or
π
/2
1
0
0
0
0
0
___________________________________________________________________________
13
_______________________________________________________________________________________
2.2-2 Dialogue with the PLC
The counting and sign bits of the TSX AXT 2 00 module acquired by the PLC CPU are updated implicitly at the start of the task as follows:
. Master task
If the module is programmed in the Master task, the counting bits are updated at the same time as the other inputs, as shown opposite.
. Fast task
If the module is programmed in the Fast task (*), the counting bits are updated at the start of the Fast task.
Updating of inputs
EXECUTION
OF
THE PROGRAM
(*) For the TSX 47-10/20, only one TSX AXT 2 00 module can be declared in the Fast task.
The updating of the counting bits by the CPU automatically reinitializes the TSX AXT 2 00 module by setting the counting and sign bits to 0.
Updating of outputs
However, during updating of the counting bits by the CPU, the incoming pulses on the counting inputs In0 and In1 continue to be counted by the module, and are updated by the CPU at the start of the next scan cycle.
Behaviour after a Power Restart
After an immediate, cold or hot power restart, the CPU automatically runs all or part of the configuration self-tests (depending on the type of restart). Throughout this time, the counting and sign bits are kept at state 0 irrespective of the states of the inputs In0 and
In1 on the TSX AXT 2 00 module.
During the first scan cycle of the task in which the module is configured, the counting value is zero: the counting and sign bits are in state 0.
___________________________________________________________________________
14
Operation and Programming 2
_______________________________________________________________________________________
2.2-3 Effect on User Program
On each scan of the task in which the module is configured, the user program must therefore store the counting bits transmitted when the inputs were updated and compute their sum.
Ixy,Ø
"COUNTING BITS
1
Ixy,1
F
Ixy,2
Ixy,3
2
Ixy,4
"
W1,Ø
( )
W1,1
( )
W1,2
( )
W1,3
( )
Storage of counting bits in internal word W1
W1,4
( )
F
"RESULT WORD
Totalizing in the result word WØ 3
F
Important:
The "RESULT WORD" contact network must be independent and downstream of the "COUNTING BITS" contact network.
___________________________________________________________________________
15
_______________________________________________________________________________________
2.3
Maximum Counting Rate
2.3-1 Maximum Frequency of Pulse Reception
To define the maximum pulse counting rate, the frequency at which the TSX AXT 2 00 module is updated by the PLC CPU must be known.
. If this period is
≤
15 ms, the maximum rate is 2 Khz,
. If this period is > 15 ms, the maximum rate is defined by the curve below.
To avoid exceeding the counting capacity of the module, the PLC must update the states of the counting bits before the module has received more than 31 input pulses (see Sub-section 2.4-3).
2
CR (Khz)
1,5
The maximum counting frequency thus depends directly on the period of the task in which the module is programmed.
1
0,5
0
0 20 40 60 80
Task period
(ms)
100
T
The curve above is therefore defined by the formula:
CR max. = 31 for T > 15 ms
T
T : The period between input updates (in ms), which is the same as:
. the period of a Fast or periodical task,
. the user program scan time of the Master task of TSX 47-J/10/20 PLCs.
CR : The counting rate of the CPU (in Khz).
Example:
For a period (T) of 60 ms, the maximum counting rate of the module is:
CR max. = 31 = 0.52 Khz or 520 Hz
60
___________________________________________________________________________
16
Operation and Programming 2
_______________________________________________________________________________________
2.3-2 Effect of Counting Accuracy on the Maximum Counting Rate
Counting Accuracy To Within 1 Pulse
If the application requires counting accuracy to within 1 pulse (e.g. comparison of a set point value with the count value to within 1 pulse), the counting rate of the module must not exceed the values given in the curve below:
To obtain counting accuracy to within
1 pulse, each channel of the TSX AXT 200 module must not receive more than 1 pulse in the period between two input updates by the CPU.
200
CR (Hz)
150
The counting rate required to obtain maximum accuracy therefore depends directly on the period of the task in which the module is programmed.
100
50
0
0 10 20 30 40
Task
Period
(ms)
T
50
The curve above is therefore defined by the formula:
CR max. = 1000 1
T
T = The period between input updatings (in ms), which is the same as:
- the period of a Fast or periodical task,
- the user program scan time of the Master task of TSX 47-J/10/20 PLCs.
CR = The counting rate of the module (in Hz) for a counting accuracy to within 1 pulse.
Counting Accuracy To Within n Pulses
For applications that require less accuracy (e.g. comparison of a set point value with a count value to within n pulses), the formula below is used:
CR max. = 1000 N + 1
T n = The required degree of accuracy expressed in number of pulses.
Example:
For a counting accuracy to within 3 pulses in a module programmed in a Fast task with a period of 10 ms, the maximum counting rate is:
CR max. = 1000 3 + 1 = 400 Hz, or 400 pulses per second.
10
___________________________________________________________________________
17
_______________________________________________________________________________________
2.4
Additional Functions
2.4.1 Inhibit Input INH
When this input is set to 1, the counting bits are frozen until the next reading of the module. As long as the inhibit input INH remains at 1, the pulses received on the counting inputs In0 and In1 are not counted.
The state of the inhibit input INH can be read by the user program by testing the following bits:
Ixy,6 for Ch0,
Ixy,E for Ch1.
____________________________________________________________________
2.4-2 Reset Input RST
When this input is set to 1, the count value is immediately reset to zero. The counting, sign and overflow bits are also set to 0. As long as the reset input RST remains at 1, the pulses received on the counting inputs In0 and In1 are not counted.
The state of the reset input RST can be read by the user program by testing the following bits:
Ixy,7 for Ch0,
Ixy,F for Ch1.
The reset input RST has priority over the inhibit input INH. If the inhibit input INH is already at 1, the counting, sign and overflow bits are immediately reset to zero when the reset input RST goes to 1.
Note:
The counting and sign bits can also be simply reset to zero when the module is implicitly updated at the start of the task if these bits are not stored by the program during the same cycle.
___________________________________________________________________________
18
Operation and Programming 2
_______________________________________________________________________________________
2.4-3 Overflow Capacity Ixy,S
The maximum counting values of the module are + 31 and - 32. As the counter is reset to zero when the module's counting bits are updated (reinitialization), the counting capacity is exceeded if:
- The module receives more than 31 input pulses between readings of the counting bits by the CPU,
- The module receives more than 31 input pulses when the counting bits are not read by the CPU (for instance, when the PLC is stopped, or when the task in which the counting module is configured is not being executed).
Overflow bit Ixy,S:
Fault light (F):
- Is set to 1 when the counting capacity of one of the two channels (Ch0 or Ch1) is exceeded.
- Is reset to 0 after the cause of the overflow disappears, after the input RST is reset to 1, or on a power restart.
- Comes on when the counting capacity of the corresponding channel has been exceeded.
Note:
After an overflow, and before the fault has been acknowledged, the counting bits may have an incorrect value. If the application needs to use the overflow information, the overflow bit Ixy,S must be tested before the counting value is processed (*).
In0 In0 Counting input
Counting value
Channels
Counting bits
Ch0 Ch1
Ixy,4 Ixy,C
Ixy,3 Ixy,B
Ixy,2 Ixy,A
Ixy,1 Ixy,9
Ixy,0 Ixy,8
29 30 31 31 31 0 0 1 2 3
1 1 1 1 1 0 0 0 0 0
1 1 1 1 1 0 0 0 0 0
1 1 1 1 1 0 0 0 0 0
1 0 1 1 1 0 0 0 1 1
1 0 0 1 1 0 0 1 0 1
RST
Overflow
Ixy,7 Ixy,F
Ixy,S
Fault light (F) (F)
(*) This bit should also be tested in the user program in order to avoid any transient functions when handling the module in the powered-up condition.
___________________________________________________________________________
19
_______________________________________________________________________________________
2.4-4 Processing the Sign Bit
To allow the PLC to interpret the TSX AXT 2 00 module's six counting bits in a 16-bit format, they must be converted by programming according to the value of the sign bit.
Sign bit at state 0 Before storing the counting bits, the internal word concerned (W1) must be initialized to 0.
Sign bit at state 1 Before storing the counting bits, the internal word concerned ( W1) must be initialized to the decimal value of -1 (FFFF in hexadecimal).
These initializations are performed by inserting the two program lines below, immediately before the storage and summing of the counting bits.
Ixy,5
"SIGN BIT PROCESSING
Ixy,5
Ø W1
-1 W1
Load Ø into W1 if the sign is positive.
Load -1 (H,FFFF) into W1 if the sign is negative
Example for channel 0
Example:
Ixy,
A counting value of -7 is coded on the counting bits of
Channel 0 as follows:
5 4 3 2 1 0
1 1 1 0 0 1
The contact network above, inserted upstream of the counting bit read network, will convert the value of - 7 from its 6-bit format into a 16-bit format.
W1
F E D C B A
1 1 1 1 1 1
9 8 7 6 5 4 3 2 1 0
1 1 1 1 1 1 1 0 0 1
Note:
The 6 counting bits of the TSC AXT 2 00 and the 16 bits of the PLC are coded in signed binary notation. For further information, see Sub-section 6.1.
___________________________________________________________________________
20
Operation and Programming 2
_______________________________________________________________________________________
2.5
Programming the TSX AXT 2 00 Module
2.5.1
Principle of Programming
The programming of the TSX AXT 2 00 module depends on the application, but would normally include the following operations:
- Configuring the TSX AXT 2 00 module, usually in the Fast task,
- Configuring an output module in the Fast task (if appropriate),
- Programming activation of the Fast task in the Master task,
- Programming the Fast task as follows and in the following order:
1
Processing of the sign bit when up/downcounting is required,
2 Reading the counting bits,
3 Summing the count value, allowing for any reset,
4
Processing the result and inherent safety systems of the driven outputs.
An example of the programming of TSX AXT 2 00 module in the Fast task of a TSX 47-
20 PLC application on a TSX T407 terminal is given below.
____________________________________________________________________
2.5.2
Configuring in the Fast Task
Configuring the Module in the Fast Task
. Enter the code number of the
TSX AXT 2 00 module (code 57) in the slot concerned.
. Assign the module to the Fast task by pressing the soft key IN.
!
RACK 0
1
57
MOD IN OUT
0 ❚
STOP
DEL
Configuring an Output Module in the Fast Task
. Enter the code number of the output module in the slot concerned.
. Assign the output module to the Fast task by pressing the soft key OUT.
___________________________________________________________________________
21
_______________________________________________________________________________________
2.5-3 PL7-2 Program in Master Task
Activation of the Fast Task
"
1
SY19
Activation of the fast task 1Ø ms
L
______________________________________________________________________
2.5-4 PL7-2 Program in Fast Task
Processing of the Sign Bit
I2,5
1
I2,5
"
F
I2,Ø
I2,1
Ø W1
. Positive sign
-1 W1
W1,Ø
( )
W1,1
( )
. Negative sign
. Acquisition of counting
Reading of the Counting Bits
I2,2
2
I2,3
"
F
I2,4
W1,2 bits and
W1,3
( )
W1,4
( ) storage in internal word W1
___________________________________________________________________________
22
Operation and Programming 2
_______________________________________________________________________________________
Summing the Counting Value
I2,S
3
I2,7
"RESULT WORD
F
I2,S
01,S
WØ+W1 WØ
Ø WØ
. Totalizing in result word WØ
. Resetting to zero of the result word WØ* if module OK
Processing the Result
I5,2
4
O1,Ø
"
WØ < 5ØØ I2,S I2,7
F
O1,Ø
. If I5,2 and result word
<5ØØ then activate output O1,Ø**
* : Resetting the result word to zero is conditioned by setting to zero either the reset input RST
(I2,7), the TSX AXT 2 00 module fault bit (I2,S), or the output module fault bit (O1,S).
** : Maintaining action O1,0 is conditioned by the absence of both reset input RST (I2,7) and fault bit (I2,S).
___________________________________________________________________________
23
_______________________________________________________________________________________
2.5-5 Equivalent PL7-3 Program
Ladder language
Although the previous examples were for TSX 47-10/20 PLCs, they also apply in
PL7-3 (the PL7-3 networks have 7 lines instead of the 4 in PL7-2 contact networks).
Literal Language
The previous example is partly shown below in literal language.
. Master Task
< A C T I VA T I ON
! L 1
O F F A T
S T A R T CT R L 2
T A S K
. Fast task
< S I GN B I T P R OC E S S I N G
! L 1 I F N O T I 2 , 5
T
E
H
L
E
S
N Ø
E
→
- 1
→
W 1
W 1
!
< A C QU I S I T I ON O
L 2 I 2 , 0
→
F
I 2 , 3
→
W 1
W 1 ,
, 0
3 ;
;
I
I 2 , 1
I 2 , 4
B I
→
→
T S
W
W
1
1
A N D T
, 1 ; I 2 ,
T
2
, 4 ; W0 W 1
G
→
→
W1 , 2 ;
W0
________________________________________________________________________________________
2.6
Examples of Using PL7-2
________________________________________________________________________________________
2.6-1 Example 1: upcounting
Application
Counting of parts on a conveyor belt.
A proximity detector connected to the counting input In0 is used to detect the presence of each part.
A pushbutton connected to the reset input
RST (bit I1,7) is used to reset the count to zero when the counting starts.
The TSC AXT 2 00 module is installed in slot 1 of rack 0.
The count result is displayed in BCD by means of a 16-point output module installed in slot 7 of rack 0. In this example, only one input channel (Ch0) is used and its discriminator is set to OFF, since the application requires upcounting only.
___________________________________________________________________________
24
Operation and Programming 2
_______________________________________________________________________________________
Programming in the TSX 47-10/20 Master Task
I1,7
1
I1,Ø
"COUNTING OF PARTS
L
I1,1
I1,2
Ø WØ
W1,Ø
( )
W1,1
( )
W1,2
( )
Reset count to zero (WØ)
Acquisition of counting bits
I1,3
2
I1,4
"
W1,3
W1,4
( )
Acquisition of counting bits (cont'd)
L
3
I1,S
"DISPLAY OF COUNT
L
WØ+W1 WØ
BCD WØ W2
W2 O7,Ø[16]
. Totalizing in result word WØ
Conversion of WØ to BCD in W2
Transfer of count value to outputs
O7,Ø to O7,F
___________________________________________________________________________
25
_______________________________________________________________________________________
2.6.2 Example 2: positioning
Application
Positioning of a conveyor along an axis at three different speeds.
The diagram opposite shows the three required speeds (high, medium and low) of the conveyor according to its position.
HS
Speed
The two speed reductions, from high to medium and from medium to low, must be made as the conveyor approaches the discharge point at which it must stop.
MS
LS
P1 P2 P3
Position
The PLC must deliver the speed control commands HS (high speed), MS (medium speed) and LS (low speed) to the conveyor motor according to the conveyor position and in relation to the set points P1, P2 and P3. These set points represent respectively the distance (in number of pulses) to the first and second speed reduction points and to the stopping point.
An optical encoder is coupled to the conveyor motor shaft and connected to input In0 of Channel 1 (Ch1).
The TSX AXT 2 00 module is installed in slot 2 of rack 0. The discriminator is set to OFF.
The pulse rate at low speed necessary to stop the conveyor within an accuracy of one pulse depends on the period of the task in which the counting is performed (see Subsection 2.3-2).
Example:
If the module is programmed in a Fast task with a period of 10 ms, the maximum pulse rate at low speed must be less than 100 Hz.
Programming in the TSX 47-10/20 Fast Task.
IØ,Ø
"
I2,5 W4 < 51Ø
1
BØ
BØ
( )
Start counting
F
I2,8
I2,9
W5,Ø
( )
W5,1
( )
Acquisition of counting bits
___________________________________________________________________________
26
Operation and Programming 2
_______________________________________________________________________________________
I2,A
2
I2,B
"
F
I2,C
W5,2
Acquisition
W5,3
( )
W5,4
( ) of counting bits (cont'd)
I2,S
"
BØ
3
I2,S
BØ
W4+W5 W4
. Totalizing
Ø W4
. Reset to zero
4
"
W4 < 3ØØ I2,S BØ
F
5
"
W4 < 4ØØ O1,Ø I2,S BØ
F
6
F
"
W4 < 5ØØ O1,Ø O1,1 I2,S BØ
O1,Ø
( )
High speed
O1,1
( )
Medium speed
O1,2
( )
Low speed
Note:
The Fast task must be activated in the Master task by setting SY19 to 0.
___________________________________________________________________________
27
_______________________________________________________________________________________
2.6-3 Example 3: position measurement (> 32767)
Application
Continuous monitoring of the position of a truck that moves forwards and backwards on rails, in relation to a datum point O.
An incremental encoder is coupled to the truck shaft and connected to Channel 1
(Ch1) inputs In0 and In1.
The TSX AXT 2 00 module is installed in slot 2 of rack 0 and the discriminator of
Channel 1 is set to ON.
In conjunction with the PLC, the TSX AXT 2 00 module measures the truck position by upcounting or downcounting the pulses from the incremental encoder (e.g. one pulse may correspond to one cm).
Since the truck movement can exceed 32767 (i.e. the capacity of a 16-bit word), the count must be summed on two result words (W10 and W11), which gives a counting capacity of 2 147 483 647.
Programming in the TSX 47-10/20 Fast Task
The counting program consists of 5 contact networks:
. Networks 1 and 2 processing sign bit and reading count bits,
. Network 3
. Networks 4 and 5 summing count in first result word W10, processing overflow of first result word W10
(upcounting overflow from 32767 to 32768, or downcounting overflow from 32768 to 32767).
Note:
The Fast task must be activated in the Master task by setting SY19 to zero.
___________________________________________________________________________
28
Operation and Programming 2
_______________________________________________________________________________________
I2,D
1
I2,D
"
F
I2,8
I2,9
Ø W1
Sign processing
. Positive sign
-1 W1
W1,Ø
( )
W1,1
( )
. Negative sign
Acquisition of counting bits.
I2,A
2
I2,B
"
F
I2,C
W1,2
W1,3
( )
W1,4
( )
Acquisition of counting bits (cond't)
3
I2,S
"TOTALIZING
F
W1Ø+W1 W1Ø
Totalizing in the
1st result word W1Ø if the module is OK
4
SY18
"OVERFLOW
W1Ø AND H'FFF' W1Ø
W11+1 W11
SY18
Upcounting overflow from
32767 to 32768
SY18 : overflow bit
5
SY18
"
W1Ø,F W1Ø AND H'7FFF' W1Ø
W11-1 W11
Downcounting overflow from
32768 to 32767
F
Result word on 32 bits:
W1Ø (LSB)
W11 (MSB)
___________________________________________________________________________
29
_______________________________________________________________________________________
2.6-4 Example 4: length measurement
Application
Measurement of the length of parts on a conveyor belt.
An incremental encoder Cd is coupled to the conveyor shaft and is connected to input In0.
A proximity detector Dp (function 0), which goes low (state 0) whenever it detects a part, is connected to the inhibit input INH.
The length of each part must be between a minimum value (constant word CW2) and a maximum value (constant word CW3); otherwise the conveyor stops so that the outof-tolerance part can be removed.
The TSX AXT 2 00 module is installed in slot 2 of rack 0. The discriminator is not involved in this type of operation as only Ch0 is used. A pushbutton connected to the input I0,7 is used to start the conveyor..
The counting and summing principle is the same as for the upcounting example given in Sub-section 4.2
The detector Dp is connected to input INH
(bit I2,6). When it senses no part in front of it, the detector is at state 1 and counting is inhibited.
Conversely, as long as a part is detected, the counting is enabled and the length of the part is measured, e.g. 1 pulse = n tenths of an inch).
In0
Part present
INH
Counting
TSX AXT 200
<
1
Ton
2
> < x
Toff >
1
Note:
During the time Toff (interval between the detection of 2 consecutive parts), the CPU must compare the number of pulses counted during the time Ton with the minimum and maximum values contained in constant words CW2 and CW3.
If this comparaison is performed in the Master task, it is essential that:
Toff > T where Toff is the time between the detection of 2 consecutive parts and T is the scan time (TSX 47 PLC) or the period (TSX 67/87 PLC) of the Master task.
___________________________________________________________________________
30
Operation and Programming 2
_______________________________________________________________________________________
Programming in the TSX 47-10/47-20 Fast Task
I2,Ø
1
I2,1
"READING OF CHANNEL Ø
F
I2,2
I2,3
W1,Ø
( )
W1,1
( )
W1,2
( )
W1,3
( )
Acquisition of counting bits
"
I2,4 W1,4
( )
2
"LENGTH MEASURED
3
I2,6
WØ+W1 WØ
B4
Totalizing in result word WØ
Programming in the Master Task (not shown: activation of the Fast Task, Reset
SY 19)
2
4
"BELT ON/OFF
I2,6 B4
WØ < 1
WØ < 2
IØ,7
L
O1,1 B5 I2,S
B5
( )
B4
Ø WØ
O1,1
( )
Comparison with set points:
1 : CW2 min. length
2 : CW3 max. length
B5 : Stops the belt if length not OK
Belt operation
___________________________________________________________________________
31
_______________________________________________________________________________________
___________________________________________________________________________
32
___________________________________________________________________________ X
Installation Section 3
___________________________________________________________________________
3.1
Locating the Module
Page
34
34
34
35
________________________________________________________________________________________
3.2
Preparing the Module 35
________________________________________________________________________________________
3.3
Connecting the Module 36
36
37
38
39
40
41
42
43
___________________________________________________________________________
33
_______________________________________________________________________________________
3.1
Locating the Module
3.1-1 Possible Locations
The TSX AXT 2 00 module interfaces with the simplified discrete I/O bus (16-bit module on a simplified bus). It can therefore be located in any slot designed to receive I/O modules in TSX 47/67/87 PLCs.
Basic configuration
Basic configuration
Basic configuration
(Single rack)
Basic configuration
(Double rack)
Local extension
configuration (Single rack)
Remote extension
configuration (Single rack)
TSX 47-J
TSX 47-10
TSX 47-20
TSX 47-30
TSX 67-20
TSX 87-30
TSX RCE 860
TSX RCF 860
Slots 0-5
Slots 0-7
Slots 0-7
Slots 0-7 and 10-17
All slots
All slots
Note:
When the counting rate requires configuring the module in the Fast task, users are recommended to install the TSX AXT 2 00 and its associated output module in the basic rack of the PLC to optimize the read time of the counting bits.
_____________________________________________________________________
3.1-2 Maximum Configuration
The TSX 47/67/87 PLCs can receive several TSX AXT 2 00 modules.
. For TSX 47-10/20 PLCs: The maximum number of TSX AXT 2 00 modules that can be installed depends on the number of TSX MPT/AEM/SCM modules configured.
Maximum Configuration
TSX 47-10/20: or:
TSX 47-20:
TSX AXT 200
3
2
1
TSX MPT 10
0
1
1
In all cases only 1 TSX AXT 2 00 can be configured in the Fast task.
TSX AEM or TSX SCM
0
0
1
. For TSX 67/87 PLCs: First determine the power consumption for the 5V supply.
Several TSX AXT 2 00 modules can be configured in the Fast task.
___________________________________________________________________________
34
Installation 3
_______________________________________________________________________________________
3.1.3
Locating Devices
TSX 47-10/20 TSX 47-30/67/87
Hardware locating code
Two-digit decimal code defined by two female locating devices on the rear of the module
57 57
Software locating code
Entered when configuring the I/O on the programming terminal
57 57
_____________________________________________________________________
3.2
Preparing the Module
Preparing the TSX AXT 2 00 module consists of activating or deactivating the two channel discriminators (one for each channel).
The discriminators are activated or deactivated by two switches (one for each channel) located inside the case and accessible through an opening at the top left side of the module.
The discriminator is:
. activated when the switch is set to ON, i.e. pushed upwards.
. deactivated when the switch is set to
OFF, i.e. pushed downwards.
DISCRIMINATEURS
DE SENS DE MARCHE
Ch0 Ch1 ON
OFF
DISCRIMINATOR
SWITCHES
FRONT OF MODULE
→
Note:
The module is delivered ex-factory with both its discriminator switches set to OFF.
___________________________________________________________________________
35
_______________________________________________________________________________________
3.3
Connecting the Module
3.3.1 Connector Pin-Out
The TSX AXT 2 00 module has two 9-pin sub-miniature type D connectors, which accept
TSX CAC 04 male connectors of the same type.
Inhibition 0V
Reset 0V
Counting Input
Channel 0
Voltage
INH
RST
In 0
OV
OV
+ 24V
In 0
In 0
+ 5V
0V
TSX CAC 04
Voltage
3
4
1
2
5
6
7
8
9
+ 24V INH/RST
+ 24V
+ 5V
In 1
In 1
0V In 1
Common
Counting input
Channel 1
___________________________________________________________________________
36
Installation 3
_______________________________________________________________________________________
3.3-2 Types of Sensors
Inputs INH and RST (pins 1, 2 and 6): The sensors connected to these inputs must be of the discrete 24 VDC type, such as limit switches and proximity detectors.
Inputs In0 and In1 (pins 3, 4, 5, 7, 8 and 9): The sensors connected to these inputs must be of the discrete 24 VDC type (as above), or a 5/24 VDC incremental encoder.
In all cases the sensors must be compatible with the characteristics of the inputs (see
Sub-section 5.2).
The table below shows connection possibilities for 24 VDC sensors according to their technology, i.e. 2- or 3-wire, NPN or PNP (see the examples in the following pages).
Connection Possibilities
Type
Output
INH
RST
In0
In1
Example
Non-polarized
X
2-wire
X
Polarized
X
1
X
X X
X X
2
X
X
NPN
X
X
X
X
3
3-wire
X
X
X
4
PNP
X
X
X
Note:
The inputs In0 and In1 are independent of each other and of the INH and RST inputs. The In0 and
In1 inputs can therefore receive any of the sensors shown in the table above.
The sensors connected to the RST and INH inputs (common to the +24 V) must be of the same type on the same channel. The only exception possible is a mix of 2-wire non-polarized types with
3-wire NPN types (see table above).
___________________________________________________________________________
37
_______________________________________________________________________________________
3.3.3 Example 1: Connection of 2-wire Non-polarized Sensors
Up/downcounting: using inputs INH, RST, In0 and In1,
24 V 0V
INH
BN (Brown)
BU (Blue)
RST
BN (Brown)
BU (Blue)
TSX CAC 04
3
4
1
2
5
6
7
8
9
IN0
BN (Brown)
BU (Blue)
BN (Brown)
IN1
BU (Blue)
With this type of sensor all 4 inputs can be connected. The sensors are commoned to the 0 V.
___________________________________________________________________________
38
Installation 3
_______________________________________________________________________________________
3.3-4 Example 2: Connection of 2-wire Polarized Sensors
Upcounting only: using inputs RST and In0
24 V 0V
RST
+ BN (Brown)
BU (Blue)
IN0
+
BN (Brown)
BU (Blue)
TSX CAC 04
3
4
1
2
5
6
7
8
9
With this type of sensor only one of the 2 inputs RST or INH can be used (for INH use pin 1 instead of pin 2).
For up/downcounting the input In1 must be connected as follows:
. sensor + to the 24 V supply,
. sensor - to pin 7,
. 0 V supply to pin 9.
___________________________________________________________________________
39
_______________________________________________________________________________________
3.3.5 Example 3: Connection of 3-wire NPN Sensors
Upcounting only: using inputs INH, RST and In0.
24 V 0V
+
BN (Brown)
BK (Black)
INH
-
BU (Blue)
RST
+
BN (Brown)
BK (Black)
BU (Blue)
TSX CAC 04
3
4
1
2
5
6
7
8
9
+
BN (Brown)
BK (Black)
IN0
BU (Blue)
With this type of sensor all 4 inputs can be connected.
For up/downcounting, input In1 must be connected as follows:
. sensor + to the 24 V supply,
. sensor - to the 0 V supply,
. sensor output to pin 9
. 24 V supply to pin 7.
___________________________________________________________________________
40
Installation 3
_______________________________________________________________________________________
3.3-6 Example 4: Connection of 3-wire PNP Sensors
Upcounting only: using inputs INH and In0,
24 V 0V
+ BN (Brown)
INH
BK (Black)
-
BU (Blue)
TSX CAC 04
+ BN (Brown)
3
4
1
2
5
6
7
8
9
IN0
BK (Black)
-
BU (Blue)
With this type of sensor only one of the 2 inputs RST or INH can be used (for INH use pin 2 instead of pin 1).
For up/downcounting the input In1 must be connected as follows:
. sensor + to the 24 V supply,
. sensor - to the 0 V supply,
. sensor output to pin 7
. 0 V supply to pin 9.
___________________________________________________________________________
41
_______________________________________________________________________________________
3.3.7 Example 5: Connection of Incremental Encoders
The main purpose of inputs In0 and In1 is for the connection of an incremental encoder.
The encoders used must have NPN open collector or totem-pole outputs.
The Telemecanique range of rotary encoders includes TSX AXT 2 00 compatible incremental encoders XCC-H.. with the following types of output:
. NPN or PNP open collector,
. totem-pole.
Note:
Encoders with open collector outputs are generally suitable for distances of up to 30 meters (about
100 feet). Encoders with totem-pole outputs should be used for distances of up to 100 meters (about
24V or
5V
0V
VDC
(5/24 V)
A
B
Zero pulse
0V
TSX CAC 04
24V
5V
3
4
1
2
5
6
7
8
9
24V
5V
(*)
Note:
The connection of inputs INH and RST is the same as in examples 1 to 4.
As indicated in the Installation Manuals for the TSX 47 and TSX 67/87 ("Grounding" Subsection), the 0 V of the sensor power supplies must be directly connected to the reference ground (**), i.e. the enclosure or chassis ground.
(*) This shielding is easily connected to the connector ground using the TSX CAC 04 connector kit with its plastic/metal cover.
(**) If the 0V of the sensor power supplies cannot be directly connected to the reference ground, an RC or GMOV circuit must be inserted.
___________________________________________________________________________
42
Installation 3
_______________________________________________________________________________________
3.3.8
General Wiring Principles
To protect the input signals from external noise induced in the series mode and from noise in the common mode, attention should be paid to the following points:
. connector for ground continuity,
. type of conductors,
. grounding of the cable shields,
. reference of the sensors' potential relative to ground,
. cable routing,
. connection of unused wires.
Mounting the Connectors
Each channel on the TSX AXT 2 00 module is connected through a sub-miniature type
D male connector with 9 pins.
When plugged in, this connector must be secured by tightening the captive locking screws on the module's socket connector.
Each TSX CAC 04 connection kit consists of:
. 1 Sub-D connector with 9 soldering pins,
. 1 plastic/metal cover providing ground continuity.
Type of Conductors
Use shielded twisted or shielded cable whose conductors have a minimum crosssection of 0.22 mm 2 (AWG 23).
Grounding the Cable Shields
The cable shields on each channel must only be connected to the PLC ground as follows:
. On each channel, twist the shields together so that they form a single strand.
. Clamp the shield under the cable clamp in the protective plastic/metal cover.
Note:
The TSX AXT 2 00 module ensures grounding continuity between the cable shielding and the PLC ground.
___________________________________________________________________________
43
_______________________________________________________________________________________
Referencing of Sensor Voltages
It is recommended to use "floating" sensors, i.e. whose voltages are not referenced to ground.
Cable Routing
Inside the enclosure, bundle the sensor wires connected to the TSX AXT 2 00 module separately and keep them well away from the wires of the discrete I/O modules
(particularly relay output modules) and from power cables.
Outside the enclosure, avoid parallel routing over long distances, keep the sensor wires at least 20 cm (8 inches) away from other cables, and make sure that the cables cross at right angles.
Connection of Unused Wires
Never leave unused wires unconnected, but connect them to the cable shield (on PLC side) so that they will be connected to the PLC ground.
___________________________________________________________________________
44
___________________________________________________________________________ X
Start-up and Maintenance Section 4
___________________________________________________________________________
4.1
Checking the Connections
Page
46
46
46
________________________________________________________________________________________
4.2
Troubleshooting 47
47
48
___________________________________________________________________________
45
_______________________________________________________________________________________
4.1
Checking Connections
4.1-1 Principle
Checking the connections consists in verifying that the signals delivered to the inputs of the TSX AXT 2 00 module are correctly transmitted to the processor of the PLC.
CAUTION:
Activated outputs can cause machine motion. Before checking the operation of the module, it is advisable to disable the power circuit:
. Remove the power fuses from the motor controls and cut off the power supply to all hydraulic and pneumatic components,
. Then power up the PLC.
A more exhaustive check of the input connections can be made by using an adjustment or programming terminal; however, in this case, the check can only be conducted after a user memory cartridge is installed in the PLC.
Note:
The cartridge must be initialized but need not contain a user program:
. cartridge for TSX 47 PLC,
. cartridge for TSX 67/87 PLCs: transfer of the default and I/O configurations into the cartridge.
. Activate each input and check that the corresponding indicator lights on the front of the module come on.
. For the RST and INH inputs, switch the PLC to RUN and check on the terminal screen that the corresponding bits change state (Ixy,6 and 7 or Ixy,E and F).
_______________________________________________________________________________________
4.1-2 Example
Checking the inputs of a TSX AXT 2 00 module installed in slot 3 of a TSX 47 PLC:
. Set the TSX T407 terminal to the Adjust mode,
. Enter the address of one of the bits of the module (e.g. I3,6), the display opposite appears.
MOD
I3,6 = 1
ADJUST: BITS
FEDCBA9876543210
.........*......
UNF F: 0 F:1
RUN
S
.
Note:
As the counting bits of Ch0 and Ch1 are continuously initialized, the display of these bits is not significant.
___________________________________________________________________________
46
Start-up and Maintenance 4
_______________________________________________________________________________________
4.2
Troubleshooting
4.2-1 Reading a Status Word
The status word identifies the module and indicates its operating status.
The status word is displayed by using the TSX T407 terminal in the Diagnostic mode.
The status word cannot be read or modified by the program.
Status Word Structure
0 0 1 1 1 0 0 1 binary code of the module number
(57 in binary) at State 1 if the module status bit (0xy,S) equals 1, indicating a TSX AXT 200 module fault
___________________________________________________________________________
47
_______________________________________________________________________________________
4.2-2 Troubleshooting Chart
The following troubleshooting chart assumes that the PLC and the other modules concerned in the counting and positioning function of the application (apart from the
TSX AXT 2 00) are operating correctly.
PLC running and task executed
Actions not executed
In0 light changes state.
In1 not used
Discriminator on
NO
YES
YES
NO
I/O light on
NO
YES
Module lights change state
NO
Connector correctly plugged-in
YES
Sensor power supply OK
YES
Sensor compatible and correctly wired
YES
NO
NO
NO
NO
Fault light F on
YES
Pulse count stopped
Provoke an
RST or power break/return
I/O light on
YES
Exchange fault with CPU
Sensor
OK
YES
NO
Switch discriminator off
(see 5.3)
Change the sensor
Correct the fault
Change the module
Counting fault:
The pulse rate is too high for the scan period
Correct the fault
(see 2.3)
Additional information concerning the Fault light F :
. This light comes on when the module is inserted in an energized PLC if the module is connected to the sensors and receiving counting pulses.
. If this light comes on when the module is configured in the Fast task of the
TSX 47-J/47-10/20 PLCs, first check that this task is activated (system bit SY19 at 0).
___________________________________________________________________________
48
___________________________________________________________________________ X
Appendices Section 5
___________________________________________________________________________
5.1
Technical Characteristics
Page
50
________________________________________________________________________________________
5.2
Signed Binary Code 51
________________________________________________________________________________________
53
________________________________________________________________________________________
55
___________________________________________________________________________
49
_______________________________________________________________________________________
5.1
Technical Characteristics
Nominal input values
●
Voltage
●
Current
●
Sensor power supply
Limit input values
● at state 1, voltage current voltage
● at state 0, current
●
Permissible inverse voltage
●
Max. voltage during 1 mn
●
Input impedance
●
Response times
In0 and In1
INH and RST
●
Delay between In0 and In1
Dissipation per channel at state 1
Compatible with
● proximity detectors
5 V (except RST and INH)
11 mA
4.7 to 7 V
24 V
17 mA
19.2 to 30 V
3.75 to 7 V
> 7 mA
-5 to 1.3 V
11 to 30 V
> 7 mA
-25 to 3.2 V
< 2 mA
-5 V
±
12 V
415 to 490
Ω
< 2 mA
-25 V
±
48 V
1.3 to 1.5 K
Ω from state 0 to 1 or state 1 to 0
30 to 100
µ s
50
µ s min.
30 to 100
µ s
50 to 250
µ s
50
µ s min.
0.055 W 0.4 W
● incremental encoders
All Telemecanique types and CENELEC 2-wire polarized types or 3-wire NPN types (for other types see Sub-section 5.4)
NPN open collector or totem pole types, minimum delay between the signals: 50
µ s
External lines
● line resistance
● resistance to open circuit leak
Isolation
● between channels
● between channels and bus
● type
Temperature
● operating
● storage
Consumption
● on 5 VDC
< 30
Ω
> 30 K
Ω
500 Vrms 50-60 Hz
1500 Vrms 50-60 Hz optical coupler
0 to 60
°
C
-45 to +85
°
C
< 300
Ω
> 30 K
Ω
380 mA max.
● on 12 VDC
_________
85 mA max.
(*) If the module is removed with the PLC energized, fault bit Ixy,S must be tested by program to avoid incorrect counting operations which may be dangerous for the application.
___________________________________________________________________________
50
Appendices 5
_______________________________________________________________________________________
5.2
Signed Binary Code
Introduction
Numbers are coded in signed binary. The TSX AXT 2 00 fast counting module counts the number of input pulses it receives and represents the value of the count in signed binary code on 6 bits (5 bits + sign).
Sign Bit
In signed binary code, the most significant bit is always the sign bit.
If this bit is at 0, the coded number is positive.
If this bit is at 1, the coded number is negative.
Interpretation of the 6 bits in Signed Binary Code
.
If the sign bit is at 0, all the other bits are interpreted in straight binary.
Example: 31 in decimal is coded 0 1 1 1 1 1 in signed binary on 6 bits.
.
If the sign bit is at 1, the value of the number in straight binary is obtained as follows:
1. By calculating the ones complement (C1), which is done by substituting 0 for 1 and
1 for 0 (except for the sign bit).
2. By calculating the true complement (Ct), which is done by adding 1 to the ones complement. The true complement then represents the value of the number in straight binary.
Example: 1 0 1 0 1 0 in signed binary on 6 bits.
Since the sign bit is at 1, the number is negative.
1. The ones complement : C1 = 1 0 1 0 1.
2. The true complement : Ct = C1 + 1 = 1 0 1 1 0 which is 22 in decimal.
The value of the number in decimal is therefore - 22.
___________________________________________________________________________
51
_______________________________________________________________________________________
Signed Binary Code Table
The table below gives all the possible codings of the counting bits of the TSX AXT 2 00 module in signed binary code on 6 bits, i.e. all the possible values that can be expressed by the counting bits Ixy,0 to Ixy,5 (or Ixy,8 to Ixy,C) and their conversion to decimal (Ixy,5 or Ixy,D being the sign bit).
Note: x and y represent the rack number and slot number of the module.
Decimal value
Ixy,5 Ixy,4 Ixy,3 Ixy,2 Ixy,1 Ixy,0
Ixy,D Ixy,C Ixy,B Ixy,A Ixy,9 Ixy,8
Decimal value
Ixy,5 Ixy,4 Ixy,3 Ixy,2 Ixy,1 Ixy,0
Ixy,D Ixy,C Ixy,B Ixy,A Ixy,9 Ixy,8
26
27
28
23
24
25
29
30
31
19
20
21
22
12
13
14
15
16
17
18
7
8
5
6
9
10
11
2
3
4
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
0
0
1
1
1
0
0
0
0
0
0
0
1
1
0
0
1
1
1
1
1
0
1
1
1
1
1
0
0
0
1
0
1
1
0
0
0
0
0
1
0
0
1
1
0
1
0
0
0
1
1
0
1
1
0
1
1
0
0
0
0
1
1
0
0
1
0
1
1
1
1
0
0
0
0
1
0
1
0
1
1
0
1
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
-24
-25
-26
-27
-28
-29
-20
-21
-22
-23
-30
-31
-32
-13
-14
-15
-16
-17
-18
-19
-10
-11
-12
-6
-7
-8
-9
-1
-2
-3
-4
-5
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
1
0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
1
1
0
0
0
1
1
1
1
1
1
1
0
0
1
1
0
0
0
0
0
1
0
0
0
0
0
1
1
1
0
1
0
0
1
1
1
1
1
0
1
1
0
0
1
0
1
1
1
0
0
1
0
0
1
0
0
1
1
1
1
0
0
1
1
0
1
0
0
0
0
1
1
1
1
0
1
0
1
0
0
1
0
0
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
___________________________________________________________________________
52
Index
_______________________________________________________________________________________
Subject
Accuracy
Addressing
Cable shieldings
Configuration
Connectors
Counting bits
Counting rate
Detectors
Discriminator switches
Grounding
Incremental encoders
Inhibition (counting)
Locating devices
Overflow
Power restart
Power supplies
Programming (User)
Resetting (counting)
Sensors
Sign
Signed binary coding
Status word
Summing
Software
Hardware
Tasks (Master and Fast)
Pages
___________________________________________________________________________
53
_______________________________________________________________________________________
Indicating Lights for Each Channel
TSX AXT 200
F
IN0
IN1
RST
INH
"Count overflow" light
"Input 0 pulse" light
"Input 1 pulse" light
"Reset input" light
"Count inhibit input" light
___________________________________________________________________________________________________________________________
General Characteristics
. Location: any slot for the I/O of TSX 47/67/87 PLCs (If the module is configured in the
Fast task, only use the slots of the basic configuration).
. Locating code (hardware and software): 57
. Effect of a power return: The self-tests are run,
The counting and sign bits = 0 during the self-tests and during the 1st restart cycle.
. Consumptions of 5 V and 12 V are 380 mA and 85 mA respectively.
_____________________________________________________________________
Connections for Each Channel
Pin-out of male connector
TSX CAC 04
Voltage Voltage
Inhibition 0V
Reset 0V
Counting Input
Channel 0
INH
RST
In 0
In 0
In 0
OV
OV
+ 24V
+ 5V
0V
1
2
3
4
5
6
7
8
9
+ 24V INH/RST
+ 24V In 1
+ 5V In 1
0V In 1
Common
Counting input
Channel 1
___________________________________________________________________________
54
Quick Reference Guide 5
_______________________________________________________________________________________
Block Diagram
TSX AXT 200 Module
PLC
CPU
InØ
In1
INH
RST count bits sign inhibition reset
Channel 1
Channel 0
B
U
S
R
F
A
C
E
I
N
T
E
DISCRETE I/O BUS count value
Ixy,i
Addressing
DISCRETE BITS
I x y , i
Bit No.
Channel 1
Ixy,8 order 1
Ixy,9 order 2
Ixy,A order 4
Channel 0
Ixy,0 order 1
Ixy,1 order 2
Ixy,2 order 4 Input : read by
CPU
Slot No.
Ixy,B order 8 Ixy,3 order 8
Rack No.
Ixy,C order 16 Ixy,4 order 16
Ixy,D sign 0 = + Ixy,5 sign 0 = +
Ixy,E inhibition Ixy,6 inhibition
Ixy,s : counter overflow
Ixy,F reset Ixy,7 reset
____________________________________________________________________________________
Principle of Counting
. In0: upcounting pulse (discriminator OFF)
. In0/In1: up/downcounting pulse (discriminator ON)
. Counting values between 2 read operations of the inputs by the task in which the module is configured (Master or Fast): maximum = +31, minimum = 0 for upcounting, -32 for up/downcounting
. In each task cycle, the user program is responsible for storing the counting and sign bits for summing.
. Counting rate: depends on the counting bit read period (see pages 16 and 17).
___________________________________________________________________________
55
_______________________________________________________________________________________
___________________________________________________________________________
56
Shkarko
Reklamë