FANUC I/O Unit-MODEL A. CONNECTION AND MAINTENANCE MANUAL (B-61813E/04) - page 5

 

  Index      Manuals     FANUC I/O Unit-MODEL A. CONNECTION AND MAINTENANCE MANUAL (B-61813E/04)

 

Search            copyright infringement  

 

   

 

   

 

Content      ..     3      4      5      6     ..

 

 

 

FANUC I/O Unit-MODEL A. CONNECTION AND MAINTENANCE MANUAL (B-61813E/04) - page 5

 

 

B-61813E/04
CONNECTION 8.HIGH-SPEED COUNTER MODULE
8.6
CONNECTION WITH MACHINE (POWER MAGNETICS
CABINET)
8.6.1
Use in Mode A
Machine (power
magnetics cabinet)
SSR
Comparison
C49-A06
CMP A
signal output
A
SSR
Comparison
C49-A07
CMP
signal output
B
SSR
Comparison
C49-A08
CMPC
signal output
C
C49-A10
COM2
C49-A01
Marker enable
RV
ME
signal input
Count stop
C49-A02
RV
CSP
signal input
24VDC
±10%
C49-A03
COM1
- 121 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/04
8.6.2
Use in Mode B
- 122 -
B-61813E/04
CONNECTION 8.HIGH-SPEED COUNTER MODULE
8.7
I/O SIGNALS CONVENTIONS
8.7.1
Solid State Relay Output Signals (OUT0 to OUT7)
The solid state relay output signals drive relays in the machine (power
magnetics cabinet) side and indicator LEDs.
(1) Solid state relays
(a) Maximum load current at output-on
250 mA: Up to three outputs set to on
125 mA: Eight outputs set to on
(b) Saturation voltage at output-on
Not more than 6 × IL [V] (IL: load current)
(c) Withstand voltage at output-off
30 VDC max. even for instantaneous voltage
(d) Leak current at output-off
Not more than 100µA
(2) Output circuit
(3) Always install spark arresters when inductive loads such as relays
are connected in the machine. Insert the spark arresters as near the
load as possible (less than 20 cm). When capacitive loads are used
in the machine, insert current limiting resistors in series with the
loads to prevent the instantaneous current and voltage from
exceeding the rated values.
(4) If a lamp is turned on by a solid state relay output, the resulting
surge current may damage the solid state relay. Thus, as shown in
the figure below, provide a protective resistor to prevent the
instantaneous current and voltage from exceeding the rated values.
- 123 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/04
8.7.2
DC Input Signals (ME and CSP)
The DC input signals (such as relay contact signal) are sent from the
machine (control circuit) to the pulse counter module.
(1) Input conditions
On voltage and current: 15 VDC or more, 4.5 mA or more
Off voltage and current: 6 VDC or less, 2 mA or less
Response time: 20 ms or less
(2) Voltage and polarity
Voltage
:
24 VDC +10%, -20%
Polarity
: Positive or negative polarity available (The power is
not supplied from the pulse counter module.)
(3) Logical correspondence
Contact
Logic
Open
0
Closed
1
(4) Receiver circuit of DC input signal
Machine Pulse counter module
24 VDC +10%
-20%
8.7.3
+5-V Output from JA9 Connector
A voltage of +5 V on the JA9 connector of this module is the
output of the counter module (300 mA maximum).
It is necessary to satisfy Table 4.4 in Section 4.4, "Required
Current", though.
Example: Assuming that 100 mA is supplied from the +5-V pin
of the JA9 connector:
170 + 0.3 × 100 = 200
Thus, the required current is 200 mA.
- 124 -
B-61813E/04
CONNECTION 8.HIGH-SPEED COUNTER MODULE
8.8
SUPPLEMENT
8.8.1
Configuration of Mode A
How mode A is configured is shown below. The contents of the CNTS,
CNTM, CNTL, and STTS on a high-speed counter module are sent to
the X area assigned on the master via the I/O link. The contents of the Y
area assigned on the master are sent to CTRL, DTOH, DTOM, and
DTOL on the high-speed counter module, via the I/O link.
Master
Via the I/O link
(period of 2 ms)
High-speed counter
- 125 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/04
8.8.2
Counter Presetting and Counting
(1) Presetting a counter value
(using the external signal MKS)
To preset a counter value, using the MKS signal, follow this
procedure:
(a) Reset the MH (marker hold) signal.
(b) Preset a value in the counter at the rising edge of the MKS
signal.
The MH signal is set at the same time the counter is preset with
data.
(a) Resetting the MH signal
For mode A, both methods, (i) and (ii), are usable. For mode
B, method (ii) is usable.
(i)
Resetting the MS bit (bit 6) of the CTRL (control)
register to 0
Control example 1
(ii) Setting the MHR bit (bit 7) of the CTRL register to 1
.........................................Control example 2
Condition
Status
ME of
MKS of
MHR of
MS of
ME of
MH of
external
external
CTRL
CTRL
STTS
STTS
signal
signal
Changes
(i)
×
0
×
×
×
to 0.
Changes
(ii)
1
×
×
×
×
to 0.
The cross × in the above table means that the corresponding bit can be either 0 or 1.
(The ME bit of the STTS register corresponds to the state of the external signal ME.)
(b) Presetting a counter value
For both methods, (i) and (ii), the presetting is completed
within 100 µs after the MKS has arisen.
Condition
Status
ME of
MKS of
MHR of
MS of
ME of
MH of
external
external
CTRL
CTRL
STTS
STTS
signal
signal
Contact
(i), (ii)
0
1
First ↑ state
1
1
"Closed"
• Contact "Closed" in the above table means that 24 V is applied to the ME pin.
(2) Presetting a counter value (operating the PRS bit by ladder)
<1> Load the 3 low-order CTRL bits (SELECT) with 001 by
ladder.
<2> Preset the DTOH, DTOM, and DTOL by ladder.
<3> Invert the PRS bit by ladder.
(If the PRS is 0, set it to 1. If it is 1, reset it to 0.)
- 126 -
B-61813E/04
CONNECTION 8.HIGH-SPEED COUNTER MODULE
NOTE
1 Once the PRS bit has been inverted, do not change
the content of the DTOH, DTOM, DTOL, or CTRL
within the period of two ladder cycle scans.
Also do not invert the PRS bit again within the same
period.
2 It takes about 5 ms for the counter to be preset since
the inversion of the PRS bit.
Control example 1:
(Hatching
means that the bit can be either 0 or 1.)
Counter
Preset
Preset
Control example 2:
(Hatching
means that the bit can be either 0 or 1.)
Counter
Preset
Preset
(3) Count
The following table lists the conditions for counting by this
module.
Condition
Status
CSP of
PSEL of
CE of
CSP of
external
external
CTRL
STTS
signal
signal
Contact
Count (A/B phase pulse)
1
Open
Reset to 0.
"Open"
Contact
Connected to
Count (+/- pulse)
1
Reset to 0.
"Open"
0 V
• Contact "Open" in the above table means that the CSP pin is open (0 or
NEG).
- 127 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/04
NOTE
The count value does not become negative. The
highest-order bit of the CNTS register is the TRA bit
(see Subsection 8.8.4).
Count-down: +1(00 0001H)→0(00
0000H)→+8,388,607(7F FFFFH)→+8,388,606(7F
FFFEH)
(4) Stopping counting
The following table lists the condition for this module to stop
counting.
Condition
Status
CSP of
PSEL of
CE of
CSP of
external
external
CTRL
STTS
signal
signal
Count stop method 1
0
×
×
×
Contact
Count stop method 2
×
×
Reset to 1.
“Closed”
• Contact “Closed” in the above table means that 24 V is applied to the CSP
pin (1 or POS).
• The cross × in the above table means that the corresponding bit can be
either 0 or 1.
(The × state of the CSP pin of the STTS register corresponds to the state of
the external signal CSP.)
- 128 -
B-61813E/04
CONNECTION 8.HIGH-SPEED COUNTER MODULE
8.8.3
Setting Data
Data for some models (such as the FS15 and FS18) is in the opposite
order to that of the NC data. In this case, convert (rearrange) the data in
byte units.
[Example of setting]
CTRL
7
6
5
4
3
2
1
0
DTOH
PRS
SELECT
DTOM
DTOL
Example 1 :
To preset the counter preset register with a specific value (the
counter is also set to preset value), follow the steps below.
(1) Preset the DTOH, DTOM, and DTOL with a desired value.
(2) Set SELECT to 001.
(3) Reverse the setting of the PRS (from 0 to 1 or from 1 to 0).
(4) Wait for two scanning periods.
Another method for presetting the counter is to use the
MKS external signal (see Subsection 8.8.2). It takes a
maximum of 5 ms to preset using the first method, while
it takes only a maximum of 100 µs to preset using the
MKS external signal.
Example 2 :
To set the comparison control register with the setting (0 or 1) of
CMA, CMB, and CMC, follow the steps below.
(1) Set DTOH bits 0, 1, and 2 to the desired data.
(2) Set SELECT to 000.
(3) Reverse the setting of the PRS (from 0 to 1 or from 1 to 0).
(4) Wait for two scanning periods.
Example 3 :
To set comparison register B to a desired comparison value,
follow the steps below.
(1) Set DTOH, DTOM, and DTOL to the desired comparison
value.
(2) Set SELECT to 011.
(3) Reverse the setting of the PRS (from 0 to 1 or from 1 to 0).
(4) Wait for two scanning periods.
The result of comparing comparison registers A, B, and C with the
pulse counter is output via OUT0 to OUT2 of connector C49 of this
counter module (A OUT0, B OUT1, and C OUT2).
Their output status is output via OUT0 to OUT2 of the LED indication
panel (A OUT0, B OUT1, and C OUT2).
The result of comparison can be confirmed by checking STTS bits 0, 1,
and 2 (CMPA, CMPB, and CMPC) with the PMC.
- 129 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/04
8.8.4
Reading Data
The CNTS and STTS are two of the four input bytes. The most
significant bit, TRA, of the CNTS and the most significant bit, TRB, of
the STTS can be used to determine whether the count data is correct. If
both TRA and TRB are 0 or 1, the count data is correct. The
time during which the TRA and TRB bits have a different value from
each other is abut 2 msec.
In almost all cases, both TRA and TRB will be 0 or 1 when you view the
diagnostic display. (Do not determine that the data has not changed
because of the fact that the TRA and TRB do not become 0 or 1
alternately.) Note that the count data does not take a negative
value.
(CNTS)
TRA
Counter H
(STTS)
TRB
ALM
CSP
ME
MH
CMPC
CMPB
CMPA
The TRA and TRB bits provide timing signals used to check
count data. The count data is 3 bytes. After sent to the host
TRA
TRB
Validity
via the I/O Link, its 2 bytes (CNTS and CNTM bytes) are first
0
0
Correct
written to memory. If the count data is accessed at this
0
1
Incorrect
moment, it does not represent a true value because the
1
0
Incorrect
CNTL remains in the previous state. Both the TRA and TRB
bits become 0 or 1 only after all 4 bytes (3 count data bytes +
1
1
Correct
1 STTS byte) are written to memory.
The counter assumes the following data when it is incremented or
decremented.
Contents of [ CNTS CNTM CNTL
]
0000000 00000000 00000010
0000000 00000000 00000001
0000000 00000000 00000000
1111111 11111111 11111111
to
Increment
0000000 00000000 00000011
0000000 00000000 00000010
0000000 00000000 00000001
0000000 00000000 00000000
1111111 11111111 11111111
Decrement
1111111 11111111 11111110
1111111 11111111 11111101
1111111 11111111 11111100
The square
represents the TRA. (The most significant bit is the TRA.
It is not a sign bit.)
- 130 -
B-61813E/04
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.
- 131 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/04
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.
- 132 -
B-61813E/04
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 is written.
- 133 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/04
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.
- 134 -
B-61813E/04
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).
- 135 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/04
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.
- 136 -
B-61813E/04
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.
- 137 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/04
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
- 138 -
B-61813E/04
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).
- 139 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/04
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.
- 140 -
B-61813E/04
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).
- 141 -
8.HIGH-SPEED COUNTER MODULE CONNECTION
B-61813E/04
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.
- 142 -
B-61813E/04
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).
- 143 -
B-61813E/04
CONNECTION
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).
- 145 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/04
9.2
TEMPERATURE INPUT MODULE SPECIFICATION
Input signal types and
• Types ATI04A
number of input
Three-wire thermoresistance (JPt100Ω)
channels
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
• User program (ladder)
method
Temperature
• Thermoresistance type (ATI04A)
measurement range
-50 to 300.0°C
and precision
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
• 0.3 s per two channels
setting (Note)
• 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
- 146 -
B-61813E/04
CONNECTION
9.TEMPERATURE INPUT MODULE
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 (the PMC for
Series 15 or 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
- 147 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/04
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.
(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.
- 148 -
B-61813E/04
CONNECTION
9.TEMPERATURE INPUT MODULE
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.)
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.
- 149 -
9.TEMPERATURE INPUT MODULE CONNECTION
B-61813E/04
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.
- 150 -
B-61813E/04
CONNECTION
9.TEMPERATURE INPUT MODULE
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".
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.
- 151 -

 

 

 

 

 

 

 

Content      ..     3      4      5      6     ..