Functions. Schneider Electric TSX57/PCX57, Hardware PLC Implementation, Counting, Axis Command, Cam, Sercos
Reklama
Reklama
Functions
2
At a Glance
Subject of this chapter
What's in this
Chapter?
This Chapter introduces the various functions of the TSX CTY 2A / 4A / 2C modules.
This chapter contains the following topics:
Topic
Down counting function (TSX CTY 2A / 4A modules)
Up counting function (TSX CTY 2A / 4A modules)
Up/down counting function (TSX CTY 2A / 4A modules)
Up/down counting and measurement functions (TSX CTY 2C module)
Up/down counting on the TSX CTY 2A/4A modules
Process diagram
Up/down counting on the TSX CTY 2A/4A modules
Process diagram 1
Process diagram 2
Process diagram 3
Process diagram 4
Up/down counting and measuring on a TSX CTY 2C module
Process diagram 5
Connection process for the EPSR "supply feedback" input
Page
23
Functions
Down counting function (TSX CTY 2A / 4A modules)
General
Illustration
The down counting function allows pulses to be counted down (on 24 bits + sign) from a preset value between 0 and +16777215, and indicates when the current value is equal to or less than 0.
The format for down counting is between –16777216 and +16777215.
diagram of the principle: valid downcounting space current value measurement ≤ 0 preset with automatic preset
Note: Operation of the down counting function, the associated language objects, and the software installation are all described in the application manual.
24
Functions
Up counting function (TSX CTY 2A / 4A modules)
General
Illustration
The up counting function counts pulses (on 24 bits + sign) from 0 to a predefined value known as the setpoint value.
The format for up counting is between 0 and +16777215.
The module indicates when the setpoint value has been reached.
The current count value is constantly compared to two adjustable thresholds
(threshold 0 and threshold 1).
Diagram of the principle: valid counting space current value measurement ≤ setpoint value current value measurement ≤ threshold value 1 current value measurement ≤ threshold value 0 threshold 0 threshold 1 setpoint with automatic reset to 0
Note: Operation of the up counting function, the associated language objects, and the software installation are all described in the application manual.
25
Functions
Up/down counting function (TSX CTY 2A / 4A modules)
General The up/down counting function uses one counter to execute both the up counting and down counting of pulses (on 24 bits + sign), from a preset value between
–16777216 and +16777215.
l l
This function also offers the possibility of setting several values, which cause an alert when the current value passes them, which could in turn trigger event processing: a low setpoint and a high setpoint,
2 adjustable thresholds (thresholds 0 and 1).
Illustration of the up/down counting mode
Diagram of the principle: valid upcounting/downcounting space current value ≤ with high setpoint current value
≤
threshold 1 current value ≤ threshold 0 current value ≤ low setpoint low setpoint preset threshold 0 threshold 1 high setpoint
Note: Operation of the up/down counting function, the associated language objects, and the software installation are all described in the application manual.
26
Functions
Up/down counting and measurement functions (TSX CTY 2C module)
Up/down counting function
The up/down counting function uses one counter to execute both the up counting and down counting of pulses (on 24 bits + sign), from a preset value between
–16777216 and +16777215.
Measurement function
The measurement function is used to acquire a serial frame from an absolute encoder with serial outputs.
Illustration of the up/down counting mode
Diagram of the principle: valid upcounting/downcounting space current value ≤ threshold 1 current value ≤ threshold 0
Modulo mode preset threshold 0 threshold 1
The modulo mode enables up/down counting (on 25 bits) between 0 and
+33554431.
27
Functions
Illustration of modulo mode
Diagram of the principle: up/down counting space current value ≤ threshold 0 current value ≤ threshold 1 preset threshold 0 threshold 1
Note: The up/down counting and measurement functions also offer the possibility of setting two thresholds (thresholds 0 and 1). If the current value crosses these thresholds, this will be signaled, and will trigger event processing.
Note: Operation of the up/down counting and measurement functions, the associated language objects, and the software installation are all described in the application manual.
28
Functions
Up/down counting on the TSX CTY 2A/4A modules
Introduction The TSX CTY 2A/4A counting modules are used to enable: l l
2 independent up or down counting channels (module TSX CTY 2A),
4 independent up or down counting channels (module TSX CTY 4A).
Up/down counting signals
The relevant up/down counting signals for a channel, as well as the encoder supply
(when the sensor is an incremental encoder) are grouped together on a standard
SUB D 15-pin connector. Each up/down counting channel is able to receive 5 VDC or 24 VDC signals. Pulses are received on the IA input.
Auxiliary inputs 24 VDC auxiliary inputs (reset to 0: for up counting, set to the preset value for down counting and for confirmation of up/down counting), as well as the external supplies, are grouped together on a HE10 connector, shared by channels 0 and 1, or 2 and 3
(TSX CTY 4A only).
l l
Reset to 0 (up counting) or preset value (down counting)
Resetting to zero (up counting) or setting to the preset value (down counting) can be carried out in one of the ways described below: l by changing the state (rising or falling edge) of the IPress• input (down counting) or the IReset input (up counting), according to the choice made during configuration, l by crossing the setpoint value (up counting) or 0 (down counting), l via software,
Up/down counting enable l l
The up/down count can be enabled as follows: by setting the IVal input to 1, via software.
Note: For more information on these functions, refer to the application manual.
Line check input:
EPSR
This input is connected to the "return supply" output of an incremental encoder to ensure that the supply is correct.
In case of a line break on the cable carrying the encoder supply voltage, the fault generated is indicated and can be dealt with using the application program.
29
Functions
Counter outputs The up counting and down counting functions include counter outputs, which can be assigned, using the program, to 2 physical reflex outputs (Q0 and Q1), located on the counting modules: l down counting function: offers one counter output with predefined conditions for activation and deactivation: l l activated when the current value changes to 0, l deactivated when the down counter reaches the preset value.
up counting function: offers two counter outputs, the activation and deactivation conditions of which are predefined for counter output 0, and configurable for counter output 1: l Counter output 0
- activated when it passes the setpoint value,
- deactivated when the counter is reset to 0.
l Counter output 1
- activation and deactivation are configurable in the adjustment screen.
Physical outputs Physical outputs Q0 and Q1 can be controlled as follows: l in automatic mode: if the physical output is enabled, the state of the counter output is also applied to the physical output (counter output 0 controls physical output 0, counter output 1 controls physical output 1). If the physical output is not l enabled, it is set at 0, in manual mode: the state of the physical output is controlled manually.
Note: For more information on the installation of the counter outputs and physical outputs, refer to the application manual.
30
Functions
Process diagram
Illustration The 15-pin SUB-D connector is used to wire one single counting channel (e.g. channel 0), while the HE10 connector is shared by 2 channels ( e.g. channels 0 and
1). Other channels or pairs of channels are wired in exactly the same way.
Standard 15-pin SUB-D connector to link up counting sensor
Input pulses for up/down counting
Supply reserved exclusively to supply an encoder
(external supply report connected to HE10 connector).
Encoder return supply encoder
(must be connected)
Encoder supply
5 VDC or 10...30 VDC
Channel 0 preset input
Enable input channel 0
Channel 1 preset input
Enable input channel 1
Physical reflex outputs channel 0
Physical reflex outputs channel 1
24 VDC auxiliary input sensor supply
Auxiliary inputs
HE10 connector to connect the supply
(encoders and sensors), the auxiliary inputs
(preset, enable, etc.) and the reflex outputs
31
Functions
Up/down counting on the TSX CTY 2A/4A modules
Introduction l l
The TSX CTY 2A/4A counting modules are used to enable:
2 independent up/down counting channels (TSX CTY 2A),
4 independent up/down counting channels for the TSX CTY 4A module.
Up/down counting signals
Up/down counting on one channel can occur in many ways: l using one physical input for up counting and one for down counting. The pulses for up counting are received at the IA input, and the pulses for down counting at the IB input.
Note: All pulses at the IA and IB inputs are counted, whatever the synchronism of the signals.
l using one physical input for up/down counting and one for the count direction (up counting or down counting). Pulses for up/down counting are received at the IA input and the direction (up counting or down counting) is determined by the state of the IB input (up counting for state 0, down counting for state 1),
Note: During up counting, the pulses at the IA input are only counted if the IB input has been at 1 for more than 3 µ s.
During down counting, the pulses at the IA input are not counted if the IB input has been set at 0 for more than 3 µ s.
l l using one physical input for up/down counting, and the application to determine the direction (the 0 or 1 setting of a bit). Pulses for up/down counting are received at the IA input, using two physical entries with signals out-of-phase by π /2 (incremental encoder signals). Counting signal A is received at the IA input, and counting signal B at the IB input,
32
Functions
Auxiliary inputs The 24 VDC auxiliary inputs and the external supplies are grouped together using a
HE10 connector, shared by two channels: Channels 0 and 1 or 2 and 3
(TSX CTY 4A only). The connector comprises the following signals: preset value setting IPres , up/down counting confirmation IVal , capture of the current value
ICapt .
l Preset the preset can be performed in any of the ways described below: l l when changing the state (rising or falling edge) of the IPres• input and the software confirmation, on the rising edge of the IPres• input if the counting direction is positive or on the IPres• falling edge if the count direction is negative, with software confirmation, counting direction counting direction
Physical input IPres• l on the rising edge of the IPres• input if the direction is down counting (negative) or on the falling edge of the IPres• input if the count direction is positive, with software confirmation, counting direction counting direction
Physical input IPres• l l when the IPres• input is in state 1, with software confirmation. The current value will not change while the input is in state 1, at reference point short cam: the preset is taken into account:
- if the direction is up counting (positive): the IPres• input is in state 1 and the rising edge of the IZ input is top-turn, with software confirmation,
- if the direction is down counting (negative): the IPres• input is in state 1 and the falling edge of the IZ input is top-turn, with software confirmation, counting direction counting direction
Physical input IPres•
Top-turn input IZ
Preset Preset
33
Functions l
Comment
In theory, as the short cam is lower than an incremental encoder turn, the topturn only happens once in the cam.
If however several encoder turns occur in the cam, the last active edge of the top-turn signal triggers a preset.
at reference point long cam: the inclusion of the preset occurs on the first rising edge of the IZ top-turn input after the IPres• input has reached state 0, in an ascending or descending direction, and with software confirmation, counting direction counting direction
Physical input IPres•
Top-turn input IZ
Preset Preset l l l directly, using the software.
Up/down counting confirmation
The confirmation of up counting or down counting occurs in any of the ways described below: l by setting the IVal input to 1, l directly, using the software.
Capture
The capture of the current value occurs in any of the ways described below: l l when changing the state (rising or falling edge) of the ICapt input, with software confirmation, directly, using the software.
Note: For more information on these functions, refer to the application manual.
Line check input:
EPSR
This input, which is normally connected to the "supply feedback" output of an encoder is used to control the encoder supply and ensure that it is correct.
In case of a line break on the cable carrying the encoder supply voltage, the error generated is indicated and can be dealt with using the application program.
Counter outputs The up/down counting function comprises two counter outputs, which can be assigned, using the program, to the physical reflex outputs (Q0 and Q1), located on the counter module.
These two counter outputs have conditions for their activation and deactivation, which are defined by the user using an encoding matrix, accessible in the adjustment function.
34
Functions
Physical outputs Physical outputs Q0 and Q1 can be controlled as follows: l in automatic mode: if the physical output is enabled, the state of the counter output is also applied to the physical output (counter output 0 controls output Q0, counter output 1 controls output Q1).
If the physical output is not enabled, it is set to 0.
l in manual mode: the state of the physical output is controlled manually.
Note: For more information on the installation of the counter outputs and physical outputs, refer to the application manual.
Note: The diagrams on the following pages show the cabling process for a 15-pin
SUB-D connector (one channel). Cabling is identical for the other channels.
The HE10 connector does not appear in process diagrams 2 to 4, as its cabling is identical to that shown in process diagram 1.
35
Functions
Process diagram 1
Illustration Using a physical up/down counting input, and determining the direction (up counting or down counting) with the application.
Standard 15-pin SUB-D connector to link up counting sensor
Input pulses for up/down counting
Supply reserved exclusively to supply an encoder (external supply report connected to HE10 connector).
Encoder return supply encoder
(must be connected)
Encoder supply
5 VDC or 10...30 VDC according to encoder type
Channel 0 preset input
Enable input channel 0
Channel 0 capture input
Channel 1 preset input
Enable input channel 1
Channel 1 capture input
Physical reflex outputs channel 0
Physical reflex outputs channel 1
24 VDC auxiliary input sensor supply
Auxiliary inputs
HE10 connector to connect the supply
(encoders and sensors), the auxiliary inputs
(preset, enable, etc.) and the reflex outputs
36
Functions
Process diagram 2
Illustration Using one physical input for up/down counting and one for the count direction
(up counting or down counting).
Standard 15-pin SUB-D connector to connect counting sensor
Input pulses for up/down counting up counting
Counting input
(up/down counting) down counting
Top-turn input
Supply reserved exclusively for supply to an encoder
(external supply transfer connected to HE10 connector).
Encoder return supply signal
(must be connected)
HE10 connector
37
Functions
Process diagram 3
Illustration Using one physical input for up counting and one for down counting.
Standard 15-pin SUB-D connector to connect counting sensor
Up counting pulse input
Down counting pulse input
Counting input
(up/down counting)
Top-turn input
Supply reserved exclusively for supply to an encoder
(external supply transfer connected to HE10 connector).
Encoder return supply signal
(must be connected)
HE10 connector
38
Functions
Process diagram 4
General Using two physical inputs to cable one incremental encoder with signals out-ofphase by π /2. The option to multiply by 4 improves the resolution of the encoder : l multiplying by 1: up/down counting occurs at the rising edges of the IB input, l multiplying by 4: up/down counting occurs on all rising and falling edges of both
IA and IB inputs.
Illustration:
Standard 15-pin SUB-D connector to link up counting sensor
Signal A input
Signal B input
Top-turn input
Supply reserved exclusively to supply an encoder
(external supply report connected to HE10 connector).
Encoder return supply encoder
(must be connected)
HE10 connector
39
Functions
Up/down counting and measuring on a TSX CTY 2C module
Introduction
Up/down counting
(mechanical contacts, proximity sensor, pulse generators, incremental encoders)
Measurement
(absolute encoders)
The TSX CTY 2C counter module is used to enable 2 independent up/down counting and measuring channels (absolute encoder interface).
Up/down counting on one channel can be performed in many ways: l using one physical input for up counting and one for down counting. The up counting pulses are received at the IA input, and the down counting pulses at the l
IB input.
using one physical input for up/down counting and one for the direction (up counting or down counting). Up/down counting pulses are received at the IA input l and the direction (up counting or down counting) is determined by the status of the IB input (up counting for state 0, down counting for state 1), using one physical input for up/down counting, and the application to determine l the direction (setting the bit to 0 or 1). Up/down counting pulses for are received at the IA input.
The maximum frequency of up/down counting on each channel is 1MHz, using two physical entries with signals out-of-phase by π /2 (incremental encoder signals). Counting signal A is received at the IA input, and counting signal B at the IB input,
The maximum frequency of out-of-phase signals is 500kHz (multiplied by 1) or
250kHz (multiplied by 4).
Using one physical input for receiving series data (signals from an absolute encoder with series outputs) and one for sending the transmission clock to the encoder.
40
Functions
Auxiliary inputs The 24 VDC auxiliary inputs and the external supplies are grouped together using a
HE10 connector, shared by two channels. The connector comprises the following signals: preset value setting IPres , up/down counting confirmation IVal , capture of the current value ICapt .
l Preset the preset can be performed in any of the ways described below: l when changing the state (rising or falling edge) of the IPres• input and the l software confirmation, on the rising edge of the IPres• input if the counting direction is positive or on the IPres• falling edge if the count direction is negative, with software confirmation, counting direction counting direction
Physical input IPres• l on the rising edge of the IPres• input if the direction is down counting (negative) or on the falling edge of the IPres• input if the count direction is positive, with software confirmation, counting direction counting direction
Physical input IPres• l l when the IPres• input is in state 1, with software confirmation. The current value will not change while the input is in state 1, at reference point short cam: the preset is taken into account:
- if the direction is up counting (positive): the IPres• input is in state 1 and the rising edge of the IZ input is top-turn, with software confirmation,
- if the direction is down counting (negative): the IPres• input is in state 1 and the falling edge of the IZ input is top-turn, with software confirmation, counting direction counting direction
Physical input IPres•
Top-turn input IZ
Preset Preset
41
Functions l
Comment
In theory, as the short cam is lower than an incremental encoder turn, the topturn only happens once in the cam.
If however several encoder turns occur in the cam, the last active edge of the top-turn signal triggers a preset.
at reference point long cam: the inclusion of the preset occurs on the first rising edge of the IZ top-turn input after the IPres• input has reached state 0, in an ascending or descending direction, and with software confirmation, counting direction counting direction
Physical input IPres•
Top-turn input IZ
Preset Preset l l l directly, using the software.
Up/down counting confirmation
Up counting or down counting is confirmed in any of the ways described below: l by setting the IVal input to 1, l directly, using the software.
Capture
The capture of the current value is performed in any of the ways described below: l when changing the state (rising or falling edge) of the ICapt input, with software confirmation, l directly, using the software.
Note: For more information on these functions, refer to the application manual.
Line check input:
EPSR
This input, which is normally connected to the "supply feedback" output of an incremental encoder is used to monitor the encoder supply and ensure that it is correct.
In case of a short circuit or line break on the cable carrying the encoder supply voltage, the fault generated is indicated and can be dealt with using the application program.
Counter outputs The up/down counting function comprises two counter outputs, which can be assigned to two physical reflex outputs (Q0 and Q1), located on the counter module.
These two counter outputs have conditions for their activation and deactivation, which are defined by the user using an encoding matrix (30 possible combinations), accessible in the adjustment function.
42
Functions
Physical outputs Each channel of the TSX CTY2C module has 4 physical outputs - Q0 and Q3.
l l
Physical outputs Q0 and Q1, which are identical to those of the TSX CTY 2A or
TSX CTY 4A modules, can be controlled as follows: l in automatic mode: if the physical output is enabled, the state of the counter output is also applied to the physical output (counter output 0 controls output Q0, counter output 1 controls output Q1).
If the physical output is not enabled, it is set to 0.
in manual mode: the state of the physical output is controlled manually.
the output Q2 can only be controlled in manual mode.
The Q3 output is a configurable input/output. It can be used in programmable frequency mode, in order to provide an external synchronization loop on several channels of several counter modules.
When using an absolute encoder(s) with parallel outputs, with a TELEFAST
ABE-7CPA11 adapter, it is possible to use the Q2 and Q3 outputs as discrete outputs, which are used to address this (these) encoder(s).
Note: For more information on the installation of the counter outputs and physical outputs, refer to the application manual.
Note: The diagrams showing the cabling process for a 15-pin SUB-D connector
(one channel) are identical to those for up/down counting with a TSX CTY 2A/4A module (process diagrams 1 to 4). These diagrams are completed by process diagram 5 (below), which includes cabling for an absolute encoder with series outputs, or with parallel outputs, using a TELEFAST ABE-7CPA11 adapter.
43
Functions
Process diagram 5
Illustration Using one physical input to receive serial data and one to send data from the encoder transmission clock to the absolute SSI encoder.
Standard 15-pin SUB-D connector to link up counting sensor
Serial data inputs
Serial transmission clock output.
Supply reserved exclusively for supply to an encoder (external supply transfer connected to HE10 connector)
Encoder return supply signal (must be connected)
Absolute encoder supply
5 VDC or 10...30 VDC according to encoder type
Encoder reference voltage 10…30
VDC
Channel 0 preset input
Channel 0 enable input/output Q2
Channel 0 capture input
Channel 0 Q3 output
Channel 1 preset input
Channel 1 enable input/output Q2
Channel 1 capture input
Channel 1 Q3 output
Channel 0 physical reflex outputs
Channel 1 physical reflex outputs
Sensor supply of 24 VDC auxiliary inputs
HE10 connector to connect thesupplies (encoders and sensors),
the auxiliary inputs (reset, enable etc.)and the reflex outputs.
44
Connection process for the EPSR "supply feedback" input
Introduction This input must be connected.
The connection method of this input depends on the encoder type used.
Incremental encoder with a
"supply feedback" output the EPSR input is connected to the encoder’s "supply feedback" output:
Functions
Encoder standard 15-pin SUB-D
Absolute encoder with serial outputs and an encoder
"supply feedback" output the EPSR input is connected to the encoder’s "supply feedback" output:
Encoder standard 15-pin SUB-D
Incremental encoder with no
"return supply" output the EPSR input is connected to the + encoder supply at the encoder:
Encoder standard 15-pin SUB-D
45
Functions
Absolute encoder with serial outputs with no "supply feedback" output the EPSR input is connected to the + encoder supply at the encoder:
Encoder standard 15-pin SUB-D
Inductive proximity sensor l l the EPSR input is connected to the + supply of the count sensors, the –0 VDC output is connected to the - supply of the count sensors.
Illustration:
Encoder standard 15-pin SUB-D
Comment
If the sensor is not equipped with a "supply feedback" output, it is possible not to cable the EPSR input of a TSX CTY 2C module. In this case, it is recommended to hide the "encoder supply or proximity sensor" fault.
Note: For more information on these functions, refer to the application manual.
46
Stáhnout
Reklama