PLC System Manual-E 2008
PLC System Manual-E 2008
PLC System Manual-E 2008
2007/05/18 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN
Contents
1. Outline 1
2. System Configuration 2
4.1 Outline.................................................................................................................. 7
4.2 Types of Ladder Program ................................................................................... 7
4.3 Available OMs...................................................................................................... 7
4.4 Signal Descriptions.............................................................................................. 9
4.4.1 Signal descriptions ................................................................................. 9
4.4.1 Signal descriptions ............................................................................... 10
4.4.2 Precautions for ladder programs......................................................... 11
5. Input/Output Information 12
2007/05/18 2 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual
1. Outline
The PLC (Programmable Logic Controller) system integrated in the Tapping Center's NC (Numerical Controller),
can be used for tool control and interlock with peripheral equipment.
This manual describes a general outline of the PLC system.
Refer to the manuals shown below for details on each function.
2) PLC programming
This function is used to edit the PLC ladder program and monitor program execution on the NC screen.
Note: Refer to the PLC Programming Manual for details.
2007/05/18 1 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN
2. System Configuration
2.1 System Diagram
PC
Ethernet
NC
Built-in PLC
Connection cable
2007/05/18 2 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual
2) EXIO PCB 1
This is an I/O PCB with 32 input points and 32 output points.
NPN type or PNP type external output circuit can be selected.
Note: Refer to the machine's Installation Manual for details.
3) EXIO PCB 2
This is an extension I/O PCB with 32 input points and 32 output points.
EXIO PCB 1 must be mounted to mount EXIO PCB 2.
NPN type or PNP type external output circuit can be selected.
Note: Refer to the machine's Installation Manual for details.
2007/05/18 3 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN
1) PLC function
Built-in PLC with PLC programming function
* Purchase order number differs according to the absence or presence of the thermal distortion
compensation system.
2007/05/18 4 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual
OPSEL PCB
EXIO 1 PCB assembly
LOCAL
PCB EXIO 2 PCBassembly
IO PCB
24V power
supply
(prepared by user)
LAN cable
Use cross cable when connecting one to one.
(prepared by user)
Standard commercial PC
Windows 2000 or XP
(prepared by user)
2007/05/18 5 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN
2007/05/18 6 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual
The PLC ladder program to be executed is the only program in the NC (excluding the program being edited).
PLC ladder programs not executed are overwritten. If additional programs are necessary, store them on a
standard commercial PC, etc. (Either the PLC programming function or PLC programming software is
required.)
Note: "OM" stands for Object Memory, a collective term for the memory subject to PLC calculation.
OM includes various memory areas, such as those for external input/output and timers.
2007/05/18 7 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN
2007/05/18 8 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual
NC PLC
X000 ~ X03F
External input signals 64 points for user program
STL
MEMOK X050 ~ X0FF
NC to PLC signals 176 points
M30
Y000 ~ X03F
External output signals 64 points
PRO
EXREF M272 ~ M447
MFIN PLC to NC signals 176 points
IO PCB
EXIO 1 PCB EXIO 2 PCB
(Option) (Additional option)
8 points 8 points
2007/05/18 9 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN
2. NC to PLG signals
Signals sent from NC to PLC
Most signals are identical to user parameters (external output signal).
There are 176 points (X050 ~ X0FF).
A signal list is provided in the Built-in PLC Manual.
4. PLC to NC signals
Signals sent from PLC to NC
Most signals are identical to user parameters (external input signal).
There are 176 points (M272 ~ M447).
* A signal list is provided in the Built-in PLC Manual.
2007/05/18 10 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual
M277
X096
X0A0
M358
X093
Lighting conditions of the
M yellow lamp Brother's option are
Yellow lamp
applied if this ladder
M359 program is used without
changing it.
X094
M360
X095
2007/05/18 11 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN
PLC01.bmp
Fig. 5.1 <Input/output menu> screen
2007/05/18 12 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual
PLC02.bmp
Select [1. Input/output], and the built-in PLC's input/output screen appears.
Notes:
1) You can access to the PLC edit or monitor screen when [2. PLC] is selected if the optional PLC programming
function is available. Refer to the PLC Programming Manual for details.
2) When [2. PLC] is selected if the optional PLC programming function is not equipped, the "No PLC
programming function" error occurs and you cannot access to the next screen.
2007/05/18 13 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN
PLC03.bmp
<Screen contents>
1) The status of external input signals X000 ~ X04F and external output signals Y000 ~ Y03F, AY040 ~ AY04F
is displayed in real time. "0" and "1" indicate that the signal is off and on respectively.
X040 ~ X04F, AY040 ~ AY04F cannot be used as they are for the internal reservation.
2) [Status 1] indicates PLC error code.
3) [Status 2] indicates the PLC status.
Bit 0: PLC turns on and off at one second intervals during operation.
<Key operation>
External output signals can be turned on and off by key operation.
Note: Signals controlled by the PLC ladder program in the built-in PLC are only changed to the set value
temporarily, and then immediately returned to the previous setting.
• Press the [Ç] or [È] keys to select the desired OM.
• Enter the desired value and press [ENT]. The entered value is applied. The "7520 Input data error"
occurs if the cursor is not at the right end.
• The "7520 Input data error" occurs if a value or character other than [0] or [1] is entered in the entry field
and the [ENT] key is pressed.
• The "7520 Input data error" occurs if the [ENT] key is pressed without entering 16 digits in the entry field.
2007/05/18 14 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual
PLC04.bmp
<Screen contents>
AY050 ~ AY0FF cannot be used as they are for the internal reservation.
2007/05/18 15 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN
PLC05.bmp
Fig. 5.2.3 <PLC (Internal relay) screen
<Screen contents>
AM448 ~ AM511 cannot be used as they are for the internal reservation.
<Key operation>
Internal relays can be turned on and off by key operation.
Caution: There are signals that move the machine. Be extremely careful as the machine may move
suddenly.
Note: Signals controlled by the PLC ladder program in the built-in PLC are only changed to the set value
temporarily and then immediately returned to the previous setting.
• Enter the desired value and press [ENT]. The entered value is applied. The "7520 Input data error"
occurs if the cursor is not at the right end.
• The "7520 Input data error" occurs if a value or character other than [0] or [1] is entered in the entry field
and the [ENT] key is pressed.
• The "7520 Input data error" occurs if the [ENT] key is pressed without entering 16 digits in the entry field.
2007/05/18 16 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual
PLC06.bmp
Fig. 5.2.4 <PLC (Timer 1)> screen
<Screen contents>
• The left and right columns show the timer's current value and set value respectively.
• AU96 ~ AU127 cannot be used as they are for the internal reservation.
<Key operation>
The timer's current value can be changed by key operation.
• To change the timer's current value, specify the desired value in the entry field of the instruction area (e.g. 10).
The "7520 Input data error" occurs if the value not within the range is entered.
• The input range is a decimal number from 0 to 32767.
• Enter the desired value and press [ENT]. The entered value is applied. The "7520 Input data error"
occurs if the cursor is not at the right end.
2007/05/18 17 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN
PLC07.bmp
2007/05/18 18 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual
<Screen contents>
• The left and right columns show the timer's current value and set value respectively.
• AV24 ~ AV31 cannot be used as they are for the internal reservation.
<Key operation>
The counter's current value can be changed by key operation.
• To change the counter's current value, specify the desired value in the entry field of the instruction area (e.g.
10). The "7520 Input data error" occurs if the value not within the range is entered.
• The input range is a decimal number from 0 to 32767.
• Enter the desired value and press [ENT]. The entered value is applied. The "7520 Input data error"
occurs if the cursor is not at the right end.
2007/05/18 19 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN
<Screen contents>
• User parameter or machine parameter settings are displayed in D32 to D55, AD56 to AD63 by default.
• AD56 ~ AD63 cannot be used as they are for the internal reservation.
<Key operation>
The data register's current value can be changed by key operation.
• To change the data register's current value, specify the desired value in the entry field of the instruction area
(e.g. 10). The "7520 Input data error" occurs if the value not within the range is entered.
• The input range is a decimal number from 0 to 32767.
• Enter the desired value and press [ENT]. The entered value is applied. The "7520 Input data error"
occurs if the cursor is not at the right end.
2007/05/18 20 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
2007/05/18 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
Contents
1. OUTLINE ................................................................................................................................1
6. SIGNAL ASSIGNMENT.......................................................................................................27
6.1 PLC to NC signals .................................................................................................................................. 27
6.2 NC to PLC signals .................................................................................................................................. 32
2007/05/18 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
1. Outline
This manual describes the following items required to create PLC ladder programs:
1. Instructions
2. Signal assignment
2007/05/16 1 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
2007/05/16 2 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
2.3.1 OM list
The table below shows the available OMs and their range.
Input (X) External input signal --64 points (X000 - 03F)
NC to PLC signal --176 points (X050 - OFF)
Output (Y) External output signal -- 64 points (Y000 - 03F)
Internal Relay (M) User general-purpose signal -- 272 points (M0 - M271)
NC to PLC signal -- 176 points (M272 - M447)
Data Register (D) 56 points (D0 - D55)
The default values for D32 to D39 can be set through user parameters.
Timer (T) 10 ms timer -- 96 points (T0 - T95)
Counter (C) 24 points (C0 - 23)
Label (L) 8 points (L0 - L7)
Note: "L0" is used exclusively for initialization.
"OM" stands for Object Memory, a collective term for the memory subject to PLC calculation.
OM includes various memory areas, such as those for external input/output and timers.
2.3.2 OM functions
1) Input/output (X/Y)
These are used to transfer data to and from an external device.
"Input" is the ON/OFF information given to the input circuit by the external device. This is used in a
program as a contact (normally open, normally closed) or basic and extended instruction data.
"Output" is used to output the calculation result of the program from the output circuit to an external
device.
2007/05/16 3 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
4) Timer (T)
An incremental timer is used. The timer starts measurement when the timer coil turns ON. When the
current value reaches the setting, the timer stops measurement and the contact turns ON.
When the timer coil turns OFF, the current value is cleared to 0 and the contact turns OFF.
The timer's measurement time (time limit) is fixed to 10 ms.
5) Counter (C)
An incremental counter is used. The counter stops counting when the counted value reaches the setting,
and the contact turns ON.
The Counter OM counts the number of positive edges in the ladder program.
When the OUT C instruction is used, the counter coil turns ON and OFF, the current value is updated, and
the contact turns ON and OFF.
The current value is updated at the positive edge of the OUT C instruction (OFF → ON), and is not
updated when the OUT C instruction is OFF, ON → ON, or ON → OFF.
The current value is not cleared even if the OUT C instruction is turned OFF.
Use the RST instruction to clear (reset) the counter and turn the contact OFF.
The counter is cleared and the contact turns OFF when the RST C instruction is executed.
6) Label (L)
The Label OM is used for structured instructions.
Up to 8 points can be used for the program being executed.
<Role of label>
Specifies the call destination (top of sub-routine program) of the sub-routine instruction (CALL, CALLP)
Notes:
• The sub-routine assigned to "L0" is executed when the built-in PLC status changes from STOP to
RUN.
• "L7" indicates END of program.
7) Constant
• Decimal Constant
The Decimal Constant OM specifies the decimal data in a ladder program.
The setting range in decimal notation is as below.
Word data (16 bits): -32768 - 32756
Double word data (32 bits): -2147483648 - 2147483647
• Hexadecimal Constant
The Hexadecimal Constant OM specifies hexadecimal data in a ladder program.
Use H???? (e.g. H1234) to specify the data.
The setting range in hexadecimal notation is as below.
Word data (16 bits): -H0 - HFFFF
Double word data (32 bits): -H0 - HFFFFFFFF
2007/05/16 4 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
8) Access to bit OM
• Multiple-bit access
Access not only the singular bit OM but also consecutive multiple-bit OMs.
• 16/32-bit access
Add "W" or "L" to the end of the bit OM number.
E.g.
M16W ·········· Access 16 bits (M16 ~ M31) collectively.
M64L············ Access 32 bits (M64 ~ M95) collectively.
9) Access to word OM
• 32-bit access
The word OM can be accessed using 32 bits, instead of 16 bits.
Add "L" to the end of the word OM number for 32-bit access.
E.g.)
D123L ·········· Access D123 (last 16 bits) and D124 (top 16 bits) collectively.
D100L ·········· Access D100 (last 16 bits) and D101 (top 16 bits) collectively.
2007/05/16 5 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
3. Instructions
3.1 LD, LDN, AND, ANDN, OR, ORN
(1) Function
Instruction Description No. of steps
LD, LDN Starts calculation. 2
Serial connection instruction
AND, ANDN Performs logical AND operation in conjunction with previous 2
calculation results.
Parallel connection instruction
OR, ORN Performs logical OR operation in conjunction with previous 2
calculation results.
LD, AND, and OR are valid when the contact is ON. LDN, ANDN, and ORN are valid when the contact
is OFF.
LD
LDN
AND
ANDN
OR
ORN
2007/05/16 6 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
(1) Function
Instruction Description No. of steps
LDP, LDNP Starts calculation. 2
Serial connection instruction
ANDP, ANDNP Performs logical AND operation in conjunction with previous 2
calculation results.
Parallel connection instruction
ORP, ORNP Performs logical OR operation in conjunction with previous 2
calculation results.
LDP, ANDP, and ORP are only valid when the contact has changed from OFF to ON. LDNP, ANDNP,
and ORNP are only valid when the contact has changed from ON to OFF.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
○ ○ ○ ○ ○
LDNP ↓
N
ANDP ↑
ANDNP ↓
ORP
↑
ORNP
↓
Example program
Program to execute MOV instruction when input X0 is starting.
[Circuit mode] X0
0 MOV X0 D0
6 END
2007/05/16 7 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
(1) Function
Instruction Description No. of steps
Performs block calculations first, and then performs logical AND
AND-BLK 1
operation in conjunction with previous calculation results.
Performs block calculations first, and then performs logical OR
OR-BLK 1
operation in conjunction with previous calculation results.
Note:
• These instructions are automatically inserted as a result of sequence pattern analysis.
Entry is not required.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
AND-BLK
OR-BLK
2007/05/16 8 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
(1) Function
Instruction Description No. of steps
M-PUSH Saves the calculation result immediately before this instruction. 1
Reads the calculation result saved by the M-PUSH instruction.
MJ-READ 1
This instruction can be used as many times as you want.
Reads and clears the calculation result saved by M-PUSH
M-POP 1
instruction.
Note:
• These instructions are automatically inserted as a result of sequence pattern analysis.
Entry is not required.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
M-PUSH
M0 M1
M10
M2
M-READ M11
M3
M12
M-POP
2007/05/16 9 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
Time chart
The time chart for the rung diagram on the previous page is shown below.
ON
M0 OFF
ON OFF ON
M1 OFF
ON OFF ON OFF
M10 OFF
ON OFF ON
M2 OFF
ON ON OFF
OFF
M11 OFF
OFF ON
M3 ON
OFF ON OFF
M12 OFF
2007/05/16 10 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
3.5 OUT
(1) Function
Instruction Description No. of steps
Outputs the calculation results until the OUT instruction to the 2
OUT (Y, M)
specified OM.
OUT (T) Activates the timer when the calculation result is ON. 3
OUT (C) Activates the counter when the calculation result is ON. 3
Notes:
• When specifying "T" (timer) or "C" (counter) for the OUT instruction, the set value must also be
entered.
• The set value can be entered as a decimal number or when "W" is specified.
• Use the RST instruction to reset the counter.
• Enter [T] in increments of 10 ms. (Displayed in increments of 1 ms.)
• Negative values cannot be set for the timer and counter.
• The timer function is not used when "0" is set for the timer.
• When "0" is set for the counter, operation is the same as when "1" is set.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
○ ○ ○ ○
OUT(Y, M)
100 msec
OUT(T)
T0 OUT T0 10
2007/05/16 11 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
3.6 SET
(1) Function
Instruction Description No. of steps
SET Turns the value of the specified OM ON, and retains it. 2
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
○ ○ ○ ○
SET SET M0
2007/05/16 12 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
A program example using SET, OUT, and RST instructions, and ON/OFF timing is shown below.
Program example
M0
SET M1 SET instruction
M2 OUT instruction
M3
RST M1 RST instruction
Timing chart
ON
M3 OFF
ON
M0 OFF
ON
M1 OFF
ON
Turns OFF when contact M3 turns OFF
M2 OFF
2007/05/16 13 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
3.7 RST
(1) Function
Instruction Description No. of steps
Clears the value of the specified OM.
• Turns the coil and contact OFF for bit OMs.
RST • Clears the current value to zero (0) for word OMs. 2
• Clears the current value to zero and turns the coil and contact
OFF for Timer OM and Counter OM.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
○ ○ ○ ○ ○ ○
RST RST M0
2007/05/16 14 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
(1) Function
Instruction Description No. of steps
Turns the specified OM ON for one scan only when the
PLS 2
calculation result has changed from OFF to ON.
Turns the specified OM ON for one scan only when the
PLSN 2
calculation result has changed from ON to OFF.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
○ ○ ○ ○ ○ ○
M0
PLS
PLS M10
M1
PLSN
PLSN M11
Time chart
PLS
ON ON
M0 OFF
ON ON
M10 OFF
2007/05/16 15 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
3.9 INC(P)
(1) Function
Instruction Description No. of steps
Increments the OM value by one when the calculation result is
INC 2
ON.
Increments the OM value by one when the calculation result has
INCP 2
changed from OFF to ON.
Notes:
• Specify 32-bit access when handling 32-bit values.
• When incremented while the 32-bit OM value is 2147483647, - 2147483648 is stored.
• When multiple-bit access is specified for the bit OM, the value varies within the specified bit range.
(E.g. INC M0:8 --- When incremented while the OM value is 255, "0" is stored.)
INC
(2) When INC or INCP is executed while the device value specified by D0 is 32767, -32768 is stored to the
device specified by D0.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
○ ○ ○ ○ ○ ○
INC
INC D0
INCP
INCP D0
2007/05/16 16 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
3.10 DEC(P)
(1) Function
Instruction Description No. of steps
Decrements the OM value by one when the calculation result is
DEC 2
ON.
Decrements the OM value by one when the calculation result has
DECP 2
changed from OFF to ON.
Notes:
• Specify 32-bit access when handling 32-bit values.
• When decremented while the 32-bit OM value is -2147483647, 2147483648 is stored.
• When multiple-bit access is specified for the bit OM, the value varies within the specified bit range.
(E.g. DEC M0:8 --- When incremented while the OM value is 0, "255" is stored.)
DEC
(2) When DEC or DECP is executed while the device value specified by D0 is “0”, -1 is stored to the device
specified by D0.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
○ ○ ○ ○ ○ ○
DEC DEC D0
DECP DECP D0
2007/05/16 17 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
3.11 MOV(P)
(1) Function
Instruction Description No. of steps
MOV Transfers the S value to D when the calculation result is ON. 3
Transfers the OMS value to OMD when the calculation result has
MOVP 3
changed from OFF to ON.
Notes:
• Specify 32-bit access when handling 32-bit values.
MOV
(1) Transfers the 16-bit data for the device specified by S to the device specified by D.
b15 b0
Before transfer S 1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0
Transfer
b15 b0
After transfer D 1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0
Format
MOV S D
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
S ○ ○ ○ ○ ○ ○ ○ ○ ○
D ○ ○ ○ ○ ○ ○
MOVP MOVP C0 D1
2007/05/16 18 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
3.12 CALL(P)
(1) Function
Instruction Description No. of steps
Executes the sub-routine of the specified label when the
CALL 2
calculation result of the previous instruction is ON.
Executes the sub-routine of the specified label only when the
CALLP calculation result of the previous instruction has changed from 2
OFF to ON.
Notes:
• The RET instruction executes the program from the step after the CALL instruction.
• The CALL instruction can be called from the sub-routine (nesting) up to 8 times.
• Create a sub-routine after the ENDS instruction.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
○
CALL CALL L1
CALLP CALLP L1
2007/05/16 19 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
Calculation error
A calculation error occurs in the following cases:
• The END (ENDS) instruction is executed between the CALL(P) instruction and RET instruction.
• The RET instruction is executed before the CALL(P) instruction.
• The CALL(P) instruction is used to call L7.
• Nesting is acceptable up to 9 levels.
Program example
E.g. To call sub-routines at step 7 and after
M0
0 CALL L1
INC D0
6
ENDS
L1 M1
7 SET Y0
Y1
14 RET
2007/05/16 20 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
3.13 RET
(1) Function
Instruction Description No. of steps
RET Returns from the sub-routine to the main routine. 1
Notes:
• Conditions cannot be added to the RET instruction.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
RET RET
Calculation error
A calculation error occurs in the following cases:
• The END (ENDS) instruction is executed between the CALL(P) instruction and RET instruction.
• The RET instruction is executed before the CALL(P) instruction.
2007/05/16 21 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
3.14 ENDS
(1) Function
Instruction Description No. of steps
Ends processing of the main routine.
ENDS Use this instruction when writing a sub-routine program or 1
branching the process.
Note:
• Conditions cannot be added to the END instruction.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
ENDS ENDS
Calculation error
A calculation error occurs in the following case:
• The END (ENDS) instruction is executed between the CALL(P) instruction and RET instruction.
M0
0 CALL L1
INC D0
6
ENDS …ENDS instruction
L1 M1
7 SET Y0
Y1 Sub-routine program
14
RET
2007/05/16 22 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
3.15 END
(1) Function
Instruction Description No. of steps
END Indicates the end of the program. 1
Note:
• This instruction is automatically inserted. Entry is not required.
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
ENDS ENDS
Calculation error
A calculation error occurs in the following case:
• The END (ENDS) instruction is executed between the CALL(P) instruction and RET instruction.
2007/05/16 23 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
(1) Function
Instruction Description No. of steps
= Compares the OM values.
> • The calculation result becomes TRUE when the conditions are
met.
>=
• Both 16-bit and 32-bit OMS can be specified for comparison. 3
<
<= • When the type of OMs to be compared differs, the smaller type
is automatically converted to the larger type.
<> (16 bit < 32 bit)
Format
S1 = S2
(2) Available OM
Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
S1 ○ ○ ○ ○ ○ ○ ○ ○ ○
S2 ○ ○ ○ ○ ○ ○ ○ ○ ○
= D0 = D1
(Samples for other instructions are omitted as the usage is the same.)
Instruction
Continuity
symbols
= D0 = D1
<> D0 ≠ D1
> D0 > D1
<= D0 ≤ D1
< D0 < D1
>= D0 ≥ D1
2007/05/16 24 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
Program execution
I/O refresh
Timer refresh
Communication processing
Scan time
Each of I/O refresh, timer refresh, and communication processing is also called "END processing", since they are
executed at the END of the program.
Since timer refresh is performed after the program is ended as shown above, the timer increases the scan time
each time. Accordingly, the timer accuracy depends on the scan time.
M0
T0 100 msec
100 msc
M0
T0 coil
T0 contact
T0 current value 0 1……….10 0 1…5.0 1………80
2007/05/16 25 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
5. Parameter
There is explanation of the PLC in the user parameter.
Check the setting to use it.
1087 PLC data default 32 000000000000 PLC data registration default to set with binary digits.
1088 PLC data default 33 0000~1111111
111111111
1089 PLC data default 34 0~65535 PLC data registration default to set with decimal digits.
1090 PLC data default 35
1091 PLC data default 36
1092 PLC data default 37
1093 PLC data default 38
1094 PLC data default 39
2007/05/16 26 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
6. Signal Assignment
For more details about signal, refer to “Chapter 12 12.3 M-function” in NC programming manual.
2007/05/16 27 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
User
program Signal name Symbol Conv. / NC Descriptions
2007/05/16 28 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
User
program Signal name Symbol Conv. / NC Descriptions
2007/05/16 29 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
User
program Signal name Symbol Conv. / NC Descriptions
2007/05/16 30 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
User
program Signal name Symbol Conv. / NC Descriptions
Should I change the above
to Prevent indexing
M408 For future use
M409 For future use
M410 Prevent key operation KYLOCK1 Common Stops execution of the function,
next menu, next function, screen,
alphanumerical, symbol, cursor,
page, ENT, deletion, shift, mode,
and help keys.
M411 Prevent key operation KYLOCK2 Common Stops execution of the operation
function keys (single, dryrun) and
the [PALLET] key.
M412 Prevent key operation KYLOCK3 Common Stops execution of the [CLT.P] and
[CHP.F] keys.
M413 Prevent key operation KYLOCK4 Common Stops execution of the [LIGHT]
key.
M414 Prevent key operation KYLOCK5 Common Stops execution of the manual
pulse generator operation.
M415 Prevent key operation KYLOCK6 Common Stops execution of the [RST] key.
M416 External error EXER26 Common Same as external signal
M417 External error EXER27 Common Same as external signal
M418 External error EXER28 Common Same as external signal
M419 External error EXER29 Common Same as external signal
M420 External error EXER30 Common Same as external signal
M421 External error EXER31 Common Same as external signal
M422 External error EXER32 Common Same as external signal
M423 External error EXER33 Common Same as external signal
M424 External error EXER34 Common Same as external signal
M425 External error EXER35 Common Same as external signal
M426 External error EXER36 Common Same as external signal
M427 External error EXER37 Common Same as external signal
M428 External error EXER38 Common Same as external signal
M429 External error EXER39 Common Same as external signal
M430 External error EXER40 Common Same as external signal
M431 External error EXER41 Common Same as external signal
M432 For future use
~
M447 For future use
(Note)
If the signal that turns on each time of power-on is assigned to M280 (external reset), recovery by operation
panel becomes unavailable.
If this occurs, perform one of the followings, then correct a ladder program.
1. Use the PLC programming software.
Select [Online]-[Change RUN/STOP mode] and change the operation mode for built-in PLC.
2. Disconnect the wiring to turn off the signal.
3. Press the Emergency switch, the Feed hold switch, the Start switch and the [RELSE] key on the operation
panel simultaneously. An alarm “Resetting from PLC is disabled” occurs and resetting from built-in PLC
becomes invalid.
2007/05/16 31 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
2007/05/16 32 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
2007/05/16 33 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
2007/05/16 34 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual
2007/05/16 35 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN
2007/05/16 36 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
2007/05/18 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
Contents
1. Outline 1
3. Function 4
3.1 Outline.................................................................................................................. 4
3.2 PLC Edit Screen Configuration........................................................................... 5
3.3 Key Assignment................................................................................................... 7
3.4 Mode Transition ................................................................................................... 9
4 Search 10
5 Edit 12
6 Display 18
2007/05/18 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
7.1 Outline................................................................................................................ 19
7.2 Changing Between Show/Hide Comments..................................................... 19
7.3 Editing Comments............................................................................................. 20
8 Monitor 21
2007/05/18 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
2007/05/18 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
1. Outline
This manual describes the PLC programming function.
The PLC programming function allows you to perform the following on the NC screen:
1. Create or edit PLC ladder programs
2. Monitor PLC ladder program execution
You can check the PLC ladder program or correct it on the NC screen while controlling tools or interlock with
peripheral equipment, without using external programming tools. In addition to this, this function helps you
investigate any faulty tools or peripheral equipment.
2007/03/12 1 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
Press the [I/O] key on the operation panel. The <Input/output menu> screen appears.
Input/output menu
Menu
1. Input/output
2. Servo controller
3. External I/O signal
4. Soft switch
5. Machine diagnosis
6. PLC
2007/03/12 2 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
PLC
Menu
1. Input/output
2. PLC
Select [2. PLC], and “Reading.” is displayed on the screen and the PC starts reading the ladder program inside
the built-in PLC. When the PC finishes reading, “Completed.” is displayed and then the ladder program
appears.
Note:
• It might take a time before the ladder program appears after selecting [2. PLC] on the screen.
Keys are not enabled when the PC is reading the program.
Processing time becomes longer in proportion to the step number and the comment volume.
• If [2. PLC] is selected when the optional PLC programming function is not equipped, the "No PLC
programming function" error occurs and you cannot access to the next screen.
2007/03/12 3 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
3. Function
3.1 Outline
The PLC programming function allows you to edit or monitor the ladder program in the built-in PLC.
There are three modes: view, edit, and monitor. View mode is selected when the <PLC> screen is first accessed.
Use the corresponding function key to change the mode.
The PLC ladder program is automatically read and displayed when the <PLC> screen is accessed. The program
can be changed in edit mode. When changed, the program must be written to the built-in PLC using the [Write
ladder] function (explained later).
The chart below shows the PLC edit and monitor operation flow.
Ladder program is
automatically read.
End
2007/03/12 4 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
Title area
PLC view mode
X000
Y000
M0
X001
INC D0
Main area
Teaching area
1234/7680
2007/03/12 5 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
2007/03/12 6 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
③ Menu : > <
• Operation key
Key I/O Reset Set Insert Delete Cancel
Initialize
Normal Enter Clear
screen
Shift
③ : > <
• Operation key
Key I/O Reset Set Insert Delete Cancel
Initialize Insert /
Normal Enter Delete symbol Esc
screen overwrite
Shift Insert row Delete row
2007/03/12 7 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
Note:
• Pressing the [Help] key displays the function key description. A [help] icon is displayed at the lower right of
the screen when a help message is available.
2007/03/12 8 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
Fig. 3.4 shows the screen transition of the PLC programming function.
Conversion check
Select menu F0
View mode
F2
F0
F1 F0
F1
Edit mode Monitor mode
When you attempt to change from edit mode to view mode although there are rungs that have not been converted,
the message "There are rungs which have not been converted. Do you want to convert them?" is displayed.
When [F0] is pressed, the rungs are converted, and then edit mode changes to view mode.
When [F1] is pressed, conversion is canceled. The mode is not changed. The message "Terminated."
is displayed.
When a conversion error occurs while changing the mode, a conversion error message is displayed according to
the error, and the mode is not changed.
When an error that cannot be monitored in monitor mode occurs, view mode is automatically entered.
When you attempt to change from view mode to the PLC menu while the ladder program has not been written to
the built-in PLC after changes were made to it, the message "Remove the rung being edited?" is displayed.
When [F0] is pressed, the data is cleared and the screen returns to the PLC menu.
When [F1] is pressed, operation is canceled, and the message "Terminated." is displayed.
2007/03/12 9 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
4 Search
Searching in PLC ladder programs is possible in view mode or monitor mode.
There are three search functions:
• Search by step
• Search by OM
• Search by instruction
When [F4] (Search) is pressed, the edit box is displayed in the teaching area (Fig. 4.1).
Enter the step number to be searched for in the edit box, and press [ENT]. The cursor moves to the top of the rung
that contains the specified step.
E.g. Assuming that the top of the rung is at step 0, step 10, or step 20, the cursor moves to the block at step 0
when 0 to 9 is specified, the block at step 10 when 10 to 19 is specified, or the block at step 20 when 20 or
higher is specified.
When you attempt to search for the step that exceeds the END instruction, the message "Corresponding
program is missing." is displayed.
PLC view mode
X000
Y000
M0
X001
INC D0
Search
Notes:
• The search function operates the same as this in monitor mode.
• When the searched OM step heading to the rung is not within the screen, the screen automatically scrolls and
the cursor moves to the appropriate rung.
2007/03/12 10 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
4.2 Search By OM
To enable "search by OM," press [F4] (search), enter the OM to be searched for, and then press [ENT].
E.g. X1 [ENT]
Search by OM is performed from the top of the ladder program. When the specified OM is found, the cursor
moves to it.
If the specified OM is not found, the message "Corresponding program is missing." is displayed.
Notes:
• After executing search by OM, pressing [F5] (Search forward) and [F6] (Search backward) searches for the
next OM and the previous OM respectively.
• The search function operates the same as this in monitor mode.
• Entering the OM by specifying multiple-bit access causes an error, and the message "Invalid setting." is
displayed.
• If you enter an OM type, one space, and then a step number, "search by step" is applied (search is performed
for rungs after the specified step number).
To enable "search by instruction," press [F4] (search), enter the instruction to be searched for, and then press
[ENT].
Search by instruction is performed from the top of the ladder program. When the specified instruction is found,
the cursor moves to it.
If the specified instruction is not found, the message "Corresponding program is missing." is displayed.
There are two methods of entering the instruction:
1) Specify the instruction (mnemonic) only.
E.g. When "PLS" is specified, all PLS instructions are searched for.
2) Specify the instruction (mnemonic) and OM.
E.g. When "PLS M0" is specified, PLS instructions with M0 specified are searched for.
Notes:
• After executing search by instruction, pressing [F5] (Search forward) and [F6] (Search backward) searches
for the next instruction and the previous instruction respectively.
• The search function operates the same as this in monitor mode.
• Entering the OM by specifying multiple-bit access causes an error, and the message "Invalid setting." is
displayed.
• If you enter an instruction, one space, and then a step number, "search by step" is applied (search is
performed for rungs after the specified step number).
2007/03/12 11 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
5 Edit
5.1 Symbol Input
To enter ladder symbols, press the desired function key, enter the instruction (OM), and then press [ENT].
The table below shows the function keys and their meanings.
Move the cursor to the point the instruction is to be entered, and press the desired function key. The edit box is
displayed in the teaching area (Fig. 5.1).
M0
X001
INC D0
--│ │--
Delete
View mode --| |-- +-| |-+ --( )-- -[ ]- Undo Convert
vertical line
2007/03/12 12 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
Enter the instruction (OM) in the edit box, and press [ENT]. The symbol and instruction (OM) specified by the
cursor change.
To enter a line (horizontal/vertical), move the cursor to the start position. Hold down [Shift] and move the
cursor in the desired direction using the cursor keys.
Notes:
• When "coil" or "data instruction" is entered, the horizontal line is added automatically.
• When an invalid OM or instruction is entered, the message "Invalid format of instruction." is displayed.
• The background of the ladder block where changes are made turns gray.
• Bit OM with multiple-bit access specified or word OM with 32-bit specified can be used for the data
instruction or compare instruction.
It is possible to access not only the singular bit memory but also consecutive multiple-bit memory.
(1) 16/32 bit access
Add "W" or "L" to the end of the bit OM number.
E.g.
M16W ·········· Access 16 bits (M16 ~ M31) collectively.
M64L············ Access 32 bits (M64 ~ M95) collectively.
2007/03/12 13 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
The memory range of the word OM can be handled with 32 bits, instead of 16 bits.
Add "L" to the end of the word OM number.
E.g.)
D16L ············ Access 32 bits of D16 and D17 collectively.
Note:
• When the word OM is not within the range specified by 32-bit access, an input error occurs.
• For 32-bit access, there is no restriction on the start number as long as the word OM number is within the
range.
Pressing the [Insert] function key in edit mode changes the mode between [Insert] and [Overwrite].
When a new symbol is entered in insert mode, the current symbol is shifted to the right by one column.
Insert mode
X000 M0
M0
M1
M1
Overwrite mode
M0 X000
M1 M1
2007/03/12 14 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
Notes:
• When [F7] (Paste a rung) is pressed, the copied row is inserted immediately before the row specified by the
cursor in insert mode, and replaced with the row specified by the cursor in overwrite mode.
• An error occurs when the row is pasted on the END row in overwrite mode, and the message "Not possible
to edit END instruction." is displayed.
• An error occurs when the row is deleted on the END row, and the message "Not possible to edit END
instruction." is displayed.
2007/03/12 15 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
To delete a symbol, move the cursor to the symbol to be deleted, and press [DEL] on the operation panel.
To delete a vertical line, move the cursor to the top of the vertical line to be deleted, and press [F5] (Delete
vertical line).
The display after the symbol is deleted differs depending on the mode. The ruling remains in insert mode. The
ruling is also deleted in overwrite mode. (See the figure below.)
END row and END instruction cannot be deleted. If you attempt to delete these, an error occurs and the
message "Not possible to edit END instruction." is displayed.
Insertion mode
M0
M1 M1
Overwrite mode
M0
M1 M1
5.7 Undo
To undo an operation, press [F6] (Undo). Operations shown below can be undone.
• Symbol entry
• Symbol deletion
• Row insertion/deletion
• Comment editing
Undo can be performed up to five times.
Note:
• When “conversion” is performed, conditions before “conversion” cannot be restored even if
performing undo.
2007/03/12 16 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
5.8 Conversion
Press [F7] (Convert), and the rungs that have not been converted are converted. Be sure to perform this before
writing the ladder program to the built-in PLC. The message “Converting.” is displayed in the teaching area
during conversion. When the conversion is completed, the message “Completed.” is displayed.
When conversion is completed, the background changes from gray to white.
The following are checked through conversion:
• Disconnection
• Short circuit
• Consecutive LD instructions (allowable for up to 8)
• Comparison with program capacity
Note:
• The background of the ladder rung where a conversion error is current turns yellow.
2007/03/12 17 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
6 Display
6.1 Writing Ladder Program
To write the edited ladder program to the built-in PLC, press [F3] (Write ladder) in the view mode.
The message "Stop program? Program will resume automatically after writing is completed." is displayed.
When [F0] (Yes) is pressed, the ladder program is written and the message “Writing.” is displayed.
After writing is completed, the message "Completed." is displayed.
When [F1] (No) is pressed, operation is canceled, and the message "Terminated." is displayed.
Note:
• Do not write ladder program when the machine is in motion.
• Set the [DATA PROTECTION] switch on the machine's operation panel to [OFF].
• Set the “ User parameter 1 (switch 1)” “PLC ladder program protect” to [OFF].
When set to [ON], the message "Data is write-protected." is displayed and the program cannot be written.
To clear the current program and edit a program from the beginning, press [F3] (Read ladder) in the view mode.
If any changes have been made to the current program, the message "Program being edited will be removed.
OK?" is displayed.
When [F0] (Yes) is pressed, the program is cleared.
After the ladder program has been read, the message "Completed." is displayed.
When [F1] (No) is pressed, operation is canceled, and the message "Terminated." is displayed.
Notes:
• It might take a time before the PC starts to read the ladder program.
• Keys are not enabled when reading the ladder program.
• Processing time becomes longer in proportion to the step number and the comment volume.
When [F1] (New) is pressed in the view mode, the message "Program being edited will be removed. OK?" is
displayed.
When [F0] (Yes) is pressed, the program is cleared.
When [F1] (No) is pressed, operation is canceled, and the message "Terminated." is displayed.
Note:
• When [F1] (New) is pressed, the END instruction is displayed on the screen.
2007/03/12 18 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
Notes:
• Coil remark function is not available.
• Two kinds of comments (OM comment or label comment) can be attached to a label.
Pressing [F7] (Show comments) changes the mode between Show comments and Hide comments. Fig. 3. 10. 2
shows the screen image when "Show comments" is selected.
PLC view mode
This is a Inline comment.
[This is a Label comment.]
L0 X000
Y000
xxxxxxxx xxxxxxxx xxxxxxxx
xxxxxxxx xxxxxxxx xxxxxxxx
xxxxxxxx
xxxxxxxx
M0
xxxxxxxx
xxxxxxxx
Move the cursor to the OM with the OM comment you want to edit, and press [F5] (Edit Comment) in the edit
mode.
The OM comment edit box is displayed in the teaching area. (Fig. 3.10.3)
X000
Y000
M0
X001
INC D0
Comment xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Enter the comment and press [ENT]. The edited comment appears on the ladder.
Notes:
• Chinese characters cannot be entered in this system. Only alphanumerical characters are acceptable.
OM comment : Up to 16 alphanumerical characters
• Inline comments and Label comments cannot be edited.
• Pressing the [Ç] key stops editing.
• An error occurs when the entered comments exceed the comment capacity. The message "Going out of
the maximum program size." is displayed, and the entered comments are discarded. (Assuming that only
OM comments are entered, up to 936 comments can be entered.) If you want to enter more comments,
delete one or more comments to make space.
2007/03/12 20 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
8 Monitor
8.1 Monitoring Ladder Program
The OM status is read periodically from the built-in PLC in monitor mode and the information is displayed on the
screen.
This section describes the meanings of the indications.
(1) Contact
The inside of the symbol is filled with blue, indicating that it is conductive.
X000
X000 is off
X000
X000 is on
(2) Coil
The inside of the symbol is filled with blue, indicating that it is conductive.
Y000 Y000 is on
For a timer or counter, the current value is displayed below the symbol.
T0
100
INC D0
100
(4) Status
The scan time is displayed in the teaching area.
When an error occurs, the error code or error step is displayed in the message area.
2007/03/12 21 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
Move the cursor to the OM to be changed in monitor mode, and press [F1] (SET/RESET).
The OM type and the edit box are displayed in the teaching area.
Press [1] and [ENT] to execute setting. Press [0] and [ENT] to execute resetting.
X000
Y000
M0
X001
INC D0
M0 1
Change the
SET/RESET Execute Stop
current value
Operations for word OMs and OMs with multiple-bit access specified are invalid.
Notes:
• You can also display the edit box in the teaching area by moving the cursor to the bit OM and pressing
[ENT].
• When the built-in PLC is running, the calculation results of the program have a priority.
Be sure to stop the built-in PLC when setting/ resetting for the output command (Y,M) or the input command
(X).
• An error message is displayed when setting and resetting are performed for a timer, counter, word OM, or
OM with multiple-bit access specified.
Attention
Workpiece or jig may move as output turns on by setting/ resetting.
Be careful not to be caught or hit by such objects when setting/ resetting.
2007/03/12 22 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual
Move the cursor to the OM to be changed in monitor mode and press [F2] (Change the current value).
The OM type and the edit box are displayed in the teaching area.
Enter the desired value in the edit box and press [ENT]. The current value is changed.
X000
Y000
M0
X001
INC D0
0
Change the
SET/RESET Execute Stop
current value
Notes:
• You can also display the edit box in the teaching area by moving the cursor to the word OM and pressing
[ENT], same as by pressing [F2].
• The current value of the timer and counter can be changed, but the set value cannot be changed.
• The message "Invalid OM. Select Word OM." is displayed in the teaching area when you attempt to
change the current value for a bit OM or OM with multiple-bit access specified.
2007/03/12 23 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN
Note:
• A ladder program cannot be written to the built-in PLC while it is running.
2007/03/12 24 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Software
2007/05/18 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
This End-User License Agreement ("EULA") is a legal agreement between you and Brother Industries, Ltd.
("Brother"), which governs your use of the Brother software that will be installed if you press the "Yes" button on
this Dialog Box ("SOFTWARE"). By pressing "Yes", you agree to be legally bound by the terms of this EULA.
If you do not agree to the terms of this EULA, you obtain no license to the SOFTWARE. In such case, you may
not use the SOFTWARE.
1. Ownership.
All right, title and interest in and to the SOFTWARE (including all copyright and other intellectual property rights
therein) and the materials associated therewith ("Documentation") are owned by Brother or its suppliers. The
SOFTWARE is licensed but not sold.
2. Grant of License.
2.1 Brother grants you a non-exclusive license to install and use one copy of the SOFTWARE on one computer.
2.2 Brother further grants you a license to make one copy only of the SOFTWARE solely for archival and
back-up purposes. Any such copy shall also reproduce all copyright and intellectual property right notices from
the original.
2.3 Other than as expressly permitted by Sections 2.1 and 2.2 above, or where you have a right at law to do so
(and such right cannot lawfully be excluded) you may not (i) make any copies of the SOFTWARE or
Documentation (ii) modify the SOFTWARE or Documentation (iii) reverse engineer, disassemble, decompile or
use the SOFTWARE or Documentation to create any derivative work, (iv) use the SOFTWARE on more than
one computer concurrently, or (v) rent sub-license, transfer (other than in accordance with Section 3) or lease the
SOFTWARE.
3. Transfer.
You may permanently transfer the SOFTWARE to any person, provided that when you transfer the SOFTWARE,
you must also transfer and deliver to such person any upgrades and all Documentation provided to you by or on
behalf of Brother and, provided also that such person confirms to Brother its acceptance of this EULA with
respect to such Software and Documentation. Notwithstanding the foregoing, you must not deliver to such
person any copy of the SOFTWARE made by you in accordance with Section 2.2. Upon transfer, you must
erase all copies of the SOFTWARE made by you and/or which are contained on any computer within your
possession or under your control. The warranty is not transferable.
2007/05/18 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
4. Limited Warranty.
4.1 Brother warrants to the first end-user that licenses the SOFTWARE that the SOFTWARE will perform
substantially in accordance with its specification as defined by Brother and the storage media upon which such
SOFTWARE is stored ("Media") will be free from defects in materials and workmanship for a period of 90 days
from the date you first receive the SOFTWARE when subjected to normal conditions ("Warranty"). This
Warranty gives you certain rights and you may also have other rights that vary from state to state. Should you
believe that you are eligible to make a claim under this Warranty, and should Brother find that you are eligible to
make a claim under this Warranty, Brother will replace the Media with Media bearing SOFTWARE that complies
with the Warranty as soon as reasonably practicable after Brother has received from you notice of
non-compliance.
4.2 The replacement of the Media bearing SOFTWARE by Brother pursuant to Section 4.1 is Brother's entire
liability and your sole and exclusive remedy with respect to this Warranty and the failure of the SOFTWARE or
Media.
4.3 You will be ineligible to make a claim under this Warranty where any defect in or failure of the SOFTWARE
or Media is caused by (i) an accident, loss or damage to the Media or the system into which the SOFTWARE is
stored, (ii) improper or inadequate maintenance or calibration, (iii) connection or merger with any software,
apparatus or other material not supplied by Brother, or (iv) modification or alteration to the SOFTWARE or
Media by you or anyone else.
4.4 No warranties or conditions either express or implied statutory or otherwise as to condition quality or
performance including but not limited to warranties as to satisfactory quality or fitness for purpose of the
SOFTWARE and/or Media (or with respect to non-infringement of any rights of any third party) are given or
assumed by Brother other than as set out in Section 4.1 and all such warranties and conditions are hereby
expressly excluded except to the extent that such exclusion is prohibited by law. Without limitation to the
generality of the foregoing, Brother does not warrant that the SOFTWARE will be error free or that it will operate
without interruption or will meet your requirements. The Warranty provided as written is the only warranty
given by Brother for this SOFTWARE and Media.
5.1 Brother shall have no liability in contract, tort (including negligence or breach of statutory duty) or otherwise
for any interruption of use, loss of data, or for any indirect, incidental, punitive or consequential loss or damage,
or for any loss of profit, revenue, data, goodwill or anticipated savings that arises under, out of, or in
contemplation of this EULA or otherwise arises due to any error, inaccuracy or defect in the SOFTWARE and/or
Media even if Brother has been advised of the possibility of such loss or damage.
5.2 Brother's liability for all loss or damage (except for loss and damage validly excluded by Section 5.1) shall be
limited to the price that you paid to license this SOFTWARE.
5.3 For the avoidance of doubt nothing herein contained shall be deemed to exclude or restrict Brother's liability
for death or personal injury arising due to Brother's negligence. Because some states do not allow the exclusion
or limitation of certain damages, the above limitation(s) may not (in part) apply to you.
2007/05/18 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
7. Export Regulations.
You may not export or re-export the SOFTWARE or any copy or adaptation thereof in violation of any applicable
laws or regulations.
8. Governing Laws.
This EULA is governed by the laws of Japan and Japanese Courts shall have exclusive jurisdiction with respect to
this EULA except with regard to enforcement in which case the jurisdiction of the Japanese Courts shall be
non-exclusive.
9. Illegality.
If any of the provisions of this EULA shall be declared illegal or unenforceable in whole or in part, such
provisions shall be severable and independent from the other provisions of this EULA, and the validity of the
other provisions and of the entire EULA shall not be affected.
2007/05/18 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
Contents
1 Outline 1
2 Recommended PC and OS 1
3 Installation Procedure 1
4 System Configuration 2
5 Mode 3
6 Functions 8
6.1 Project................................................................................................................................8
6.1.1 New (shortcut: Ctrl + N)......................................................................................8
6.1.2 Open (shortcut: Ctrl + O) ....................................................................................8
6.1.3 Close.....................................................................................................................8
6.1.4 Save (shortcut: Ctrl + S)......................................................................................9
6.1.5 Save as..................................................................................................................9
6.1.6 Program check .................................................................................................. 10
6.1.7 Import................................................................................................................. 12
6.1.8 Export................................................................................................................. 12
6.1.9 Printer setup ...................................................................................................... 13
6.1.10 Print preview..................................................................................................... 13
6.1.11 Print................................................................................................................... 14
6.1.12 Exit.................................................................................................................... 15
6.2 Edit.................................................................................................................................. 16
6.2.1 Undo (shortcut: Ctrl +Z)................................................................................... 16
6.2.2 Cut (shortcut: Ctrl + X) .................................................................................... 16
2007/05/18 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
2007/05/18 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
7 View 75
8.1 Outline............................................................................................................................ 77
8.1.1 Overwrite/insert ................................................................................................ 78
8.1.2 Changing between overwrite and insert .......................................................... 84
8.1.3 Deletion............................................................................................................. 85
8.2 Edit.................................................................................................................................. 86
8.2.1 Undo.................................................................................................................. 86
8.2.2 Cut / Copy/ Paste .............................................................................................. 86
8.2.3 Insert a line / Delete a line ................................................................................ 88
8.3 Other Functions Available in Edit Mode ...................................................................... 89
8.3.1 Increment / Decrement ..................................................................................... 89
8.3.2 Delete rung block.............................................................................................. 90
8.3.3 Referencing a rung............................................................................................ 90
8.3.4 Find ↑ ................................................................................................................ 91
8.3.5 Find ↓ ................................................................................................................ 91
8.4 Errors that may Occur during Editing........................................................................... 93
9 Communication with NC 97
9.1 NC Setting...................................................................................................................... 97
9.2 PC Setting....................................................................................................................... 98
9.2.1 LAN setting....................................................................................................... 98
9.2.2 Setting PLC programming software .............................................................. 100
9.3 Connection ................................................................................................................... 100
2007/05/18 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
2007/05/18 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
1 Outline
This manual describes the PLC programming software for editing PLC ladder programs from an external
personal computer (PC) and monitoring program execution on the PC screen.
2 Recommended PC and OS
Personal computer AT compatible machine
(PC) CPU: Pentium 300 MHz or higher
Memory: 256 MB or more
Available HD space: 500 MB or more
Ethernet port: 1 channel
Operating System Japanese : Windows 2000 or XP (Home/Professional), Japanese version
(OS) English : Windows 2000 or XP (Home/Professional), English version
3 Installation Procedure
1) Set the CD-ROM in the PC.
5) If the warning below is displayed at the end of installation, double-click the [SET UP] icon in the folder
([DAOSDK] ⇒ [REDIST] ⇒ [DISK1]) to install the additional software.
2007/05/16 1 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
4 System Configuration
General-purpose PC
(MS Windows)
Ethernet
NC
Built-in PLC
Connection cable
2007/05/16 2 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
5 Mode
The PLC programming software provides the following modes:
• Edit mode········· Overwrite mode and edit mode
• Monitor mode
PLC ladder programs can be displayed in two ways.
• Display in the order of the step number (step order)
• Display in the order they are found (find order)
If any ladder rung edit operation is performed (see the function key list) while the programs are displayed
in find order, they are automatically sorted in step order, and then the specified operation is performed.
2007/05/16 3 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
2007/05/16 4 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
Press the [F2] key in edit mode or select [Online] ⇒ [Activate monitor] from the menu, to enter monitor
mode. Select this mode when monitoring a ladder program.
The current value of each OM can also be checked or changed in this mode.
2007/05/16 5 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
2007/05/16 6 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
2007/05/16 7 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
6 Functions
6.1 Project
6.1.3 Close
This command closes the project currently open.
When the project has not been saved, the dialog shown below appears.
2007/05/16 8 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
6.1.5 Save as
This command saves the project currently open in a file with a different name.
When [Save as] is selected, the <Save under the project name.> dialog shown below appears.
When the project is saved, five files (project name.ldr, project name.lop, project name.lpa, project name.lpr,
and project name.mbd) are created. These files are required when opening the project on a different PC.
In addition to this, project file name.mon is also created when [Save monitor setting] is executed.
2007/05/16 9 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Check the box of the data to be checked and click [OK]. The data is checked.
The <Program Verification > dialog shown is displayed during check.
2007/05/16 10 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
When the data is not correct, the <Verification result> dialog appears.
When [Save result] is clicked, a file is created with the .csv identifier, and the check result is saved in this
file.
2007/05/16 11 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
6.1.7 Import
The ladder data output using the NC’s external input/output function is converted to the project of the PLC
programming software, and it is then displayed in edit mode.
6.1.8 Export
The project of the PLC programming software is converted to a file that can be input using the NC’s
external input/output function.
When this command is executed, the <Export> dialog appears.
• When there is a file already in the specified destination, the dialog shown below appears.
Click [Yes] to overwrite the file.
• When there are any rungs not converted, the dialog shown below appears.
2007/05/16 12 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
2007/05/16 13 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
6.1.11 Print
When [Print] is selected, the <Print> dialog appears.
Set the printer to be used, printing range, the number of copies to be printed, and header and footer, and
then click [OK]. Printing starts.
The print range can be set by specifying the desired step numbers.
Notes:
• The image is printed as displayed on the screen.
When you want to print OM comments, inline comments, or coil remarks, display them on the screen
and then start printing.
• The [Preview] command displays the rungs in step order. When you select this command while the
rungs are displayed in find order, they are displayed in step order.
• If you check the [Specify area] radio button, the program is printed until the rung that contains the
specified step.
• An error message “Start step is empty.” or “End step is empty” is displayed if you omit the [From] or
[To] dialog box in the [Specify area] when you specify the step range.
2007/05/16 14 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• If a step number not within the range is set for [From] (start step) and [To] (end step), the dialog box
"Start step is out of range." or "End step is out of range." appears respectively.
• When the value set for [From] (start step) is larger than [To] (end step), the dialog shown below
appears.
• When there are rungs that have not been converted, the dialog shown below appears.
• Up to five lines can be used for header and footer. Lines more than five are not displayed even if
entered.
• Up to 512 single-byte characters can be used for header and footer. (One two-byte character and a line
feed are counted as two characters each.)
6.1.12 Exit
This command closes all projects currently opened, and quits the PLC programming software.
2007/05/16 15 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
6.2 Edit
Example 1)
MOV 100 D0
MOV 100 D0
2007/05/16 16 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
Example 2) The entire instruction is also cut when the [Cut] command is used.
MOV 100 D0
MOV 100 D0
2007/05/16 17 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Notes:
• If the pasted instructions exceeds the right base line, the dialog box "Result of pasting will exceed the
base line at right end. Retry after moving cursor leftward." appears, and the instructions is not pasted.
• If the coil or extended instruction is not pasted at the right end, the dialog box "Output coil will not be
located at the right end. Retry after moving cursor rightward." appears, and the coil or extended
instruction is not pasted.
• Data can be copied and pasted between projects in different models.
When rungs that contain labels are copied, whether the copied labels are used is determined when they
are pasted. Instructions are pasted if labels are not used. (If labels are used, only rungs are pasted.)
Pasting operation differs in overwrite mode and insert mode. (See the drawing below).
Section specified by
dashed line is copied.
Overwrite mode
[Paste] is
executed here.
Insert mode
2007/05/16 18 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
2007/05/16 19 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
• When [Jump] is clicked with [Top] checked, the cursor moves to the top line of the ladder program.
• When [Jump] is clicked with [End] checked, the cursor moves to the end line of the ladder program.
• When [Jump] is clicked with [Label] checked, the cursor moves to the specified label position.
(Double-clicking the label in the list has the same result.)
• Clicking [Cancel] or pressing [Esc] closes the <Jump> dialog.
• When [Jump] is clicked while the programs are displayed in find order, programs are automatically
displayed in step order, and then the cursor moves to the specified destination.
• When jump to the top or end of the program is executed while the programs are displayed in find
order, programs are automatically displayed in step order, and then the cursor moves to the specified
destination.
2007/05/16 20 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• Enter the desired step number in the [Step number] text box, and click [Find].
The cursor moves to the rung of the specified step number.
• Enter the desired OM name in the [OM ] text box, and click [Find] or press [Enter]. The cursor moves
to the rung where the specified OM is used.
• When the specified OM is used in multiple rungs, click [Find] or press [Enter] to move to the next OM
found.
• When [Find] is clicked with [Detail] checked, rungs where the specified OM and its expression are used
are searched for.
<Example>
When "D1" is specified, and [Find] is clicked with [Detail] checked, rungs where D0L is used are also
included in the search.
• When [Find] is clicked with [Specified step] checked, rungs after the specified step number are included
in search.
• "Detail" applies if you enter the OM name, one space, and then /K.
• "Detail" and "Specified step" can be specified simultaneously.
<Example> M1 /A /K 30
• "Detail" and "Specified step" are enabled as long as they are specified either in the text box or by the
check box.
• When "Specified step" is specified in both the OM text box and by the check box, priority is given to
the step number set for the check box.
2007/05/16 21 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
• If there is an OM at the position specified by the cursor, it is automatically displayed in [OM] when the
<Find and jump by OM> dialog is displayed.
• Indirectly designated Timers can also be searched for.
• When a bit OM with multiple-bit access specified (e.g. M0:4) or a word OM with "L" specified (e.g.
D0L) is entered in [OM ], the dialog box "Invalid OM." is displayed.
• "Specified step" is possible when “From top to bottom” is set for search direction.
• Enter the desired OM name in the [OM ] text box, and click [Find] or press [Enter]. The cursor moves
to the rung where the specified OM is used as a contact.
• When the specified OM is used as a contact in multiple rungs, click [Find] or press [Enter] to move to
the next OM found.
• When [Find] is clicked with [Specified step] checked, rungs after the specified step number are included
in search.
• "Specified step" applies if you enter the OM name, one space, and then the step number.
• When "Specified step" is specified in both the OM text box and by the check box, priority is given to
the step number set for the check box.
• Comparison instructions are also searched.
• If there is an OM at the position specified by the cursor, it is automatically displayed in [OM] when the
<Find and jump by OM (Contact)> dialog is displayed.
• Indirectly designated Timers can also be searched for.
• When a bit OM with multiple-bit access specified (e.g. M0:4) or a word OM with "L" specified (e.g.
D0L) is entered in [OM ], the dialog box "Invalid OM." is displayed.
• OMs with the digits specified are subject to search.
• "Specified step" is possible when “From top to bottom” is set for search direction.
2007/05/16 22 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• Enter the desired OM name in the [OM ] text box, and click [Find] or press [Enter]. The cursor moves
to rung where the specified OM is used as an output coil.
• When the specified OM is used in multiple rungs, click [Find] or press [Enter] to move to the next OM
found.
• When [Find] is clicked with [Specified step] checked, rungs after the specified step number are included
in search.
• "Specified step" applies if you enter the OM name, one space, and then the step number.
• When "Specified step" is specified in both the OM text box and by the check box, priority is given to
the step number set for the check box.
• If there is an OM at the position specified by the cursor, it is automatically displayed in [OM] when the
<Find and jump by OM (Coil)> dialog is displayed.
• When a bit OM with multiple-bit access specified (e.g. M0:4) or a word OM with "L" specified (e.g.
D0L) is entered in [OM ], the dialog box "Invalid OM." is displayed.
• OMs with the digits specified are subject to search.
• "Specified step" is possible when “From top to bottom” is set for search direction.
2007/05/16 23 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
• Enter the rung symbol in the [Symbol] text box and the OM name in the [Instruction] text box, and then
click [Find] or press [Enter]. The cursor moves to the rung where the specified instruction is used.
• When the specified instruction is used in multiple rungs, click [Find] or press [Enter] to move to the
next instruction found.
• When [Find] is clicked with [Specified step] checked, rungs after the specified step number are included
in search.
• "Specified step" applies if you enter the instruction name, one space, and then the step number.
• When "Specified step" is specified in both the instruction text box and by the check box, priority is
given to the step number set for the check box.
• If there is an instruction at the position specified by the cursor, it is automatically displayed in
[Instruction] when the <Find and jump by instruction> dialog is displayed.
• OUT instructions and comparison instructions are also found.
• Searching by both Instruction and OM is also possible.
<Example>
MOV D0 --- Rungs with D0 used in the MOV instruction are searched for.
• Up to 20 characters can be input in the <Find by Instruction> dialog box.
• "Specified step" is possible when “From top to bottom” is set for search direction.
2007/05/16 24 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• Enter the OM name in the [OM ] text box and click [Find].
The step numbers, ladder symbols, and instructions of the specified OM in the ladder program are
displayed in the list box.
• The data is displayed in the [Instruction] column only when the specified OM is used for an extended
instruction.
(E.g. When [MOV D0] is specified, [MOV] is displayed in the [Instruction] column.)
• When [Find] is clicked, the number of OMs searched is displayed in the [Find until] field.
• When [Find] is clicked with [Display with coil remark] checked, the coil remark of the line where the
specified OM is used is displayed.
• Click the desired step number in the list box, and then click [Jump to rung]. The cursor moves to the
rung of the specified step number. (Double-clicking the desired step number in the list box has the
same result.)
• When [Copy] is clicked, the searched results are copied to the clipboard in text format, and the dialog
box shown below appears.
• When copying, [Step], [Place], [Instruction], and [Coil remark] sections are separated by a TAB
character, and lines are separated by a LF (line feed) character.
• he copied contents can be pasted into other applications.
• If a character string that is not an OM name is entered in [OM type] and [Find] is clicked, the dialog box
"Invalid OM." appears, and returns to the <Contact/Coil list> dialog.
• Comparison instructions are also searched.
2007/05/16 25 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
• If there is an OM at the position specified by the cursor, it is automatically displayed in [OM type] when
the <Contact/Coil list> dialog is displayed.
• The [Contact/Coil list] command always executes "Find detail."
• When a bit OM with multiple-bit access specified (e.g. M0:4) or a word OM with "L" specified (e.g.
D0L) is entered in [OM type], the dialog box "Invalid OM." is displayed.
• When an OM found is in a rung that has not be converted, "?" is displayed in the [Step] column.
<Copy example>
When [Copy] is clicked on the above dialog and pasted into a Microsoft Excel file, the ladder
program is displayed as below.
• Enter the OM name and the number of OMs to be searched for in the [OM ] and [Find until] text boxes,
and click [Find]. The specified number of specified OMs are searched.
• When the OMs found are used as "Input", the Contact symbol is displayed in the [S] (source) column.
When these are used as "Output", the Coil symbol is displayed in the [D] (destination) column.
• Only OMs used in the destination are counted and displayed in the [The number of use] column.
2007/05/16 26 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• When [Find] is clicked with [With] in the [Comment] field checked, OM comments are also displayed.
• When [Find] is clicked with [Hide unused OM] checked, OMs not used in the ladder program are not
displayed.
• Click the OM type to select it and then click [Find all]. The <Used OM list> dialog closes, and [Find
specified OM (All)] is executed for the selected OM.
Refer to "(8) Find specified OM (All)" for details.
• Click the OM type to select it and then click [Find Output]. The <Used OM list> dialog closes, and
[Find specified OM (Coil)] is executed for the selected OM.
Refer to "(8) Find specified OM (Coil)" for details.
• When [Copy] is clicked, the search results are copied to the clipboard in text format, and the dialog box
"Copy finished." appears.
• When copying, [OM name], [S], [D], [The number of use], and [Comment] sections are separated by a
TAB character, and lines are separated by a LF (line feed) character.
• The copied contents can be pasted into other applications.
• The source and destination of extended instructions are distinguished.
• When a bit OM with multiple-bit access specified (e.g. M0:4) or a word OM with "L" specified (e.g.
D0L) is entered in [OM type], the dialog box "Invalid OM." is displayed.
<Copy example>
When [Copy] is clicked on the above dialog and pasted into a Microsoft Excel file, the program is
displayed as below.
2007/05/16 27 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
2007/05/16 28 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• Enter the desired OM name in the [OM ] text box, and click [Find] or press [Enter]. The rung where
the specified OM is used is searched for and added to the list.
• When search is completed correctly, find order mode is automatically entered.
• When the specified OM is used in multiple rungs, click [Find] or press [Enter] to move to the next OM
found.
• When [Find] is clicked with [All] checked, all rungs where the specified OM is used are searched for
and added to the list.
• When [Find] is clicked with [Detail] checked, rungs where the specified OM and its expression are used
are searched for.
<Example>
• When "D1" is specified, and [Find] is clicked with [Detail] checked, rungs where D0L is used are also
included in the search.
• When [Find] is clicked with [Specified step] checked, rungs after the specified step number are included
in search.
• "All" applies if you enter the OM name, one space, and then /A.
• "Detail" applies if you enter the OM name, one space, and then /K.
• "Specified step" applies if you enter the OM name, one space, and then the step number.
• "All", "Detail", and "Specified step" can be specified simultaneously.
<Example> M1 /A /K 30
• "All", "Detail", and "Specified step" are enabled as long as they are specified either in the text box or by
the check box.
• When "Specified step" is specified in both the OM text box and by the check box, priority is given to
the step number set for the check box.
• If there is an OM at the position specified by the cursor, it is automatically displayed in [OM ] when the
<Find by OM> dialog is displayed.
• Indirectly designated Timers can also be searched for.
• When a bit OM with multiple-bit access specified (e.g. M0:4) or a word OM with "L" specified (e.g.
D0L) is entered in [OM ], the dialog box "Invalid OM." is displayed.
• Specified step" is possible when “From top to bottom” is set for search direction.
Note: When "Find specified OM" is performed, rungs are displayed in find order.
To display them in step order, click [Find] with [Specified step] checked or press [Esc].
To return to find order, press [Shift] and [Home].
2007/05/16 29 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
• Enter the desired OM name in the [OM ] text box, and click [Find] or press [Enter]. The rung where
the specified OM is used as a contact is searched for and added to the list.
• When search is completed correctly, find order mode is automatically entered.
• When the specified OM is used as a contact in multiple rungs, click [Find] or press [Enter] to move to
the next OM found.
• When [Find] is clicked with [Specified step] checked, rungs after the specified step number are included
in search.
• "Specified step" applies if you enter the OM name, one space, and then the step number.
• When "Specified step" is specified in both the OM text box and by the check box, priority is given to
the step number set for the check box.
• Comparison instructions are also searched.
• If there is an OM at the position specified by the cursor, it is automatically displayed in [OM ] when the
<Find by OM (Contact)> dialog is displayed.
• Indirectly designated Timers can also be searched for.
• When a bit OM with multiple-bit access specified (e.g. M0:4) or a word OM with "L" specified (e.g.
D0L) is entered in [OM ], the dialog box "Invalid OM." is displayed.
• "Specified step" is possible when “From top to bottom” is set for search direction.
Note: When "Find specified OM (Contact)" is performed, rungs are displayed in find order.
To display them in step order, click [Find] with [Specified step] checked or press [Esc].
To return to find order, press [Shift] and [Home].
2007/05/16 30 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• Enter the desired OM name in the [OM ] text box, and click [Find] or press [Enter]. The rung where
the specified OM is used as an output coil is searched for and added to the list.
• When the specified OM is used in multiple rungs, click [Find] or press [Enter] to move to the next OM
found.
• When [Find] is clicked with [All] checked, all rungs where the specified OM is used are searched for
and added to the list.
• When [Find] is clicked with [Specified step] checked, rungs after the specified step number are included
in search.
• "All" applies if you enter the OM name, one space, and then /A.
• "Specified step" applies if you enter the OM name, one space, and then the step number.
• "All" and "Specified step" can be specified simultaneously.
<Example> M1 /A 30
• "All and "Specified step" are enabled as long as they are specified either in the text box or by the check
box.
• When "Specified step" is specified in both the OM text box and by the check box, priority is given to
the step number set for the check box.
• If there is an OM at the position specified by the cursor, it is automatically displayed in [OM type] when
the <Find by OM (Coil)> dialog is displayed.
• When a bit OM with multiple-bit access specified (e.g. M0:4) or a word OM with "L" specified (e.g.
D0L) is entered in [OM ], the dialog box "Invalid OM." is displayed.
• "Specified step" is possible when “From top to bottom” is set for search direction.
Note: When "Find specified OM (Coil)" is performed, rungs are displayed in find order.
To display them in step order, click [Find] with [Specified step] checked or press [Esc].
To return to find order, press [Shift] and [Home].
2007/05/16 31 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
• Enter the desired OM in the [OM ] text box, and click [Find] or press [Enter].
All rungs where the specified OM is used are found and added to the list.
• When [Find] is clicked with [Specified step] checked, rungs after the specified step number are included
in search.
• "Specified step" applies if you enter the OM name, one space, and then the step number.
• When "Specified step" is specified in both the OM text box and by the check box, priority is given to
the step number set for the check box.
• If there is an OM at the position specified by the cursor, it is automatically displayed in [OM ] when the
<Find by OM> dialog is displayed.
• When a bit OM with multiple-bit access specified (e.g. M0:4) or a word OM with "L" specified (e.g.
D0L) is entered in [OM type], the dialog box "Invalid OM." is displayed.
• "Specified step" is possible when “From top to bottom” is set for search direction.
Note: When "Find specified OM (All)" is performed, rungs are displayed in find order.
To display them in step order, click [Find] with [Specified step] checked or press [Esc].
To return to find order, press [Shift] and [Home].
2007/05/16 32 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• Enter the rung symbol in the [Symbol] text box and the OM name in the [Instruction] text boxe, and
then click [Find] or press [Enter]. The cursor moves to the rung where the specified instruction is used.
• When search is completed correctly, find order mode is automatically entered.
• When the specified instruction is used in multiple rungs, click [Find] or press [Enter] to move to the
next instruction found.
• When [Find] is clicked with [Specified step] checked, rungs after the specified step number are included
in search.
• "Specified step" applies if you enter the instruction name, one space, and then the step number.
• When "Specified step" is specified in both the instruction text box and by the check box, priority is
given to the step number set for the check box.
• If there is an instruction at the position specified by the cursor, it is automatically displayed in
[Instruction] when the <Find by instruction> dialog is displayed.
• OUT instructions and comparison instructions are also found.
• Searching by both Instruction and OM is also possible.
<Example>
MOV D0 --- Rungs with D0 used in the MOV instruction are searched for.
• Up to 20 characters can be input in the <Find by Instruction> dialog box.
• "Specified step" is possible when “From top to bottom” is set for search direction.
Note: When "Find by Instruction" is performed, rungs are displayed in find order.
To display them in step order, click [Find] with [Specified step] checked or press [Esc].
To return to find order, press [Shift] and [Home].
2007/05/16 33 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
6.2.13 Replace
(1) Replace all Contacts
Select [Edit]-[Replace]-[Replace all contacts] from the menu.
This command replaces normally open contacts (-| |-) with normally closed contacts (-|/|-).
• Enter the OM name in the [OM ] text box, and click [Replace]. Normally open contacts that use the
specified OM are replaced with normally closed contacts, and vice versa.
• When you click [Replace with confirmation] checked, the cursor moves to the corresponding position
first, and the dialog box "Do you want to replace?" appears.
If you click [Yes], the current contact is replaced, and then the cursor moves to the next corresponding
position.
If you click [No], the cursor moves to the next corresponding position without replacing the current
contact.
• When you click [Replace with confirmation] unchecked, all corresponding contacts are replaced.
• OMs with "L", "W", or multiple-bit access specified are also found.
• When [Replace all contacts] is selected in find order mode, the mode is switched to step order mode and
then the corresponding dialog appears.
• When you click [Replace], the dialog box "Do you want to start Replace all?" appears.
• When replacing is completed, the ladder program is automatically converted.
2007/05/16 34 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• Specify the range of OMs to be replaced in the [Existing OM ] text box and the new OM type in the
[New OM ] text box, and then click [Replace]. The specified OMs are replaced as shown in the
example below.
<Example>
Old OM : M0 - M10
New OM : Y10
M0 is replaced with Y10, M1 is replaced with Y11, ….. M10 is replaced with Y20
• When [Replace] is clicked with [All program] in the [Replacing area] field checked, all target OMs in
all areas in the ladder program are replaced.
• When [Replace] is clicked with [Steps] in the [Replacing area] field checked, only the target OMs in the
specified areas in the ladder program are replaced.
• When [Replace] is clicked with [Replace with confirmation] checked, the cursor moves to the
corresponding position first, and the dialog box "Do you want to start Replace all?" appears.
If you click [Yes], the current OM is replaced, and then the cursor moves to the next corresponding
position.
If you click [No], the cursor moves to the next corresponding position without replacing the current
OM.
• When [Replace] is clicked with [Replace with confirmation] unchecked, all corresponding OMs are
replaced.
• When [Replace] is clicked with [Move comment] checked, comments of the new OM are overwritten
with those of the previous OM.
• Replacing is also possible for OMs with "L", "W", or multiple-bit access specified.
• When the replace command is selected in find order mode, the mode is automatically changed to step
order mode, and then the corresponding dialog appears.
• Replacing OM X with a different OM or vice versa is not possible.
• OMs in extended instructions are also checked and replaced.
• When changing a bit OM to a Timer or Counter, only OMs used as a contact can be replaced. If
replacing other OMs is attempted, the dialog box "Not possible to modify this instruction." appears.
• When replacing a bit OM with a word OM is attempted, the dialog box "Not possible to set." appears.
This dialog box also appears when the setting for [New OM type] is the same as for [Existing OM
Type].
2007/05/16 35 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
6.2.14 Documentation
(1) Create OM comment
Select [Create OM comment] from the menu or press [Shift] + [F9] (or [Shift] + [Cntl] + [F5]) in edit mode.
The comment dialog of the OM specified by the cursor appears, and you can edit the comment.
(See the figure below.)
• A comment can be created for each OM, using up to 16 single-byte characters (a double-byte
character is counted as two characters).
• Available capacity is 32 Kbytes for all OM comments, label comment, and inline comments.
• When the total comment capacity exceeds 32 Kbytes, the dialog box "Since the maximum of the
number of comment is exceeded, if cannot set up. Please set up after deleting one or more
comments." appears.
• The size occupied by the OM comment is as below.
Occupied size (byte) = Number of OM comment set points * 16 * 2 + 3
• The END instruction is added by default to the OM comment of the Label's last number (L7).
• The Label's last number (L) cannot be edited.
2007/05/16 36 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• When you click the OM button in the [Select OM] field, the corresponding OM list is displayed.
• Enter the OM name in the [OM ] text box and press [Enter]. The specified OM is displayed in
the list.
• Editing the comment in the [Comment] text box to change the OM comment.
• Changes made on the <Edit Comment list> dialog are not applied until [OK] is clicked.
2007/05/16 37 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Step number
• The step number of the rung specified by the cursor is displayed in [Step].
• Line feed (LF) is regarded as two single-byte characters.
• Available capacity is 32 Kbytes for all OM comments, label comment, and inline comments.
• When the total comment capacity exceeds 32 Kbytes, the dialog box " Since the maximum of the
number of comment is exceeded, if cannot set up. Please set up after deleting one or more
comments." appears.
• The size occupied by the inline comment is as below.
Occupied size (byte) = Number of inline comment set points ×16× 2 + 3
2007/05/16 38 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• When a comment is attached to the label, "∗" is shown at the right of the label.
• The label comment is displayed in the inline comment area. (See the figure below.)
• Available capacity is 32 Kbytes for all OM comments, label comment, and inline comments.
• When the total comment capacity exceeds 32 Kbytes, the dialog box " Since the maximum of the
number of comment characters is exceeded, it cannot set up. Please set up after deleting one or
more comments." appears.
• The size occupied by the label comment is as below.
Occupied size (byte) = Number of label comment set points × 16 × 2 + 3
2007/05/16 39 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Instruction area
2007/05/16 40 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
Select here
2007/05/16 41 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
6.3 View
The mode can be changed to show or hide the tool bar, show or hide OM comments, or show or hide the
monitor list (monitor mode only).
Tool bar
Print preview
2007/05/16 42 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
6.3.4 Display
(1) Display with OM comment (shortcut: Ctrl + F5)
Changes the mode between Display with OM comment and Display without OM comment.
(2) Display with inline comment (shortcut: Ctrl + F7)
Changes the mode between Display with inline comment and Display without inline comment.
(3) Display with coil remark (shortcut: Ctrl + F8)
Changes the mode between Display with coil remark and Display without coil remark.
(4) Display with OM comment (Switch length)
Changes the number of OM comment characters to be displayed between 16 and 32.
(Default setting is 32.)
The display format is 8 single-byte characters x 2 lines and 8 single-byte characters x 4 lines
respectively.
2007/05/16 43 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Notes:
• This command can only be used in monitor mode.
• For bit OMs with multiple-bit access specified, only multiple numbers of 4 can be used to specify the
OM number.
2007/05/16 44 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
6.4 Convert
If a breaking error and short circuit error are current at the same time, only the breaking error is
displayed.
2007/05/16 45 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
6.5 Online
2007/05/16 46 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
When a ladder program is running, the dialog box "Built-in PLC is running. Do you want to turn it STOP?"
appears.
If you click [Yes], the mode is changed to STOP, and then the dialog shown below appears and the ladder
program is downloaded to the built-in PLC.
When download is completed, the <Download program> dialog disappears and the <Completed.> dialog
appears. The mode is changed to RUN and then the downloaded ladder program is executed.
2007/05/16 47 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Note:
• Set the [DATA PROTECTION] switch on the operation panel to [OFF].
• Set the “ User parameter 1 (switch 1)” “PLC ladder program protect” to [OFF].
If the switch is set to [ON], the dialog box "Not entered" appears, and the program cannot be
downloaded.
• Check that the PLC programming function on the NC unit is exited.
• A sum check for the entire ladder program is performed when program transfer is completed.
An error is displayed when the result does not match.
• When rungs that have not been converted are detected during downloading, the dialog box shown
below appears. If you click [Yes], these are automatically converted. If you click [No], the dialog
box "Terminated." appears and downloading the program is canceled. It is also canceled if a
conversion error occurs during conversion.
When [Go] is clicked, the mouse changes to an hourglass, and the ladder program is uploaded from the
built-in PLC.
The uploaded data is only stored in memory, meaning that it is not saved to a file. To save it to a file,
select [Project] ⇒ [Save as].
Notes:
• [Upload program] cannot be selected during monitoring.
• A program can uploaded regardless of whether the mode of the built-in PLC is RUN or STOP.
• If communication fails, the dialog box "Not possible to establish connection to BUILT IN PLC."
appears.
2007/05/16 48 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
Selection bar
[Add] button
Text box
Monitor list
Notes:
• These menus can only be used in monitor mode.
• Up to 24 OMs can be registered. (If more OMs are registered, the OMs are replaced chronologically.)
2007/05/16 49 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
• The registered OMs are saved, and they are displayed when the monitor list is opened next time.
(Click [Yes] on the confirmation dialog, and the registered OMs are saved.)
• Bit OMs' multiple-bit access and bit specifying access and word OMs' 32-bit access are possible.
• TS (contact), TC (coil), TV (current value), and TP (set value) can be used to set Timer.
• TS (contact), TC (coil), TV (current value), and TP (set value) can be used to set Counter.
• The registered OM is saved to a file. It is saved when monitor mode is changed to edit mode or the
window is closed. When the window is close at the end of or during monitoring, the dialog shown
below appears. If you click [Yes], the OM is saved. If you lick [No], the dialog closes without
saving the OM.
• For bit OMs with multiple-bit access specified, only multiples of 4 can be used to specify the OM
number. (E.g. B1:4 --- Error)
• If a character string that is not an OM name is entered in the text box and [Add] is clicked, an error
message appears.
When [Go] is clicked, the dialog shown below appears. [No] is initially selected. Click [Yes] and the
selected mode is entered.
2007/05/16 50 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
Status area
Specify a continuous number of points, and SET/RESET is executed for all specified OMs.
For example, enter M0 in [OM] and 100 in [Number of bits]. SET/RESET is executed for M0 to M99.
The execution result is displayed in the status area on the above dialog.
If the specified number of points exceeds the range (e.g. M512 in [OM type] and 2 in [Number of bits]), an
error message appears.
Notes:
• Multiple-bit access cannot be specified. (E.g. M10:4)
OMs that have been SET can be executed : X, Y, M, T/C's contacts (TS/CS) and coils (TC/CC)
OMs that have been RESET can be executed : X, Y, M, T, C, D
• When RESET is executed for T/C, T/C's contacts (TS/CS) and coils (TC/CC) are turned OFF, and the
current value (TV/CV) is cleared to zero.
When RESET is executed for D or W, the current value is cleared to zero.
• When the built-in PLC is in RUN mode, priority is given to the program calculation result. Accordingly,
change RUN to STOP before executing SET/RESET for output instructions (Y, M) or input instructions
(X).
Caution
2007/05/16 51 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Status area
Applicable OMs: D, T, C
The Timer's set value (TP) cannot be changed. The Timer's current value (TV) can be changed.
The Counter's set value (CP) cannot be changed. The Counter's current value (CV) can be changed.
When [Set 32 bit value] is checked, a 32-bit value is written. For example, when "D0" is entered in [OM ],
the changed value is written to D0 and D1; the first 16 bits to D0 and the next 16 bits to F1.
The result is displayed in the status area.
Notes:
• Even if [Set 32 bit value] is not checked, a 32 bit value is written if "L" (long value) is specified for the
OM (e.g. D0L).
• Generally a decimal number is entered in [Set]. Add "H" to the top of the number to use a
hexadecimal number.
(E.g. When "H10" is entered in [Set], "16" (decimal number) is input to the OM.)
2007/05/16 52 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
6.5.9 Debug
When the program is executed in DEBUG-RUN mode, the program can be stopped at the specified step
number or when the bit OM or word OM becomes a particular value.
Select [Online] ⇒ [Debug] ⇒ [Debug setting] from the menu, and set the conditions.
(1) Start
Select [Online] ⇒ [Debug] ⇒ [Start] from the menu, and the ladder program runs in DEBUG-RUN mode.
Clicking the icon below has the same result. (This command can be selected when the built-in PLC is in
STOP mode.)
Click here.
<Stop conditions>
• Top of the specified rung (up to 16 points)
• Bit OM trigger
OFF → ON, ON → OFF, ON/OFF change
• Word OM trigger
Comparison with set value (=, <>, > ,>= , <, <=)
When the stop conditions are met in DEBUG-RUN mode, DEBUG-RUN changes to STOP, and the cursor
automatically moves to the stop position.
2007/05/16 53 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Click here
(3) Stop
Select [Online] ⇒ [Debug] ⇒ [Stop] from the menu, and the ladder program stops.
Clicking the icon below has the same result. (This command can be selected when the built-in PLC is in
RUN mode or DEBUG-RUN mode.)
Click here
2007/05/16 54 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
Set the conditions to stop the ladder program on the above dialog.
• [Triggered by Bit OM] Set the specified bit OM as a stop condition.
• [Triggered by Word OM] Set the specified word OM as a stop condition.
(Only a constant can be entered in [Reference value].)
• [Delete] Deletes the specified break point.
Specify the step number in [Specified rung number list], and click
[Delete]. The specified break point is deleted.
Bit OMs with multiple-bit access specified cannot be entered in [OM name]. (E.g. X0:4, M0L)
Specified step
number
Select [Online] ⇒ [Debug] ⇒ [Set/Reset break point] from the menu when the break point is set.
The break point is reset and the background of the program step number specified by the cursor turns white.
(See the figure below.)
2007/05/16 55 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
<Setting by double-clicking>
Move the cursor to the step number when the break point is not set, and double-click the mouse.
The break point is set. (See the figure below.)
Move the cursor to the step number when the break point is set, and double-click the mouse. The break
point is reset, and the background of the program step number specified by the cursor turns white. (See the
figure below.)
When the mode of the built-in PLC is changed from STOP or DEBUG-RUN to RUN, all break points and
registered DEBUG conditions are automatically cleared.
If you click [Yes], all break points and registered DEBUG conditions are cleared .
2007/05/16 56 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
6.5.10 Trigger
This command executes a function that monitors the bit OM and stops monitoring when OFF → ON
(positive) or ON → OFF (negative) is detected.
To set the trigger, move the cursor to the bit OM (e.g. contact, coil), and press the [Ctrl] + [F7] (positive) or
the [Ctrl] + [F8] (negative) keys.
Setting details are displayed on the monitor status bar as below.
Positive trigger ↑ Trigger <OM name>
Negative trigger ↑ Trigger <OM name>
2007/05/16 57 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
2007/05/16 58 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
<Word OM>
Next button
Select data type.
Select comment
OM monitor area
2007/05/16 59 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
<Bit OM>
Previous button
Next button
Select comment.
[Set] button]
[Jump] button
[General descriptions]
• Select [Online] ⇒ [Batch monitor] from the menu again. Another <Batch monitor> dialog appears.
Up to four <Batch monitor> dialogs can be opened.
• When the <Batch monitor> dialogs are closed without using the [Close] button, the dialog shown
below appears the next time [Batch monitor] is selected.
2007/05/16 60 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
[Item descriptions]
• [Select OM] button
Opens the <Select OM> dialog. (Refer to (2).)
• Previous button
Displays the previous page. The OM area and OM monitor area change as the page is changed.
When monitoring the OM with the smallest number, this button cannot be used.
• Next button
Displays the next page. The OM area and OM monitor area change as the page is changed. When
monitoring the OM with the largest number, this button cannot be used.
• [Comment]
Selects whether to display comments.
Refer to the description of "OM monitor area" below.
• [Cardinal]
Changes the display to [Dec] (decimal), [Hex] (hexadecimal), [Bin] (binary), or [ASCII]*. This is
displayed only when a word OM is selected.
[Dec] General numerical value
[Hex] H + 4 digits, "H" indicates hexadecimal notation (e.g. H9999).
(H + 8 digits for 32-bit display)
[Bin] 16 digits (16 digits x 2 lines for 32-bit display)
[ASCII] ASCII character strings and single-byte Katakana can be displayed.
• [Data length/type]
Changes the size of the data to be monitored to 16 bit, 32 bit, or Float (float point).
For a word OM, only [Float] can be selected for floating point, only [32 Bit] for 32-bit integral
number, and both for others. This is displayed only when a word OM is selected.
Refer to the description of "OM monitor area" below.
• OM monitor area
Displays the state of the monitored OM. The monitor points differ depending on the selected OM
type and the presence of comments.
• [Jump] button
Open the <Jump> dialog. You can change the start number within the same OM type.
• [String] button
Open the <String> dialog. You can edit the word OM data.
This is displayed only when a word OM is selected.
• [Set] button, [Reset] button
Sets or resets the bit OM specified by the cursor.
• [Close] button
Closes the <Batch monitor> dialog.
2007/05/16 61 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Monitor format:
OMs in decimal notation 10 rows x 10 columns
OMs in hexadecimal notation 16 rows x 8 columns
OMs in octal notation 8 rows x 8 columns
When these are ON, the background color is yellow.
When these are OFF, the background color is white.
When the OM name is double-clicked, the <OM SET/RST> dialog (refer to 6.5.6) opens.
OM name Comment
2007/05/16 62 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
When the OM name is double-clicked, the <Force value> dialog (refer to 6.5.7) opens.
Monitored values are displayed every other line for 32-bit display. (See the figure below.)
Monitored values are displayed using two rows for binary notation of 32-bit display.
The remark below is displayed on the lower right of the dialog.
Upper column: low 16 bits Lower column: top 16bits
When the OM name is double-clicked, the <Force value> dialog (refer to 6.5.7) opens.
2007/05/16 63 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
When the OM name is double-clicked, the <Force value> dialog (refer to 6.5.7) opens.
TS (timer contact), TC (timer coil), CS (counter contact), and CC (counter coil) are regarded as bit OMs.
When the OM name is double-clicked, the <Force value> dialog (refer to 6.5.7) opens.
TS (timer contact), TC (timer coil), CS (counter contact), and CC (counter coil) are regarded as bit OMs.
2007/05/16 64 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
(2) Select OM
When the <Batch monitor> dialog is initially displayed or when the [Select OM] button on the <Batch
monitor> dialog is clicked, the <Select OM> dialog shown below appears.
[OK] button
[Cancel] button
(3) Jump
When [Jump] is clicked during butch monitoring, the <Jump> dialog shown below appears.
Character type
2007/05/16 66 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
When checked, “efg” is overwritten to “xyz” and the end of the character string becomes D7. When
calling character string by pressing [Read actual value] button from D0, the character string becomes
“abcdxyhilklm.” (Since the “0” is also treated as the character string.)
When not checked, “efgh” is overwritten to “xyz” and “0” is written to D4, so the end of the character
string becomes D4. When calling character string by pressing [Read actual value] button from D0,
the character string becomes ” abcdxyz.”
2007/05/16 67 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
6.6 Tool
6.6.1 Test
Select [Tool] ⇒ [Test] from the menu, and the ladder program can be simulated in Windows.
All Online operations are performed as a test RUN during program simulation.
When [Test] is selected, the ladder program is checked for the following before execution:
• There is an RET instruction after the called label.
• There is no error in the ladder program data.
• There in no CALL instruction specified for labels that do not exist.
The following restriction also applies when simulating the program in Windows:
• X/Y are output to shared memory (CB), instead of actual I/O.
Notes:
• [Test] cannot be selected during monitoring.
• The program cannot be uploaded in test mode.
• The display of the scan time depends on the accuracy of the Windows timer.
6.7 Option
• Scan time
Sets the constant scan time in 10-millisecond increments within the range of 10 to 200.
2007/05/16 68 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
(1) General
2007/05/16 69 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Icon type
String type
(2) View
Select [Option] ⇒ [Option setting] from the menu, and click the [View] tab. The dialog shown below
appears.
• [Width of column]
Adjusts the width of the ladder column. Drag the slider or use the left and right arrow keys to
change the value. The setting range is from 40 to 100 pixels.
(Default setting is 45 pixels.)
2007/05/16 70 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• [Height of line]
Adjust the height of the ladder line. Drag the slide or use the left and right arrow keys to change
the value. The setting range is from 30 to 100 pixels.
(Default setting is 40 pixels.)
• [Font]
Sets the font used for OMs and comments in the ladder program. Click [Font] and the dialog
shown below appears. Set the character font and size.
(Default font setting is Arial and size setting is 8 point.)
Note:
• The default font size is generally used to display the ladder program. If the ladder cannot be
accommodated in a line, the font size is automatically adjusted so that it is accommodated.
2007/05/16 71 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
6.8 Window
6.8.2 Cascade
This command arranges the windows as shown below.
2007/05/16 72 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
2007/05/16 73 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
6.9 Help
6.9.3 About...
This command displays the version information.
2007/05/16 74 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
7 View
7.1 Edit Mode
2007/05/16 75 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Batch monitor
Indicates the status of the built-in
PLC (RUN/STOP)
2007/05/16 76 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
To create new rungs or correct existing rungs, add or edit the rungs at the desired position in edit mode, and
then select [Convert] (or press [F4]). The changes are then reflected in the ladder program.
The background of the edited rungs turns blue. Be sure to perform the [Convert] operation to update the
ladder program.
New program
Convert
Note: If you attempt to change to monitor mode without performing the [Convert] operation after editing
rungs in edit mode, the dialog box "There are rungs which have not been converted. Do you want to
convert them?" appears.
2007/05/16 77 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
8.1.1 Overwrite/insert
There are several methods to enter instructions using the keyboard and mouse operation.
This section describes the instruction entry methods.
The <Edit instruction> dialog shown below is used for instruction entry.
When the selected symbol does not correspond to the entered instruction as shown above, the error message
"Invalid format of instruction." appears.
2007/05/16 78 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
M0 X000
M0 X010
The rung symbol and OM at the position specified by the cursor are overwritten.
If a new entry is attempted at the Comparison instruction or Extended instruction, these instructions
are overwritten with the entered data.
<Insert mode>
M0 M0 X000 X010
X010
• Operation is the same as in overwrite mode when there is no horizontal line or rung symbol at the
position specified by the cursor.
• When there is a Contact or Comparison instruction at the position specified by the cursor, the
rungs, including the one specified by the cursor, are shifted to the right by one column, and the
new Contact is inserted. (Rungs are shifted by 3 columns for a 16-bit Comparison instruction
and by 5 columns for a 32-bit Comparison instruction.)
• Different rungs are not shifted.
• "Connection (→)" is inserted when Contact, Coil, and Extended instruction are all entered on the
right side of the position specified by the cursor and there is no column available for data
insertion.
• "Connection (→)" is inserted when data is inserted at the last column.
• When a Contact is inserted in the first column, the error message "Invalid execution point."
appears.
2007/05/16 79 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Notes
Press [Enter] or double-click the mouse. The rung symbol and OM name (and Extended instruction) at
the position specified by the cursor are displayed on the <Edit instruction> dialog. Use the following key
operations when you only want to replace normally open with normally closed symbols or vice versa.
[Enter] [Shift + F5] [Enter] Change normally open to normally closed.
[Enter] [F5] [Enter] Change normally closed to normally open.
M0 X010 M0 X010
X000
• When the OR contact is entered at the last column of the row, the error message "Invalid
execution point." appears.
<Insert mode>
M0 X010 M0 X010
X011 X000
X011
• Operation is the same as in overwrite mode when there is no rung symbol at the position
specified by the cursor.
• When there is a horizontal line, Contact, or Comparison instruction at the position specified by
the cursor, the corresponding row is shifted down by one row and the OR contact is inserted.
• When the OR Contact is inserted in the last column of the row, the error message "Invalid
execution point." appears.
2007/05/16 80 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
M0 M0
<Y010>
• When Coil is entered before the last column, the cursor moves to the first column of the next row
after entry.
• A Comparison instruction can also be inserted.
<Insert mode>
M0 M0
<Y000> <Y000>
<Y010>
• When there is no Coil at the position specified by the cursor, operation is the same as in
overwrite mode.
• When there is a Coil at the position specified by the cursor, the corresponding line is shifted
down by one line and the Coil is inserted.
2007/05/16 81 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
M0 X010 M0
• A horizontal line is entered at the position specified by the cursor. When a horizontal line is
entered at the Comparison instruction or Extended instruction, these instructions are overwritten
with the horizontal line.
• The data at the position specified by the cursor is always overwritten, regardless of whether
overwrite or insert mode is set.
M0
<Y000> <Y000>
<Y010> <Y010>
M0
<Y000> <Y000>
<Y010> <Y010>
2007/05/16 82 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
(e) Others
(e-1) Label Label, [Enter]
E.g.) L0 [Enter]
M0
M0
L0
E.g.) 1, [Enter]
E.g.) 2, [Enter]
• "Connection" can be inserted only in the first or the last column of the row. If it is inserted in
any other position, the error message "Invalid execution point." appears.
2007/05/16 83 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
• When "Connection" is inserted in the last column of the current row, the cursor moves to the first
column of the next row.
• When a horizontal line is entered while the cursor is at the last column of the row in insert mode,
"connection" is automatically inserted from the lowest number available.
2007/05/16 84 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
8.1.3 Deletion
<Overwrite mode>
Pressing the [Delete] key deletes the symbol at the position specified by the cursor, and the deleted section
becomes blank.
Pressing the [BS] key deletes the symbol to the left of the position specified by the cursor, and the deleted
section becomes blank.
[Delete]
M0 X010 M0
[BS]
M0 X010 X010
• When a symbol that applies to multiple columns (e.g. Comparison instruction or Extended instruction)
is deleted, the entire instruction is deleted.
<Insert mode>
Pressing the [Delete] key deletes the symbol at the position specified by the cursor, and a horizontal line is
added.
Pressing the [BS] key deletes the symbol to the left of the position specified by the cursor, and a horizontal
line is added.
[Delete]
M0 X010
M0
[BS]
X010
M0 X010
• When a symbol that applies to multiple columns (e.g. Comparison instruction or Extended instruction)
is deleted, the entire instruction is deleted.
2007/05/16 85 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
8.2 Edit
8.2.1 Undo
• Returns the edit operation (e.g. write, insert, delete, cut, or paste) to the previous state.
• [Undo] is possible for the last ten operations performed.
• [Undo] is not possible for operations not associated with editing rungs (e.g. scrolling rungs).
• [Undo] is not possible when the ladder program is changed using the [Open] or [Copy] command.
2007/05/16 86 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
Program A
Program C
Program B
Program B is
copied and Program C
pasted at the
end.
Program B
Section specified by
dashed line is copied.
Overwrite mode
[Paste] is
executed here.
Insert mode
2007/05/16 87 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
Delete the
line.
Insert a
blank line.
2007/05/16 88 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
• Decrement and increment are not performed for the smallest OM number and the largest OM number
respectively.
• When [Increment] or [Decrement] is executed, rungs are regarded as not having been converted.
• When [Increment] or [Decrement] is executed in find order mode, the mode automatically changes to
step order, and then the OM number is incremented or decremented.
• Constants are not subject to increment/decrement.
• When [Increment] or [Decrement] is executed for a bit OM with multiple-bit access specified (W),
increment/decrement is performed for the specified number of bits.
E.g. 1 When [Increment] is executed for B0W → B16W
E.g. 2 When [Increment] is executed for B0:4 → B4:4
• [Increment] and [Decrement] cannot be executed in [lock editing] mode.
• [Increment] and [Decrement] is performed one at a time even for a word OM with "L" specified.
• L (label) is subject to increment/decrement.
• When [Increment] or [Decrement] is executed when there is no OM specified by the cursor, the error
message shown below appears.
2007/05/16 89 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
• When [Delete rung block] is executed in the end line, the error message shown below appears.
• When [Delete rung block] is executed in find order mode, the mode automatically changes to step
mode, and then the rung is deleted.
• [Delete rung block] cannot be executed in edit lock mode.
• The continuous entry set button (push pin button) on the <Edit instruction> dialog is disabled
• [Refer] is displayed in the edit status area on the status bar while [Referencing a rung] is executed.
• [Referencing a rung] cannot be executed in [lock editing] mode.
2007/05/16 90 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
8.3.4 Find ↑
With the OM specified by the cursor regarded as the search target, a search is performed from the cursor
position to the top of the ladder program.
When the specified OM is detected, find order mode is automatically entered, and the rungs that contain the
specified OM are displayed. The cursor automatically moves to the detected OM. When the search
reaches the top of the program, the dialog box shown below appears.
• When [Find ↑] is executed at a location without a rung, the error message shown below appears.
• Labels are also searched for. (Label area and JMP/CALL/JE instruction parameters are also subject to
search.)
• Constants are not subject to search.
8.3.5 Find ↓
With the OM specified by the cursor regarded as the search target, a search is performed from the cursor
position to the end of the ladder program.
When the specified OM is detected, find order mode is automatically entered, and the rungs that contain the
specified OM are displayed. The cursor automatically moves to the detected OM. When the search
reaches the end of the program, the dialog box shown below appears.
2007/05/16 91 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
• When [Find ↓] is executed at a location without a rung, the error message shown below appears.
• Labels are also searched for. (Label area and JMP/CALL/JE instruction parameters are also subject to
search.)
• Constants are not subject to search.
2007/05/16 92 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
The table below shows the error messages, possible causes, and their solution.
Error message dialog Cause Solution
Contact was entered in the first Enter the contact in a section
column. other than the label area.
OR Contact was entered in the Enter the OR Contact in a
first row. section other than the first row.
OR Contact was entered in the Enter the OR Contact in the
last column. middle of the row.
Coil was entered in the first Enter the Coil in a section other
column. than the label area.
Label was entered in a section Enter it in the label area.
other than the first column.
Instruction was entered in the Enter it in a section other than
first column. the label area.
Connection was entered in the Enter the Connection in the last
first column of the first row. column.
Connection was entered in a Enter the Connection in the last
section other than the first or last column.
column.
Vertical line was entered in the Enter the vertical line in a
middle of the Extended section other than the middle of
instruction. an Extended instruction.
A number different to the Enter the specified number.
specified one was entered for
Connection
A character string that is not an Enter the OM name within the
OM name or an OM within the range.
range was entered in the [OM
type] text box on the <Force
value> dialog.
A character string that is not an Enter the correct instruction.
Instruction was entered on the
<Edit Instruction> dialog.
An OM number that is not Enter the OM number within the
within the range was entered on range.
the <Edit Instruction> dialog.
An OM number that is not Enter the OM number within the
within the range was entered on range.
the <Edit Instruction> dialog
where the instruction symbol is
entered.
The specified label is not set for Specify the correct label.
the jump dialog.
2007/05/16 93 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
The end step set for [Specify Set the end step within the range.
area] on the <Print> dialog is not
within the range.
There is no setting for [From] Set the start step within the
(start step) in the [Specify area] range.
field on the <Print> dialog.
There is no setting for [To] (end Set the end step within the range.
step) in the [Specify area] field
on the <Print> dialog.
2007/05/16 94 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
2007/05/16 95 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
An OM not within the range was Enter the OM name within the
entered in [OM type] on the range.
<OM SET/RST> dialog.
The [Clear all OM] command Change the mode to [STOP], and
was selected while the built-in then use this command.
PLC is in RUN mode.
A numerical value not within the Enter a value within the range.
range or a character is entered
for [Scan time] on the
<Parameter setting> dialog.
The setting for [From] is larger Enter a value for [From] that is
than the setting for [To] in the smaller than the one for [To].
[Specify area] text box on the
<Replace all OM> dialog.
2007/05/16 96 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
9 Communication with NC
This section describes the procedure for connecting a single PC to the NC.
When using a PC on a LAN network, experience performing LAN settings is required. Please contact
your network administrator.
9.1 NC Setting
2007/05/16 97 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
9.2 PC Setting
Windows XP
1. Select [Start] ⇒[Control Panel] ⇒[Network Connections],and then select [Local Area Connection](*1)
2. Select [Internet protocol (TCP/IP) and click [Properties]
Windows 2000
1. Select [Start]⇒ [Settings] ⇒ [Network and Dial-up Connections], and then select [Local Area
Connection] (*1).
Windows XP/2000
2. When the PC is connected to the LAN, the dialog box shown below appears.
When the dialog box does not appear, there is a connection failure to the LAN. Check if the
cable is connected correctly.
3. Select [Internet protocol (TCP/IP)] and click [Properties].
2007/05/16 98 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software
4. The screen shown below appears. Check [Use the following IP address], enter "192.168.1.1" for [IP
address] and "255.255.255.0" for [Subnet mask]), and click [OK].
Note: Set a different IP address to those for the NC and PLC Programming Software.
(*1) Default name when Windows is installed. The name may differ depending on your
environment.
2007/05/16 99 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN
• Set [IP address] and [Port] so that they match the NC's setting.
• A serial port cannot be used.
LOCAL PCB
9.3 Connection
Inside the control box
PC
Prepared by user
INSTALLATION MANUAL
PLC FUNCTION
You need to connect the OPSEL PCB to the IO PCB when using the built-in
PLC function and the PLC programming function.
1 Cautions
2 Overall View
3 Mounting
4 Signal Check
2007/05/18 1 eTCOM2PLC05
Installation Manual TC-32B/22B/S2C/31B/32BN
1 Cautions
DANGER
High voltage parts are present in the control box.
Tohching such parts by mistake may result in serious injury or
death.
Only operators qualified for electrical work and familiar with the
electrical circuits of this machine are allowed to maintain and
inspect electrical components.
Turn off the main power breaker before operation.
Put up a signboard whish says “Under maintenance”.
2 Overall View
OPSEL PCB**
OPSEL PCB
OP 12
2007/05/18 2 eTCOM2PLC05
TC-32B/22B/S2C/31B/32BN Installation Manual
3 Mounting
Follow the procedure below when installing the OPSEL PCB (OPTION No.sticker "OP".) on the
IO PCB.
IO PCB
OPSEL PCB
Connector CNOPTN
11.10.01-1.ai
*The option sticker number differs according to the presence or absence of other
options.
2007/05/18 3 eTCOM2PLC05
Installation Manual TC-32B/22B/S2C/31B/32BN
4 Signal Check
Follow the procedure below to check if the PLC system is activated.
Check OPSEL PCB connection when the status differs from the description above.
2007/05/18 4 eTCOM2PLC05
eTCOM2PLCOKU
693213001
0705(8)
eTCOM2PLCOKU