Index Manuals FANUC I/O Unit–MODEL A CONNECTION AND MAINTENANCE MANUAL MARMGIOMA12801E REV. F (B-61813EN/06)
|
|
B-61813E/06
CONNECTION 8.HIGH-SPEED COUNTER MODULE
8.9
EXAMPLE OF STARTING UP ACT01A
8.9.1
Mode A Startup Flowchart
Start
Note: The PRS bit is reset to "0" at the start.
Load DTOH, DTOM, and DTOL with desired preset values.
Set SELECT to 001.
Preset values are specified.
Set PRS to 1.
Wait for 2 scan cycles.
Load DTOH bits 0 to 2 with desired value.
Set SELECT to 000.
Compare output
values are specified.
Set PRS to 0.
Wait for 2 scan cycles.
Load DTOH, DTOM, and DTOL with desired comparison values.
Comparison values are specified.
Note: If compare registers B and
Set SELECT to 010 (to select compare register A).
C are also to be used,
repeat these steps for
them with different
SELECT values.
Set PRS to 1.
Note: The PRS bit is inverted (0
→ 1 or 1 → 0) each time a
value is specified.
Wait for 2 scan cycles.
Set CE to 1.
Counting is enabled.
Start counting.
*1 The CNTH is the 7 low-order bits
Count values are the CNTH(*1), CNTM, and CNTL that are read when TRA = TRB.
of the CNTS.
- 125 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/06
8.9.2
Example of Mode A Ladder
Allotment
Address
Group
Base
Slot
Module name Address
Group
Base
Slot
Module name
The ACT01A is allocated to X0010 to X0013 and Y0010 to Y0013. Y0000 to Y0003 are the addresses used
to confirm count values.
Ladder example
R0100.1 is used as a normally ON coil.
The timer is used to generate a timing
signal at intervals of 16 ms (2 scan cycles).
R0000.0 is turned on 16 ms (2 scan cycles)
after RUN.
R0000.1 is turned on 32 ms (4 scan cycles)
after RUN.
R0000.2 is turned on 48 ms (6 scan cycles)
after RUN.
R0000.3 is turned on 64 ms (8 scan cycles)
after RUN.
- 126 -
B-61813E/06
CONNECTION 8.HIGH-SPEED COUNTER MODULE
A preset value is specified right after RUN.
A preset value of +1000 is used here.
If +1000 → 0003E8h, the following are
written:
Y0011: DTOH ← 00h
Y0012: DTOM ← 03h
Y0013: DTOL ← E8h
If Y0012 to Y0013 have 1-word data,
E803h → -6141 is written.
In addition, if SELECT = 001 and PRS = 1,
Y0010:00001001 is set to 9 (Y0011 is 0).
Compare register A is loaded with a
comparison value 2 scan cycles after RUN.
A preset value of +960 is used here.
If +960 → 0003C0h, the following are
written:
Y0011: DTOH ← 00h
Y0012: DTOM ← 03h
Y0013: DTOL ← C0h
If Y0012 to Y0013 have 1-word data, C003h
→ -16381 is written.
In addition, if SELECT = 010 and PRS = 0,
Y0010:00000010 is set to 2 (Y0011 is 0).
Compare register B is loaded with a
comparison value 4 scan cycles after RUN.
A preset value of +1000 is used here.
If +1000 → 0003E8h, the following are
written:
Y0011: DTOH ← 00h
Y0012: DTOM ← 03h
Y0013: DTOL ← E8h
If Y0012 to Y0013 have 1-word data, E803h
6141 i
itt
- 127 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/06
In addition, if SELECT = 011 and PRS = 1,
Y0010:00001011 is set to 11 (Y0011 is 0).
Compare register C is loaded with a
comparison value 6 scan cycles after RUN.
A preset value of +1040 is used here.
If +1040 → 000410h, the following are
written:
Y0011: DTOH ← 00h
Y0012: DTOM ← 04h
Y0013: DTOL ← 10h
If Y0012 to Y0013 have 1-word data, 1004h
→ +4100 is written.
In addition, if SELECT = 100 and PRS = 0,
Y0010:00000100 is set to 4 (Y0011 is 0).
The counter is enabled 8 scan cycles after
RUN.
X0010 to X0013 are sent to R0010 to
R0013 to maintain data consistency.
A timing signal indicating TRA = TRB is
generated.
If TRA = TRB = 1 or TRA = TRB = 0, R50.2
becomes 1.
- 128 -
B-61813E/06
CONNECTION 8.HIGH-SPEED COUNTER MODULE
The counter value is output to Y0001 to
Y0003 when TRA = TRB.
CNTH→Y0001
CNTM→Y0002
CNTL→Y0003
The highest-order bit (TRA) is masked
because CNTH is 7-bit data.
NOTE
1 This sample ladder does not specify what the compare output is. To have it
specify, perform the same operation as for setting the compare register by
changing the SELECT value. Note that it is necessary to invert the PRS bit (0 → 1
or 1 → 0) each time a value is specified.
2 The compare output value and comparison value can be specified in any order
until CE = 1 (counter enable).
- 129 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/06
8.9.3
Mode B Startup Flowchart
Start
Note: For both modes A and B, the PRS bit is reset to "0" at the start.
CTRL:0Fh (SELECT=7, PRS=1)
DTOH:01h
DTOM:00h
DTOL:00h
Mode B is entered.
Write the above values.
Wait for 2 scan cycles.
Load DTOH, DTOM, and DTOL with desired preset values.
Preset values are specified.
Set SELECT to 22(16Hex).
Note: The PRS bit hereafter
works as the PRS bit (bit
5) for mode B.
Set PRS to 1.
Wait for 2 scan cycles.
Set DTOH, DTOM, and DTOL with compare results (8 bits) output,
Compare result output values are
respectively, for partition #0, #1, and #2.
specified.
Note: If compare result output
values for other partitions
Set SELECT to 16(10Hex).
(#3 to #16) are to be used,
repeat the same operation
by changing the SELECT
Set PRS to 0.
value.
Note: The PRS bit is inverted (0 →
1 or 1 →0) each time a
Wait for 2 scan cycles.
value is specified.
Comparison values are specified.
Set DTOH, DTOM, and DTOL with desired comparison values for partition #0.
Note: If comparison values for
other partitions (#1 to #15)
Set SELECT to 0.
are to be used, repeat the
same operation by
changing the SELECT
Set PRS to 1.
value.
Note: The PRS bit is inverted (0
→ 1 or 1 → 0) each time a
Wait for 2 scan cycles.
value is specified.
Set CE to 1.
Counting is enabled.
Start counting.
(*1)
The CNTH is the 7 low-order bits
Count values are the CNTH(*1), CNTM, and CNTL that are read when TRA = TRB.
of the CNTS.
- 130 -
B-61813E/06
CONNECTION 8.HIGH-SPEED COUNTER MODULE
8.9.4
Example of Mode B Ladder
Allotment
Address
Group
Base
Slot
Module name Address
Group
Base
Slot
Module name
The ACT01A is allocated to X0010 to X0017 and Y0010 to Y0013. Y0000 to Y0003 are the addresses used
to confirm count values.
Ladder example
R0100.1 is used as a normally ON coil.
The timer is used to generate a timing signal
at intervals of 16 ms (2 scan cycles).
R0000.0 is turned on 16 ms (2 scan cycles)
after RUN.
R0000.1 is turned on 32 ms (4 scan cycles)
after RUN.
R0000.2 is turned on 48 ms (6 scan cycles)
after RUN.
R0000.3 is turned on 64 ms (8 scan cycles)
after RUN.
- 131 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/06
R0000.4 is turned on 80 ms (10 scan cycles)
after RUN.
R0000.5 is turned on 96 ms (12 scan
cycles) after RUN.
R0000.6 is turned on 112 ms (14 scan
cycles) after RUN.
R0000.7 is turned on 128 ms (16 scan
cycles) after RUN.
R0001.0 is turned on 144 ms (18 scan
cycles) after RUN.
R0001.1 is turned on 160 ms (20 scan
cycles) after RUN.
Mode B is entered right after RUN.
The following are written:
CTRL: 0Fh (SELECT = 7 and PRS = 1)
DTOH: 01h
DTOM: 00h
DTOL: 00h
- 132 -
B-61813E/06
CONNECTION 8.HIGH-SPEED COUNTER MODULE
Continued from mode B writing
A preset value is specified 2 scan cycles after
RUN.
A preset value of +1000 is used here.
If +1000 → 0003E8h, the following are
written:
Y0011: DTOH ← 00h
Y0012: DTOM ← 03h
Y0013: DTOL ← E8h
If Y0012 to Y0013 have 1-word data, E803h
→ -6141 is written.
In addition, if SELECT = 22(16h) and PRS =
1, Y0010:00110110 is set to 36h → +54
(Y0011 is 0).
A comparison value for partition #0 is
specified 4 scan cycles after RUN.
A comparison value of +960 is used here. (A
range from 0 to +960 becomes partition #0.)
If +960 → 0003C0h, the following are written:
Y0011: DTOH ← 00h
Y0012: DTOM ← 03h
Y0013: DTOL ← C0h
If Y0012 to Y0013 have 1-word data, C003h
→ -16381 is written.
In addition, if SELECT = 0 and PRS = 0,
Y0010 is set to 0 (Y0011 is 0).
- 133 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/06
An output value for partition #0 to #2 is
specified 6 scan cycles after RUN.
To be specific, the following are output.
Partition #0: Y0011 ← 00h
Partition #1: Y0012 ← FFh
Partition #2: Y0013 ← 55h
If Y0012 to Y0013 have 1-word data, 55FFh
→ +22015 is written.
In addition, if SELECT = 16(10h) and PRS =
1, Y0010=0011000 is set to 30h → +48
(Y0011 is 0).
A comparison value for partition #1 is specified
8 scan cycles after RUN.
A comparison value of +1000 is used here. (A
range from +960 to +1000 becomes partition
#1.)
If +1000 → 0003E8h, the following are written:
Y0011: DTOH ← 00h
Y0012: DTOM ← 03h
Y0013: DTOL ← E8h
If Y0012 to Y0013 have 1-word data, E803h →
-6141 is written.
In addition, if SELECT = 1 and PRS = 0, Y0010
is set to 00000001 (Y0011 is 0).
A comparison value for partition #2 is
specified 10 scan cycles after RUN.
A comparison value of +1040 is used here. (A
range from +1000 to +1040 becomes
partition #2.)
If +1040 → 000410h, the following are
written:
Y0011: DTOH ← 00h
Y0012: DTOM ← 04h
Y0013: DTOL ← 10h
If Y0012 to Y0013 have 1-word data, 1004h
→ +4100 is written.
- 134 -
B-61813E/06
CONNECTION 8.HIGH-SPEED COUNTER MODULE
In addition, if SELECT = 2 and PRS = 1,
Y0010=00100010 is set to 22h → +34
(Y0011 is 0).
A comparison value for partition #3 is
specified 12 scan cycles after RUN.
A comparison value of +1080 is used here.
(A range from +1040 to +1080 becomes
partition #3.)
If +1080 → 000438h, the following are
written:
Y0011: DTOH ← 00h
Y0012: DTOM ← 04h
Y0013: DTOL ← 38h
If Y0012 to Y0013 have 1-word data, 3804h
→ +14340 is written.
In addition, if SELECT = 3 and PRS = 0,
Y0010=00000011 is set to +3 (Y0011 is 0).
A comparison value for partition #4 is
specified 14 scan cycles after RUN.
A comparison value of +1120 is used here.
(A range from +1080 to +1120 becomes
partition #4.)
If +1120 → 000460h, the following are
written:
Y0011: DTOH ← 00h
Y0012: DTOM ← 04h
Y0013: DTOL ← 60h
If Y0012 to Y0013 have 1-word data, 6004h
→ +24580 is written.
In addition, if SELECT = 4 and PRS = 1,
Y0010=00100100 is set to 24h → +36
(Y0011 is 0).
- 135 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/06
An output value for partition #3 to #5 is
specified 16 scan cycles after RUN.
To be specific, the following are output.
Partition #3: Y0011 ← AAh
Partition #4: Y0012 ← FFh
Partition #5: Y0013 ← 00h
If Y0012 to Y0013 have 1-word data, 00FFh
→ +255 is written.
In addition, if SELECT = 17(11h) and PRS =
0, 1-word data AA11h → -21999 is written to
Y0010 to Y0011 because Y0010 = 0001001
= 11h and Y0011 = AAh.
A comparison value for partition #5 is
specified 18 scan cycles after RUN.
A comparison value of +1160 is used here.
(A range from +1120 to +1160 becomes
partition #5.)
If +1160 → 000488h, the following are
written:
Y0011: DTOH ← 00h
Y0012: DTOM ← 04h
Y0013: DTOL ← 88h
If Y0012 to Y0013 have 1-word data, 8804h
→ -30716 is written.
In addition, if SELECT = 5 and PRS = 1,
Y0010=00100101 is set to 25h → +37
(Y0011 is 0).
The counter is enabled 20 scan cycles after
RUN.
X0010 to X0013 are sent to R0010 to R0013
to maintain data consistency.
- 136 -
B-61813E/06
CONNECTION 8.HIGH-SPEED COUNTER MODULE
A timing signal indicating TRA = TRB is generated.
If TRA = TRB = 1 or TRA = TRB = 0, R50.2
becomes 1.
The counter value is output to Y0001 to Y0003
when TRA = TRB.
CNTH → Y0001
CNTM → Y0002
CNTL → Y0003
The highest-order bit (TRA) is masked because
CNTH is 7-bit data.
NOTE
1 This sample ladder does not set a comparison value or output value for partition #6
and above. If comparison and output values for these partitions are to be used,
repeat the same operation as for partition #6 and below by changing the SELECT
value.
Be sure to invert the PRS bit (0 → 1 or 1 → 0) each time a value is specified.
2 The comparison and compare output values for each partition can be specified in
any order until CE = 1 (counter enable).
- 137 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/06
9 TEMPERATURE INPUT MODULE
9.1
OVERVIEW
A temperature input module is used to measure the temperature of machine tools and similar equipment.
The temperature input module can be either of the following, depending on the type of the sensor used.
• Thermoresistance-type temperature input module: ATI04A
• Thermocouple-type temperature input module: ATI04B
These modules can measure temperature on up to four channels. For the thermoresistance-type temperature
input module, either JPt100Ω or Pt100Ω can be selected. For the thermocouple-type temperature input
module, either K or J thermocouple input can be selected. This selection is made using the PMC user
program (ladder).
ATI04A
ATB04A
CA48
Module setting
Flat cable
CNC
Resistance
temperature
sensor
Temperature data
(3-wire type)
Terminal unit
Temperature input module
(for resistance
(for resistance temperature sensor)
temperature sensor)
ATI04B
ATB04B
CA47
Module setting
Flat cable
CNC
Tthermo couple sensor
(2-wire type)
Temperature data
Cold junction
compensation element
Terminal unit*
(build-in product)
(for thermo couple)
Temperature input module
(for thermo couple)
NOTE
The terminal unit for thermo couple is necessary for the temperature input module
for thermo couple because the module requires the cold junction compensation
element.
- 138 -
B-61813E/06
CONNECTION
9.TEMPERATURE INPUT MODULE
9.2
TEMPERATURE INPUT MODULE SPECIFICATION
Input signal types and number of
• Types ATI04A
input channels
Three-wire thermoresistance (JPt100Ω)
Three-wire thermoresistance (Pt100Ω)
ATI04B
J thermocouple (can also be used with the tip grounded)
K thermocouple (can also be used with the tip grounded)
• Number of input channels
2/4, for all for which the input is the same
Input signal switching method
• User program (ladder)
Temperature measurement range
• Thermoresistance type (ATI04A)
and precision
-50 to 300.0°C
Resolution
0.1°C
Overall precision
±1%FS
• Thermocouple type (ATI04B)
0 to 600.0°C
Resolution
0.1°C
Overall precision
±1%FS
Data sampling period setting (Note)
• 0.3 s per two channels
• 0.5 s per four channels to 10 s per four channels
(4 s per four channels is assumed if no specification is made)
System failure check
• Self-diagnosis
A watchdog timer is used.
• Abnormal temperature (including sensor input disconnection)
Failure information about each abnormal channel is sent to the PMC.
Interface with the PMC
• PMC → temperature module
Information format: Binary or bit
Signals: 32 points
• Temperature module → PMC
Information format: Binary or bit
Signals: 32 points
External connection
Connector
(Hirose Electric : HIF3BA-34PA-2.54DS)
NOTE
The actual response time is the sum of the time required for the signal to pass the
filter and the scan time that is determined depending on the system1
- 139 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/06
9.3
PMC INTERFACE
9.3.1
PMC I/O Area
This temperature module uses an input/output area consisting of four bytes for input and the same number
of bytes for output. Each byte of the input/output area has the following meanings. The terms "input" and
"output" are used in reference to the PMC. When input/output addresses are assigned to the module, "/4" is
used as the module name.
(1) Output (PMC → temperature module)
Addresses in the module
0
DO07 to DO00
Period for 4-channel automatic measurement mode (lower 8 bits)
+1
DO15 to DO08
Period for 4-channel automatic measurement mode (higher 8 bits)
+2
DO23 to DO16
Module setting data and timing data
+3
DO31 to DO24
Module setting data and timing data
(2) Input (temperature module → PMC)
Addresses in the module
0
DI07 to DI00
CH1 temperature data, CH3 temperature data, or abnormality data (lower 8 bits)
+1
DI12 to DI08
CH1 temperature data, CH3 temperature data, or abnormality data (higher 5 bits)
DI15 to DI13
Status signal
+2
DI23 to DI16
CH2 temperature data, CH4 temperature data, or abnormality data (lower 8 bits)
+3
DI28 to DI24
CH2 temperature data, CH4 temperature data, or abnormality data (higher 5 bits)
DI31 to DI29
Status signal
NOTE
If you are using the PMC-N, NA, or QA (PMC for the Series 15 (Series 15
preceding the i series) and F-D Mate), all addresses up to those listed above can
be used without modifying them if the data is manipulated in byte (8-bit) units.
When manipulating data in word (16-bit) units, note that the byte addresses are
transposed as shown below.
Addresses for word-unit operation in the PMC-N, NA, and QA
PMC → Temperature module
Temperature module → PMC
High-order bits
Low-order bits
High-order bits
Low-order bits
Addresses in the module
Addresses in the module
0
DO07 to DO00
DO15 to DO08
0
DI07 to DI00
DI15 to DI08
+2
DO23 to DO16
DO31 to DO24
+2
DI23 to DI16
DI31 to DI24
9.3.2
Measurement Mode
This temperature module can operate in any of the following three measurement modes. The mode to use
can be selected using a user program (ladder).
(1)
2-channel measurement mode
This mode uses two channels, CH1 and CH2, for measurement. Data on each channel is updated every
0.3 s.
- 140 -
B-61813E/06
CONNECTION
9.TEMPERATURE INPUT MODULE
(2)
4-channel automatic measurement mode
This mode uses four channels, CH1 to CH4, for measurement. Input switching from CH1 and CH2
data to CH3 and CH4 data and vice versa is performed automatically. Data on each channel is updated
at a specified interval, say, every 0.5 to 10 s.
(3)
4-channel manual measurement mode
This mode uses four channels, CH1 to CH4, for measurement. The PMC can reference CH1 and CH2
data or CH3 and CH4 data at the desired timing.
9.3.3
Details of Output Signals (PMC → Temperature Module)
DO07
DO06
DO05
DO04
DO03
DO02
DO01
DO00
DO15
DO14
DO13
DO12
DO11
DO10
DO09
DO08
DO22
DO19
DO18
DO17
DO16
DO26
DO25
DO24
(1)
Before setting the module setting data bit (NC READY (DO16)) to "1", set the following bits.
DO00 (LSB) to DO15 (MSB):
Channel switching period for 4-channel automatic measurement mode
These bits are set with a binary number representing the channel switching period for the
4-channel automatic measurement mode. They need not be set for the 2-channel mode.
The period can be varied in a range between 0.5 s and 10 s. When setting the bits, use a value ten
times the desired period.
(Example) 2 s → 20 (14h)
The valid data range is between 5 and 100 (64h). Any value out of this range is regarded as being
40 (28h), that is, 4 s. If nothing is specified, a period of 4 s is again assumed.
DO17 : Module type
This bit is set according to the type of the temperature module being used.
0 : Thermocouple-type module (ATI04B)
1 : Thermoresistance-type module (ATI04A)
DO18 : Sensor type
This bit is set according to the type of the temperature sensor being used.
• ATI04A
0 : Pt
1 : JPt
• ATI04B
0 : K
1 : J
DO19 : Reserved for future use
This bit must always be set to "0".
DO24 : Number of channels
This bit is used to specify the number of channels to be measured.
0 :
2 channels
1 :
4 channels (if 1 is selected, DO25 must also be used.)
- 141 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/06
DO25 :
4-channel mode specification
This bit is used to select the 4-channel mode to be used.
0 : Automatic measurement (the period is specified using DO00 to DO15.)
1 : Manual measurement (a request is issued using DO22 and DO26 at every data read.)
2)
Timing data
DO16 : NC READY
When the power is switched on, this bit is set to "1" to cause the module setting data to be set in
the temperature module.
The NC READY bit is enabled only once after the power is switched on. To rewrite the module
setting data, switch the power off and then on again.
DO22 : READ request
This bit serves as the timing signal used in 4-channel manual measurement mode. Setting the bit
to "1" issues a request for temperature data. When the input signal data READY signal becomes
"1", read the temperature data.
This bit need not be set for 2-channel mode.
READ request
1 s or longer
NOTE
After setting the NC READY bit to "1", wait for one second, and then set the READ
request to "1".
DO26 : Channel select
This bit is used to specify channel switching for 4-channel manual measurement mode.
0: Channels 1 and 2
1: Channels 3 and 4
NOTE
See Section 9.5, "Timing Charts," for concrete explanations about how to handle
the timing data.
9.3.4
Details of Input Signals (Temperature Module → PMC)
(1) Status signals and CH1 temperature data, CH3 temperature data, or abnormality data
DI07
DI06
DI05
DI04
DI03
DI02
DI01
DI00
DI15
DI14
DI13
DI12
DI11
DI10
DI09
DI08
•
Status signals
DI13 : Abnormality sign bit
1 : This bit is set to "1" when the temperature input is abnormal. DI00 to DI12 are used to
describe the abnormality.
0 : DI00 to DI12 are used to indicate the temperature data.
DI14 : CH1 data READY
1 : Read the CH1 temperature data from DI00 to DI12 when this bit is set to "1".
- 142 -
B-61813E/06
CONNECTION
9.TEMPERATURE INPUT MODULE
DI15 : CH3 data READY
1 : Read the CH3 temperature data from DI00 to DI12 when this bit is set to "1".
•
CH1 temperature data, CH3 temperature data, or abnormality data
DI00 (LSB) to DI12 (MSB):
These bits indicate temperature input data (CH1/CH3) or abnormality data.
Temperature input data
The temperature input data is in binary. It is ten times the actual temperature.
Example
(83EDh → 1005 → 100.5°C)
The highest three bits are status signals.
For the thermoresistance-type module (ATI04A), the DI12 bit is a sign bit. (Negative data is represented in
two's complement.)
Example
(9F9Ch → -10.0°C)
The highest three bits are status signals.
Abnormality data
If an abnormality occurs in the input data or in the module, the DI13 bit (status signal) becomes "1",
resulting in the display changing from temperature input data to abnormality data. Abnormality data is
assigned to these bits as listed below:
DI00 : CH1 input out of scale--the current temperature falls outside the measurable range.
DI01 : CH1 input burn-out--the cable or connector has been detached.
DI02 : CH3 input out of scale--the current temperature falls outside the measurable range.
DI03 : CH3 input burn-out--the cable or connector has been detached.
DI04 : Cold-junction abnormality (only for thermocouple-type input module)—
The ambient temperature of the terminal unit is out of the measurable range (0°C to 55°C).
Alternatively, a wire between the temperature input module and the terminal unit is broken or
short-circuited, or the cold-junction compensation element is damaged.
DI05 : System error--the internal circuit is abnormal.
DI06 : Wrong module--other than the correct module has been installed.
(2) Status signals, CH2 temperature data, CH4 temperature data, or abnormality data
DI23
DI22
DI21
DI20
DI19
DI18
DI17
DI16
DI31
DI30
DI29
DI28
DI27
DI26
DI25
DI24
•
Status signals
DI129 : Abnormality sign bit
1 : This bit becomes "1" when the temperature input becomes abnormal. DI16 to DI28 are used
to describe the abnormality.
0 : DI16 to DI28 are used to indicate the temperature data.
DI30 : CH2 data READY
1 : Read the CH2 temperature data from DI16 to DI28 when this bit is set to "1".
DI31 : CH4 data READY
1 : Read the CH4 temperature data from DI16 to DI28 when this bit is set to "1".
•
CH2 temperature data, CH4 temperature data, or abnormality data
DI16 (LSB) to DI28 (MSB):
These bits indicate temperature input data (CH2/CH4) or abnormality data.
- 143 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/06
Temperature input data
The temperature input data is in binary. It is ten times the actual temperature.
Example
(41F3h → 0499 → 49.9°C)
The highest three bits are status signals.
For a thermoresistance-type module (ATI04A), the DI28 bit is a sign bit. (Negative data is represented in
two's complement.)
Example
(5FFBh → -0.5°C)
The highest three bits are status signals.
Abnormality data
If an abnormality occurs in the input data or the module, the DI29 bit (status signal) is set to "1", resulting in
the display changing from temperature input data to abnormality data. Abnormality data is assigned to these
bits as listed below:
DI16 : CH2 input out of scale--the current temperature falls outside the measurable range.
DI17 : CH2 input burn-out--the cable or connector has been detached.
DI18 : CH4 input out of scale--the current temperature falls outside the measurable range.
DI19 : CH4 input burn-out--the cable or connector has been detached.
DI20 : Cold-junction abnormality (only for thermocouple-type input module)—
The ambient temperature of the terminal unit is out of the measurable range (0°C to 55°C).
Alternatively, a wire between the temperature input module and the terminal unit is broken or
short-circuited, or the cold-junction compensation element is damaged.
DI21 : System error--the internal circuit is abnormal.
DI22 : Wrong module--other than the correct module has been installed.
9.4
COMPLETE CONNECTION OF TEMPERATURE INPUT
MODULE
9.4.1
Temperature Input Module Connection Diagram
Temperature sensors
•Thermoresistance
•J/K thermocouple
Temperature input module
Hirose Electric Co., Ltd.
Cable
Hirose
Electric Co., Ltd.
Terminal unit
(There are two types of terminal board units, the first for a thermoresistance-type module
and the second for a thermocouple-type module.)
See Section 9.7 for explanations about the dimensions of the terminal unit.
- 144 -
B-61813E/06
CONNECTION
9.TEMPERATURE INPUT MODULE
9.4.2
Connector Signal Lists
(1)
Thermoresistance input module
ATI04A
Channel
Pin No.
Pin No.
Channel 1 -
1A
1B
Channel 1 +
2A
2B
Channel 1 +
3A
3B
Channel 2 -
4A
4B
Channel 2 +
5A
5B
Channel 2 +
6A
6B
Channel 3 -
7A
7B
Channel 3 +
8A
8B
Channel 3 +
9A
9B
Channel 4 -
10A
10B
Channel 4 +
11A
11B
Channel 4 +
12A
12B
Unusable
13A
13B
Unusable
14A
14B
Unusable
15A
15B
Unusable
16A
16B
Unusable
17A
17B
(2)
Thermocouple input module
ATI04B
Channel
Pin No.
Pin No.
Channel 1 -
1A
1B
Channel 1 +
2A
2B
Unusable
3A
3B
Channel 2 -
4A
4B
Channel 2 +
5A
5B
Unusable
6A
6B
Channel 3 -
7A
7B
Channel 3 +
8A
8B
Unusable
9A
9B
Channel 4 -
10A
10B
Channel 4 +
11A
11B
Unusable
12A
12B
Cold-junction compensation element A
13A
13B
Cold-junction compensation element B1
14A
14B
Cold-junction compensation element B2
15A
15B
Unusable
16A
16B
Unusable
17A
17B
- 145 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/06
9.4.3
Terminal Unit Connection Diagram
For thermoresistance-type module (ATB01A)
For thermocouple-type module (ATB01B)
Terminal board
Connector
Terminal board
Connector
NOTE
The thermocouple module ATB01B incorporates a cold-junction compensation
device (PT1). It is essential to temperature measurement with a thermocouple.
Use the ATB01B whenever the ATI04B is used.
- 146 -
B-61813E/06
CONNECTION
9.TEMPERATURE INPUT MODULE
9.5
TIMING CHARTS
(1)
2-channel mode
NC READY
Temperature data
CH1/CH2 data
READY
(Note)
0.3s
NOTE
The actual response time is the sum of the time required to pass the filter and the
scan time that is determined depending on the system.
(2)
4-channel automatic measurement mode
Temperature data
CH1/CH2 data
READY
CH3/CH4 data
READY
Specified period (0.5 to 10 s)
(Note)
NOTE
The actual response time is the sum of the time required to pass the filter and the
scan time that is determined depending on the system.
(3)
4-channel manual measurement mode
Channel select
1 s or longer
READ request
Temperature
data
CH1/CH2 data
READY
CH3/CH4 data
READY
- 147 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/06
9.6
MEASUREMENT EXAMPLES
(1)
2-channel mode
(a) Flowchart
START
*Check that NC READY
(DO16) and DO19 are "0".
Specify the module type (DO17).
0 : Thermocouple module
1 : Thermoresistance module
Specify the sensor type (DO18).
0 : Pt/K
1 : JPt/J
Reset the number of channels bit
(DO24) to "0".
Set NC READY (DO16) to "1".
Now ready to
measure.
When CH1 data READY (DI14 of input signal) becomes
"1", input signals DI00 to DI12 represent CH1 data.
When CH2 data READY (DI30 of input signal) becomes
"1", input signals DI16 to DI28 represent CH2 data.
- 148 -
B-61813E/06
CONNECTION
9.TEMPERATURE INPUT MODULE
(b) Ladder example
The following measurement and ladder examples apply when a thermoresistance module with Pt
sensor is used for measurement.
PMC measurement
Address
Group
Base
Slot
Module name Address
Group
Base
Slot
Module name
Use R0000.0 as a full-time OFF coil.
Specify the module
(thermoresistance-type module).
Specify the sensor (Pt).
Specify the number of channels (two
channels).
NC READY (When R1.0 becomes "1",
NC READY becomes "1" to start
measurement.)
When CH1 data READY is "1", CH1
temperature data is sent to R10 to R11.
Mask three bits of the status signal
(1FFFh (8191) is ANDed with R10 and
R11) and transfer the temperature data
of CH1 to R20 and R21.
- 149 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/06
When CH2 data READY is "1", CH2
temperature data is sent to R12 to
R13.
Mask three bits of the status signal
(1FFFh (8191) is ANDed with R12
and R13) and transfer the
temperature data of CH2 to R22 and
R23.
NOTE
Set the ladder scan time to 0.25 s or less.
This example of ladder use is for the second level.
- 150 -
B-61813E/06
CONNECTION
9.TEMPERATURE INPUT MODULE
(2)
4-channel automatic measurement mode
(a) Flowchart
START
* Check that NC READY
(DO16) and DO19 are "0".
Specify the module type (DO17).
0 : Thermocouple module
1 : Thermoresistance module
Specify the sensor type (DO18).
0 : Pt/K
1 : JPt/J
Set the number of channels bit (DO24) to
"1".
Set the 4-channel mode specification bit (DO25)
to "0".
Specify the channel switching period (DO00 to
DO15).
Set NC READY (DO16) to "1".
Now ready to
measure.
When CH1 data READY (DI14 of input signal) becomes
"1", input signals DI00 to DI12 represent CH1 data.
When CH2 data READY (DI30 of input signal) becomes
"1", input signals DI16 to DI28 represent CH2 data.
When CH3 data READY (DI15 of input signal) becomes
"1", input signals DI00 to DI12 represent CH3 data.
When CH4 data READY (DI31 of input signal) becomes
"1", input signals DI16 to DI28 represent CH4 data.
- 151 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/06
(b) Ladder example
The following measurement and ladder examples apply when a J thermocouple module is used
for measurement.
PMC assignment
Address
Group
Base
Slot
Module name Address
Group
Base
Slot
Module name
Use R0000.0 as a full-time OFF coil.
Specify the module.
(thermocouple-type module)
Specify the sensor (J
thermocouple).
Specify the number of channels
(four channels).
Specify a 4-channel mode
(automatic measurement).
Specify the channel switching
period for 4-channel automatic
measurement.
Specify 25 to provide a period of
2.5 s.
NC READY (When R1.0 is set to "1",
NC READY becomes "1" to start
measurement.)
When CH1 data READY is set to "1",
CH1 temperature data is sent to R10
to R11.
- 152 -
B-61813E/06
CONNECTION
9.TEMPERATURE INPUT MODULE
Mask three bits of the status signal
(1FFFh (8191) is ANDed with R10
and R11) and transfer the
temperature data of CH1 to R20
and R21.
When CH2 data READY is "1", CH2
temperature data is sent to R12 to
R13.
Mask three bits of the status signal
(1FFFh (8191) is ANDed with R12
and R13) and transfer the
temperature data of CH2 to R22
and R23.
When CH3 data READY is "1", CH3
temperature data is sent to R14 to
R15.
Mask three bits of the status signal
(1FFFh (8191) is ANDed with R14
and R15) and transfer the
temperature data of CH3 to R24
and R25.
- 153 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/06
When CH4 data READY is "1", CH4
temperature data is sent to R16 to
R17.
Mask three bits of the status signal
(1FFFh (8191) is ANDed with R16 and
R17) and transfer the temperature
data of CH4 to R26 and R27.
NOTE
This example of ladder use is for the second level.
R0.0 is used as a normally open relay.
- 154 -
|
||
|
|
|