You are on page 1of 202

TC-32B/22B/S2C/31B/32BN PLC System Manual

PLC System Manual

For advanced personnel

Be sure to read this manual before starting operation.

2007/05/18 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN

Contents

1. Outline 1

2. System Configuration 2

2.1 System Diagram.................................................................................................. 2


2.2 Section Descriptions............................................................................................ 3
2.3 Optional Configuration ........................................................................................ 4
2.4 Optional Configuration Drawing ......................................................................... 5

3. Procedure for using PLC function 6

4. PLC Ladder Program 7

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

5.1 Menu .................................................................................................................. 12


5.2 Input/Output Information ................................................................................... 14
5.2.1 <PLC (External I/O)> screen ............................................................... 14
5.2.2 <PLC (Internal I/O)> screen................................................................. 15
5.2.3 <PLC (Internal relay)> screen ............................................................. 16
5.2.4 <PLC (Timer 1)> screen ...................................................................... 17
5.2.5 <PLC (Timer 2)> screen ...................................................................... 18
5.2.6 <PLC (Counter)> screen...................................................................... 19
5.2.7 <PLC (Data register)> screen.............................................................. 20

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.

Main functions of PLC system


1) Built-in PLC function
PLC function built into the NC
This function executes the PLC ladder program.
Input/output circuits and wiring are not necessary as the NC's internal information can be transferred via
memory.
Note: Refer to the Built-in PLC Manual for details.

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.

3) External input/output unit


This unit transfers NC signals and signals for external devices.
• External input/output points Input : Max. 64 points
Output : Max. 64 points
• Terminal block assignment via user parameters
Note: Refer to the Machine's Operation Manual for details.

4) PLC programming software


This software allows you to edit a PLC ladder program from an external PC (personal computer) and
monitor program execution on the PC screen.
Connect the PC to the NC via Ethernet to be able to transfer and monitor the PLC ladder program.
Note: Refer to the PLC Programming Software 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

PLC programming software

Ethernet

NC

NC screen PLC programming function

Built-in PLC

Built-in PLC function

External input/output unit

24V power supply


(prepared by user) EXIO 1 PCB EXIO 2 PCB
32 points / 32 points 32 pints / 32 points

Connection cable

XT PCB XT PCB XT PCB XT PCB

2007/05/18 2 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual

2.2 Section Descriptions


1) Built-in PLC
The PLC is built into the NC and executes the PLC ladder program.
A PLC ladder program created by the PLC programming function is downloaded and executed.
The PLC ladder program to be executed is the only program in the NC.
Other PLC ladder programs are stored in an external PC.

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.

4) PCB with terminal block and connection cable


Connection to EXIO PCBs 1 and 2 is via connectors, so cords cannot be connected to them directly.
"PCB with terminal block" is a PCB with a terminal block mounted to enable connection of cords.
16 inputs and 16 outputs can be connected.
A flat cable is provided to connect the EXIO PCB and the PCB with terminal block.
Standard commercial PCBs and cables can also be used.
Note: Refer to the machine's Installation Manual for details.

5) PLC programming function


PLC ladder programs can be edited and PLC operation can be monitored on the NC screen.
The screen is displayed in the language selected for the NC.

6) PLC programming software


This is programming software for use on a PC.
Once the software is installed on the PC, you can edit PLC ladder programs from the PC and monitor
program execution on the PC screen. The PC and the NC are connected via Ethernet.
The software’s substantial help messages and use of a large screen or pointing device provide excellent
operability.
The software is compatible with Windows XP and 2000 (both Japanese and English versions).
Software is provided on a CD-ROM with Japanese and English installers.
Note: Refer to the PLC Programming Software Manual for details.

2007/05/18 3 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN

2.3 Optional Configuration


This section describes the optional configurations. Please purchase options when needed.

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.

2) Basic set for I/O 32/32


1) This is a set composed of EXIO PCB with I/O 32 points and a terminal block and cables.
2) Select the desired PCB according to the output circuit.
EXIO1 unit, NPN EXIO1 unit, PNP
Output circuit NPN output (type 1) PNP output (type 2)
PCB EXIO1N PCB assembly, B00 EXIO2P PCB assembly, B00
Terminal block XT PCB (2 pcs.)
circuit
Cable EXIO flat cable (2 pcs.)
* Select NPN output (type 1) for the same output as A series.

3) Extension set for I/O 32/32


1) This is the set which extends I/O to another 32/32 points.
2) Select the desired PCB according to the output circuit.
EXIO2 unit, NPN EXIO2 unit, PNP
Output circuit NPN output (type 1) PNP output (type 2)

PCB EXIO PCB 2N assembly,B00 EXIO PCB 2P assembly, B00

Terminal block XT PCB 2 pcs.


PCB
Cable EXIO flat cable 3m 2 pcs.
EXIO flat cable
* The space for mounting four PCBs are available in the control box. (except TC-32B)
For TC-32B, only two PCBs can be mounted, so prepare an external box when attaching more PCB’s.

4) PLC programming software


The CD-ROM contains both Japanese and English versions.

2007/05/18 4 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual

2.4 Optional Configuration Drawing

OPSEL PCB
EXIO 1 PCB assembly

LOCAL
PCB EXIO 2 PCBassembly

IO PCB

24V power
supply

(prepared by user)

Terminal block PCB

LAN cable
Use cross cable when connecting one to one.
(prepared by user)

PLC programming software


CD-ROM (Japanese /English)

Standard commercial PC
Windows 2000 or XP
(prepared by user)

2007/05/18 5 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN

3. Procedure for using PLC function


This section describes the procedure for using the PLC function.

1) Clarify the required input and output signals.


Available I/O points and reservation signal information

2) Create a PLC ladder program.


When creating a program on the NC screen ········· Use a PLC programming function.
When creating a program on the PC screen·········· Use the PLC programming software.

3) Store the PLC ladder program in the built-in PLC.


4) Assign the external input/output signals.


Set for user parameters [External input signal] and [External output signal].

5) Wire the external input/output signals.


Refer to the machine's Installation Manual for extension IO PCB attachment and terminal block
information.

6) Check the PLC operation while monitoring the program.


When monitoring operation on the NC screen······ Use a PLC programming function.
When monitoring operation on the PC screen ······ Use the PLC programming software.

Don’t create a ladder program which clamps


or unclamps the jig when the door is open.

Your hands may be caught by jig.

2007/05/18 6 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual

4. PLC Ladder Program


4.1 Outline
Ladder programs to be executed by the built-in PLC are created using the PLC programming function (NC
function) or the PLC programming software (installed on an external PC).
A general ladder diagram is used for PLC programming.
After creating the ladder program, press the [Write ladder] function key to store it in the built-in PLC.
Once the ladder program is stored, it remains in the PLC even after the power is turned off, and is automatically
executed when the NC starts.
Note: Values for the counter, timer, and data register are cleared when the power is turned off.

4.2 Description of Ladder Program

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.)

4.3 Available OMs


This section describes OMs that can be used for PLC ladder programs.

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.

Address Points Contents


X: Input relay X000 ~ X03F 64 External input relay
X050 ~ X0FF 176 NC to PLC signal
Y: Output relay Y000 ~ Y03F 64 External output relay

M: Internal M000 ~ M271 272 General-purpose internal auxiliary relay


auxiliary relay M272 ~ M447 176 PLC to NC signal
D: Data register D000 ~ D055 56

T: Timer T000 ~ T095 96 Timer

C: Counter C000 ~ C023 24 Counter

2007/05/18 7 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN

1) Input relay X000 ~ X03F


Input signals from external devices
Terminal block assignment is set for [External input signal] (user parameter).

2) Input relay X050 ~ X0FF


NC to PLC signals
These signals indicate the NC's internal status.
* Refer to the Built-in PLC Manual.

3) Output relay Y000 ~ Y03F


Output signals to external devices
Terminal block assignment is set for [External output signal] (user parameter).

4) Internal auxiliary relay M000 ~ M271


General-purpose internal auxiliary relay

5) Internal relay M272 ~ M447


Signals from the PLC to NC
When the relay is turned on, signals can be output to the NC.
* Refer to the Built-in PLC Manual ⇒ 4.1 NC to PLC signals.

6) Register D000 ~ D055


General-purpose data register
There are registers where the default values when power is turned on can be set for user parameters.
Refer to the machine's Operation Manual.

7) Timer T000 ~ T095


General-purpose timer (10 ms)

8) Counter C000 ~ C023


General-purpose counter

2007/05/18 8 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual

4.4 Signal Descriptions

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)

XT PCB XT PCB XT PCB XT PCB

8 points 8 points

32 points 32 points 32 points 32 points

2007/05/18 9 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN

4.4.1 Signal descriptions


1. External input signals
Signals from input circuit of the IO PCB and EXIO PCB
These signals can generally be used for user ladder programs in the range of X000 to X03F (64 points).
Set the terminal block assignment of external signals for [External input signal] (user parameter).

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.

3. External output signals


Signals to output circuit of the IO PCB and EXIO PCB
These signals can generally be used for user ladder programs in the range from Y000 to Y03F (64 points).
Set the terminal block assignment of external signals for [External output signal] (user parameter).

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

4.4.2 Precautions for ladder programs


1) User ladder program
The following signals are input to the PLC so that these signals can be interlocked in the PLC program.
• [Start] key
• Pallet start
• Lamps (green, yellow, red)
Output the signals to the NC using these signals.
The user ladder program shown below is factory-installed. Do not delete the program even when an
interlock function is not used in the PLC. If deleted, the NC cannot start and lamps do not operate.
Correct the ON conditions to match your requirements.

[START] key M external start

M277

X096

Pallet start M pallet start

Used for QT machines.


M400

X0A0

Green lamp M green lamp

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

Red lamp M red lamp

M360
X095

2007/05/18 11 eTCOM2PLC01
PLC System Manual TC-32B/22B/S2C/31B/32BN

5. Input/ Output Information


5.1 Menu
Press the [I/O] key. The <Input/output menu> screen appears.

PLC01.bmp
Fig. 5.1 <Input/output menu> screen

2007/05/18 12 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual

Select [6. PLC], and the <PLC menu> screen appears.

PLC02.bmp

Fig. 5.2 <PLC menu> screen

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

5.2 Input/Output Information


5.2.1 <PLC (External I/O)> screen
When [1. Input/output] is selected on the PLC menu screen, the screen shown below appears.

PLC03.bmp

Fig. 5.2.1 <PLC (External I/O)> screen

<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

5.2.2 <PLC (Internal I/O)> screen


Pressing [F2] displays the screen shown below.

PLC04.bmp

Fig. 5.2.2 <PLC (Internal I/O)> screen

<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

5.2.3 <PLC (Internal relay)> screen


Pressing [F3] displays the screen shown below.

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

5.2.4 <PLC (Timer 1)> screen


Pressing [F4] displays the screen shown below.

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

5.2.5 <PLC (Timer 2)> screen


Pressing [F5] displays the screen shown below.

PLC07.bmp

Fig. 5.2.5 <PLC (Timer 2)> screen

2007/05/18 18 eTCOM2PLC01
TC-32B/22B/S2C/31B/32BN PLC System Manual

5.2.6 <PLC (Counter)> screen


Pressing [F6] displays the screen shown below.

Fig. 5.2.6 <PLC (Counter)> screen

<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

5.2.7 <PLC (Data register)> screen


Pressing [F7] displays the screen shown below.

Fig. 5.2.7 <PLC (Data register)> screen

<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

Built-in PLC Manual

For advanced personnel

2007/05/18 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN

Contents

1. OUTLINE ................................................................................................................................1

2. BUILT-IN PLC FUNCTIONS ..................................................................................................2


2.1 General Specifications.............................................................................................................................. 2
2.2 Instruction List........................................................................................................................................... 2
2.3 Object Memory (OM)................................................................................................................................ 3
2.3.1 OM list ............................................................................................................................................... 3
2.3.2 OM functions..................................................................................................................................... 3
3. INSTRUCTIONS.....................................................................................................................6
3.1 LD, LDN, AND, ANDN, OR, ORN............................................................................................................ 6
3.2 LDP, LDNP, ANDP, ANDNP, ORP, ORNP............................................................................................... 7
3.3 AND-BLK, OR-BLK .................................................................................................................................. 8
3.4 M-PUSH, M-READ, M-POP .................................................................................................................... 9
3.5 OUT ......................................................................................................................................................... 11
3.6 SET.......................................................................................................................................................... 12
3.7 RST ......................................................................................................................................................... 14
3.8 PLS, PLSN.............................................................................................................................................. 15
3.9 INC(P)...................................................................................................................................................... 16
3.10 DEC(P).................................................................................................................................................... 17
3.11 MOV(P) ................................................................................................................................................... 18
3.12 CALL(P)................................................................................................................................................... 19
3.13 RET ......................................................................................................................................................... 21
3.14 ENDS ...................................................................................................................................................... 22
3.15 END ......................................................................................................................................................... 23
3.16 =, >, >=, <, <=, <>................................................................................................................................... 24
4. EXECUTION TIMING CHART.............................................................................................25
4.1 Built-in PLC Execution Chart ................................................................................................................. 25
4.2 Timer Execution Chart............................................................................................................................ 25
5. PARAMETER .......................................................................................................................26

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

2. Built-in PLC Functions


2.1 General Specifications

Program language Ladder language


Program execution type Interpreter (conversational)
Basic instructions 24 instructions
Extended instructions 10 instructions
Program capacity 7680 steps (Note 2)
Programming functions Edit ladder programs, convert ladder programs, show
comments, debug, transfer ladder programs
Note 1) The built-in PLC function does not support writing, step ladder, and interrupt functions while it is
running.
Note 2) The number of steps differs depending on the instructions.
E.g. -| |- LD instruction -- 2 steps
Timer instruction -- 3 steps
See the table in (1) Function in Section 3 for the number of steps.

2.2 Instruction List

(1) 24 basic instructions


Contact instructions LD, LDN, AND, ANDN, OR, ORN, LDP, LDNP, ANDP,
ANDNP, ORP, ORNP
Connection instructions AND-BLK, OR-BLK, M-PUSH, M-READ, M-POP
Output instructions OUT, SET, RST, PLS, PLSN
End instructions END, ENDS

(2) 11 extended instructions


Increment / Decrement INC, DEC
instructions
Transfer instruction MOV
Comparison instructions =, >=, <=, >, <, <>
Sub-routine instructions CALL, RET

2007/05/16 2 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual

2.3 Object Memory (OM)

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.

2) Internal relay (M)


This is an auxiliary relay used internally.
Use Output (Y) when outputting the calculation result of the program to an external device.

3) Data register (D)


This stores the numerical data (-32768 - 32768 or H0000 - HFFFF).
Use 2 points when handling 32 bit data.
Once the program data is stored it is retained until the next data is stored.
The default values for D32 to D39 can be set through user parameters. These are automatically set when
power is turned on.
When the capacity of the Data Register is not sufficient, the devices below can be used instead.
Timer (T), Counter (C) not yet determined

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.

• Access by specifying bit


Add ":n" ("n" indicates the number of bits) to the end of the bit OM.
Up to 32 can be set for "n" in increments of 4 bits.
E.g.
M4:4············· Access 4 bits (M4 ~ M7) collectively.
M32:20········· Access 20 bits (M32 ~ M51) collectively.
Set the OM number by multiples of 4.

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.

(2) Available OMs


Bit Word Constant Label W or L
X Y M T C D T C Dec. Hex. L
○ ○ ○ ○ ○

(3) Rung diagram

LD

LDN

AND

ANDN

OR

ORN

2007/05/16 6 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual

3.2 LDP, LDNP, ANDP, ANDNP, ORP, ORNP

(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
○ ○ ○ ○ ○

(3) Rung diagram Expression on NC screen


LDP ↑ P

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

3.3 AND-BLK, OR-BLK

(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

(3) Rung diagram

AND-BLK

OR-BLK

2007/05/16 8 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual

3.4 M-PUSH, M-READ, M-POP

(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

(3) Rung diagram

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
○ ○ ○ ○

(3) Rung diagram

OUT(Y, M)

100 msec
OUT(T)
T0 OUT T0 10

* Input 10 when 100ms


10
OUT(C)
C0 OUT C0 10

<Difference between OUT instruction and SET instruction>


The OM turned ON by the OUT instruction turns OFF when the startup condition turns OFF.
However, the OM turned ON by the SET instruction remains ON even when the startup condition turns OFF.
It is reset by the RST instruction.

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
○ ○ ○ ○

(3) Rung diagram

SET SET M0

<Difference between OUT instruction and SET instruction>


The OM turned ON by the OUT instruction turns OFF when the startup condition turns OFF.
However, the OM turned ON by the SET instruction remains ON even when the startup condition turns
OFF. It is reset by the RST instruction.

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

Turns OFF when contact M0 turns 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
○ ○ ○ ○ ○ ○

(3) Rung diagram

RST RST M0

2007/05/16 14 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual

3.8 PLS, PLSN

(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
○ ○ ○ ○ ○ ○

(3) Rung diagram

M0
PLS
PLS M10

M1
PLSN
PLSN M11

Time chart

PLS
ON ON
M0 OFF
ON ON
M10 OFF

PLSN OFF OFF


M1 OFF
ON ON
M11 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

(1) Device (16-bit data) specified by D0 is incremented by one.


D0 D0
b15 b0 b15 b0
5678 (BIN) +1 5679 (BIN)

(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
○ ○ ○ ○ ○ ○

(3) Rung diagram

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

(1) Device (16-bit data) specified by D0 is decremented by one.


D0 D0
b15 b0 b15 b0
5678 (BIN) -1 5677 (BIN)

(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
○ ○ ○ ○ ○ ○

(3) Rung diagram

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 ○ ○ ○ ○ ○ ○

(3) Rung diagram

MOV MOV 100 D0

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

(3) Rung diagram

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

(3) Rung diagram

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

(3) Rung diagram

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.

Sub-routine program example

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

(3) Rung diagram

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

3.16 =, >, >=, <, <=, <>

(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 ○ ○ ○ ○ ○ ○ ○ ○ ○

(3) Rung diagram

= 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

4. Execution Timing Chart


4.1 Built-in PLC Execution Chart

The built-in PLC execution chart is shown below.


Time

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.

4.2 Timer Execution Chart

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.

User parameter 1 (Switch 1)


No. Item Setting range Description
0306 PLC ladder program protection 0: OFF 0: OFF
Writing of ladder program is available when it has the
1: ON
PLC programming function option.
1: ON
Prohibit to writing for PLC ladder program to protect the
program.
Once the power is turned OFF, this parameter is
automatically set to [1: ON].

User parameter 3 (Switch 3)


No. Item Setting range Description

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.

6.1 PLC to NC signals


User
program Signal name Symbol Conv. / NC Descriptions

M272 For future use


M273 For future use
M274 For future use
M275 For future use
M276 For future use
M277 External start EXSTART Common Same as external signal
M278 External stop EXSTOP Common Same as external signal
M279 For future use
M280 External reset EXRESET Common Same as external signal
M281 External optional skip OPSKIP NC Same as external signal
M282 External optional stop OPSTOP NC Same as external signal
M283 Open automatic door ATDROP Common Same as the automatic door's
[OPEN] button
The signal is valid even when door
interlock is enabled.
The door does not operate when it
is locked.
M284 Close automatic door ATDRCL Common Same as the automatic door's
[CLOSE] button
The signal is valid even when door
interlock is enabled.
The door does not operate when it
is locked.
M285 Lock front door DRLOCK Common The front door is locked when it is
closed.
M286 Lock right side door RDRLCK Common The right side door is locked when
the right and left side doors are
closed.
M287 Lock left side door LDRLCK Common The left side door is locked when
the right and left side doors are
closed.
M288 External zero point return EXORG Common Same as external signal
M289 External Z-axis zero point EXZORG Common Same as external signal
return
M290 External 1st reference EXREF NC Same as external signal
position return
M291 External 2nd reference EXREF2 NC Same as external signal
position return
M292 External 3rd reference EXREF3 NC Same as external signal
position return
M293 External 4th reference EXREF4 NC Same as external signal
position return
M294 Prevent spindle operation SPLOCK Common Same as external signal

2007/05/16 27 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN

User
program Signal name Symbol Conv. / NC Descriptions

M295 Prevent ATC operation ATCLCK Common Same as external signal


M296 Prevent XY-axes operation XYLOCK Common Same as external signal
M297 Prevent Z-axis operation ZLOCK Common Same as external signal
M298 Prevent 4th-axis operation 4LOCK Common Same as external signal
M299 Prevent 5th-axis operation 5LOCK Common Same as external signal
M300 Prevent 6th-axis operation 6LOCK Common Same as external signal
M301 Prevent 7th-axis operation 7LOCK Common Same as external signal
M302 Prevent 8th-axis operation 8LOCK Common Same as external signal
M303 Prevent mode change MDLOCK Common Same as external signal
M304 Select external program PRO1 Common Same as external signal
M305 Select external program PRO2 Common Same as external signal
M306 Select external program PRO4 Common Same as external signal
M307 Select external program PRO8 Common Same as external signal
M308 Select external program PRO16 Common Same as external signal
M309 Select external program PRO32 Common Same as external signal
M310 Select external program PRO64 Common Same as external signal
M311 Select external program PRO9900 Common Same as external signal
M312 External zero point return 2 EXORG2 Conversation Same as external signal
M313 External zero point return 3 EXORG3 Conversation Same as external signal
M314 For future use
M315 For future use
M316 FA output 12 FAO12 Common
M317 FA output 13 FAO13 Common
M318 FA output 14 FAO14 Common
M319 FA output 15 FAO15 Common
M320 FA output 0 FAO0 Common
M321 FA output 1 FAO1 Common
M322 FA output 2 FAO2 Common
M323 FA output 3 FAO3 Common
M324 FA output 4 FAO4 Common
M325 FA output 5 FAO5 Common
M326 FA output 6 FAO6 Common
M327 FA output 7 FAO7 Common
M328 Coolant switch OFF CLSWOF Common Turns OFF the [CLT.P] (coolant
pump) key on the operation panel.
M329 Coolant switch ON CLSWON Common Turns ON the [CLT.P] (coolant
pump) key on the operation panel.
M330 Chip flow switch OFF CPSWOF Common Turns OFF the [CHP.F] (chip
flow) key on the operation panel.
M331 Chip flow switch OFF CPSWON Common Turns ON the [CHP.F] (chip flow)
key on the operation panel.
M332 FA output 8 FAO8 Common
M333 FA output 9 FAO9 Common
M334 FA output 10 FAO10 Common

2007/05/16 28 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual

User
program Signal name Symbol Conv. / NC Descriptions

M335 FA output 11 FAO11 Common


M336 External error EXER10 Common Same as external signal
M337 External error EXER11 Common Same as external signal
M338 External error EXER12 Common Same as external signal
M339 External error EXER13 Common Same as external signal
M340 External error EXER14 Common Same as external signal
M341 External error EXER15 Common Same as external signal
M342 External error EXER16 Common Same as external signal
M343 External error EXER17 Common Same as external signal
M344 External error EXER18 Common Same as external signal
M345 External error EXER19 Common Same as external signal
M346 External error EXER20 Common Same as external signal
M347 External error EXER21 Common Same as external signal
M348 External error EXER22 Common Same as external signal
M349 External error EXER23 Common Same as external signal
M350 External error EXER24 Common Same as external signal
M351 External error EXER25 Common Same as external signal
M352 M function completion MFIN Common Same as external signal
M353 Wait M460 Common Same as external signal
M354 Wait M462 Common Same as external signal
M355 Wait M464 Common Same as external signal
M356 Wait M466 Common Same as external signal
M357 Wait M468 Common Same as external signal
M358 Green lamp PLCGRN Common Turns on the green lamp of the
signal tower (optional).
M359 Yellow lamp PLCYEL Common Turns on the yellow lamp of the
signal tower (optional).
M360 Red lamp PLCRED Common Turns on the red amp of the signal
tower (optional).
M361 For future use
M362 For future use
M363 For future use
M364 For future use
M365 For future use
M366 For future use
M367 For future use
M368 Macro variables #1000 NC Same as external signal
M369 Macro variables #1001 NC Same as external signal
M370 Macro variables #1002 NC Same as external signal
M371 Macro variables #1003 NC Same as external signal
M372 Macro variables #1004 NC Same as external signal
M373 Macro variables #1005 NC Same as external signal
M374 Macro variables #1006 NC Same as external signal
M375 Macro variables #1007 NC Same as external signal

2007/05/16 29 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN

User
program Signal name Symbol Conv. / NC Descriptions

M376 Macro variables #1008 NC Same as external signal


M377 Macro variables #1009 NC Same as external signal
M378 Macro variables #1010 NC Same as external signal
M379 Macro variables #1011 NC Same as external signal
M380 Macro variables #1012 NC Same as external signal
M381 Macro variables #1013 NC Same as external signal
M382 Macro variables #1014 NC Same as external signal
M383 Macro variables #1015 NC Same as external signal
M384 For future use
M385 Permit editing maintenance MTEDOK Common Same as external signal
notice
M386 Permit editing cutting CTEDOK Conversation Same as external signal
conditions
M387 Permit editing tapping drill THEDOK Conversation Same as external signal
diameter
M388 Permit editing tool pattern TPEDOK Conversation Same as external signal
M389 Offset external workpiece EXWORK NC Same as external signal
coordinate zero point
M390 Permit editing tool data TLEDOK Common Same as external signal
M391 Permit editing workpiece WPEDOK NC Same as external signal
coordinate zero point
M392 Permit editing macro data MCEDOK NC Same as external signal
M393 Permit editing user UPEDOK Common Same as external signal
parameter
M394 Permit editing machine MPEDOK Common Same as external signal
parameter
M395 Permit editing workpiece WCEDOK Common Same as external signal
counter
M396 Permit editing magazine tool MGEDOK Common Same as external signal
M397 Prevent editing program PRLOCK Common Same as external signal
M398 Prevent editing EDLOCK Common Same as external signal
M399 For future use
M400 External start OUTSTA Common Same as external signal
M401 For future use
M402 Index outer pallet CTURN Common Same as external signal
M403 Positive index external OUTAP Common Same as external signal
A-axis
M404 Negative index external OUTAM Common Same as external signal
A-axis
M405 Positive index external OUTBP Common Same as external signal
B-axis
M406 Negative index external OUTBM Common Same as external signal
B-axis
M407 Prohibit to index external OUTLCK Common Same as external signal
additional axis
You changed Prohibit to
Prevent for most items.

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

6.2 NC to PLC signals


User Signal name Symbol Conv. / NC Descriptions
program
X050 Manual mode MANU Common Turns ON in manual mode.
X051 MDI mode MDI Common Turns ON in MDI mode.
X052 Memory operation mode MEMMOD Common Same as external signal
X053 Edit mode EDIT Common Turns ON in edit mode.
X054 During manual operation MANSTL Common Turns ON while the axis is
operating in manual mode.
X055 Reset output RSTOUT Common Same as external signal
X056 Latch M output MF Common Same as external signal
X057 Signal output M11 Common When M8∗∗ signals (801 ~ 899)
X058 Signal output M12 Common are executed in the NC program,
M signals are output to the PLC.
X059 Signal output M14 Common
X05A Signal output M18 Common
X05B Signal output M21 Common
X05C Signal output M22 Common
X05D Signal output M24 Common
X05E Signal output M28 Common
X05F For future use
X060 Program stop M00 Common Same as external signal
X061 Coolant ON M08 Common Same as external signal
X062 Chip flow ON M400 Common Same as external signal
X063 Signal output M402 Common Same as external signal
X064 Signal output M404 Common Same as external signal
X065 Signal output M406 Common Same as external signal
X066 Oil hole ON M408 Common Same as external signal
X067 One shot output M450 Common Same as external signal
X068 One shot output M451 Common Same as external signal
X069 One shot output M455 Common Same as external signal
X06A One shot output M456 Common Same as external signal
X06B Signal output M480 Common Same as external signal
X06C Signal output M482 Common Same as external signal
X06D Signal output M484 Common Same as external signal
X06E Signal output M486 Common Same as external signal
X06F Jig shower Common Same as external signal
X070 Program end M30(/1) Common Same as external signal
X071 Program end 2 M30/2 Common Same as external signal
X072 Production counter end CNTUP Common Same as external signal
X073 Signal production counter CNTPRE Common Same as external signal
end
X074 Signal tool life end TOLPRE Common Same as external signal
X075 Tool breakage error TLBRKE Common Same as external signal
X076 Maintenance request MNTALM Common Same as external signal

2007/05/16 32 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual

User Signal name Symbol Conv. / NC Descriptions


program
X077 During spindle rotation SPTURN Common Same as external signal
X078 During automatic operation AUTO Common Same as external signal
X079 Starting automatic operation STL Common Same as external signal
X07A Ready for memory MEMOK Common Same as external signal
operation
X07B NC preparation completed NCOK Common Same as external signal
X07C Zero return completed ORGFIN Common Same as external signal
X07D For future use
X07E Tool error output TOOL Common Same as external signal
X07F For future use
X080 Zero point output ZPX Common Same as external signal
X081 Zero point output ZPY Common Same as external signal
X082 Zero point output ZPZ Common Same as external signal
X083 Zero point output ZPSP Common Same as external signal
X084 Zero point output ZP4 Common Same as external signal
X085 Zero point output ZP5 Common Same as external signal
X086 Zero point output ZP6 Common Same as external signal
X087 Zero point output ZP7 Common Same as external signal
X088 Zero point output ZP8 Common Same as external signal
X089 Restart RESTAT Common Same as external signal
X08A [RELSE] key held down RELESE Common Same as external signal
X08B Dry run DRYRUN Common Same as external signal
X08C Single operation SINGL Common Same as external signal
X08D Alarm output 2 ALM2 Common Same as external signal
X08E Indexing outer A-axis OUTAON Common Same as external signal
X08F Indexing outer B-axis OUTBON Common Same as external signal
X090 Rapid traverse override RPD100 Common Same as external signal
X091 Spindle override SPN100 Common Same as external signal
X092 Cutting feedrate override FED100 Common Same as external signal
X093 Green lamp GRN Common Same as external signal
Use this signal to control the M358
green lamp.
X094 Yellow lamp YEL Common Same as external signal
Use this signal to control the M359
yellow lamp.
X095 Red lamp RED Common Same as external signal
Use this signal to control the M360
red lamp.
X096 [START] key STA Common Signal for the [START] key on the
operation panel.
Use this signal to control the M277
external start.
X097 [FEED HOLD] key STPOUT Common Same as external signal
X098 During stop STPLED Common Same as external signal
X099 FA input 13 FAI13 Common

2007/05/16 33 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN

User Signal name Symbol Conv. / NC Descriptions


program
X09A Extension memory running EXPRUN NC Same as external signal
X09B Alarm output ALM Common Same as external signal
X09C Alarm level ALMLV1 Common Same as external signal
X09D Alarm level ALMLV2 Common Same as external signal
X09E Battery alarm BATALM Common Same as external signal
X09F Operation stop error RUNSTP Common Same as external signal
X0A0 [PALLET START] output QTSTART Common Signal for the [PALLET START]
key on the operation panel.
Use this signal to control the M400
pallet start.
X0A1 [PALLET START] LED RDYLED Common Same as external signal
X0A2 Pallet index completed PFIN1 Common Same as external signal
X0A3 Pallet index completed PFIN2 Common Same as external signal
X0A4 [PALLET] switch QTSEL1 Common Same as external signal
X0A5 [PALLET] switch QTSEL2 Common Same as external signal
X0A6 FA input 14 FAI14 Common
X0A7 Door (outer) open limit DROPN Common Same as external signal
X0A8 Door (outer) close limit DRCLS Common Same as external signal
X0A9 Inner door close limit INDRCL Common Same as external signal
X0AA FA input 15 FAI15 Common
X0AB Side door close limit SDDRCL Common Same as external signal
X0AC Left door locked DLK0N/L Common The left door is locked.
X0AD Right door locked DLKON/R Common The right door is locked.
X0AE Front door locked DLKON/F Common The front door is locked.
X0AF Door interlock enabled SAFETY Common Same as external signal
X0B0 FA input 0 FAI0 Common
X0B1 FA input 1 FAI1 Common
X0B2 FA input 2 FAI2 Common
X0B3 FA input 3 FAI3 Common
X0B4 FA input 4 FAI4 Common
X0B5 FA input 5 FAI5 Common
X0B6 FA input 6 FAI6 Common
X0B7 FA input 7 FAI7 Common
X0B8 FA input 8 FAI8 Common
X0B9 FA input 9 FAI9 Common
X0BA FA input 10 FAI10 Common
X0BB FA input 11 FAI11 Common
X0BC FA input 12 FAI12 Common
X0BD Manual pulse generator OFF PULOFF Common Same as external signal
X0BE Coolant switch COOLSW Common Same as external signal
X0BF Chip flow switch CHIPSW Common Same as external signal
X0C0 1st reference point return REFFIN NC Same as external signal
completed

2007/05/16 34 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN Built-in PLC Manual

User Signal name Symbol Conv. / NC Descriptions


program
X0C1 2nd reference point return REFFIN2 NC Same as external signal
completed
X0C2 3rd reference point return REFFIN3 NC Same as external signal
completed
X0C3 4th reference point return REFFIN4 NC Same as external signal
completed
X0C4 2nd zero point return ORGFIN2 Conversation Same as external signal
completed
X0C5 3rd zero point return ORGFIN3 Conversation Same as external signal
completed
X0C6 X-axis position signal XPOSSW Common Same as external signal
X0C7 Y-axis position signal YPOSSW Common Same as external signal
X0C8 Z-axis position signal ZPOSSW Common Same as external signal
X0C9 4th-axis position signal 4POSSW Common Same as external signal
X0CA 5th-axis position signal 5POSSW Common Same as external signal
X0CB 6th-axis position signal 6POSSW Common Same as external signal
X0CC 7th-axis position signal 7POSSW Common Same as external signal
X0CD 8th-axis position signal 8POSSW Common Same as external signal
X0CE For future use
X0CF For future use
X0D0 Macro variables #1100 NC Same as external signal
X0D1 Macro variables #1101 NC Same as external signal
X0D2 Macro variables #1102 NC Same as external signal
X0D3 Macro variables #1103 NC Same as external signal
X0D4 Macro variables #1104 NC Same as external signal
X0D5 Macro variables #1105 NC Same as external signal
X0D6 Macro variables #1106 NC Same as external signal
X0D7 Macro variables #1107 NC Same as external signal
X0D8 Macro variables #1108 NC Same as external signal
X0D9 Macro variables #1109 NC Same as external signal
X0DA Macro variables #1110 NC Same as external signal
X0DB Macro variables #1111 NC Same as external signal
X0DC Macro variables #1112 NC Same as external signal
X0DD Macro variables #1113 NC Same as external signal
X0DE Macro variables #1114 NC Same as external signal
X0DF Macro variables #1115 NC Same as external signal
X0E0 For future use
~
X0FF For future use

2007/05/16 35 eTCOM2PLC02
Built-in PLC Manual TC-32B/22B/S2C/31B/32BN

(This page is blank.)

2007/05/16 36 eTCOM2PLC02
TC-32B/22B/S2C/31B/32BN PLC Programming Manual

PLC Programming Manual

For advanced personnel

2007/05/18 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN

Contents

1. Outline 1

2 Starting PLC Programming Function 2

2.1 Input/output menu ............................................................................................... 2


2.2 PLC menu............................................................................................................ 3

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

4.1 Search By Step.................................................................................................. 10


4.2 Search By OM ................................................................................................... 11
4.3 Search By Instruction ........................................................................................ 11

5 Edit 12

5.1 Symbol Input...................................................................................................... 12


5.2 Multiple-bit Access of Bit OM ............................................................................ 13
5.3 32-bit Access of Word OM................................................................................ 14
5.4 Insert / Overwrite Mode..................................................................................... 14
5.5 Inserting/Deleting Row...................................................................................... 15
5.6 Deleting Symbol ................................................................................................ 16
5.7 Undo................................................................................................................... 16
5.8 Conversion......................................................................................................... 17

6 Display 18

6.1 Writing Ladder Program.................................................................................... 18


6.2 Reading Ladder Program ................................................................................. 18
6.3 Creating New Ladder Program......................................................................... 18

2007/05/18 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual

7 Showing and Editing Comments 19

7.1 Outline................................................................................................................ 19
7.2 Changing Between Show/Hide Comments..................................................... 19
7.3 Editing Comments............................................................................................. 20

8 Monitor 21

8.1 Monitoring Ladder Program.............................................................................. 21


8.2 Setting / Resetting ............................................................................................. 22
8.3 Changing Current Value.................................................................................... 23
8.4 Executing and Stopping built-in PLC................................................................ 24

2007/05/18 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN

(This page is blank.)

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.

Don’t create a ladder program which clamps


or unclamps the jig when the door is open.

Your hands may be caught by the jig.

2007/03/12 1 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN

2 Starting PLC Programming Function


2.1 Input/output menu

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

Servo External Machine


Input/output Soft switch PLC
controller I/O signal diagnosis

Select [6. PLC].

2007/03/12 2 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual

2.2 PLC menu

The PLC menu screen appears.

PLC

Menu
1. Input/output
2. PLC

I/O menu Input/output 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.

PLC edit and monitor

Ladder program is
automatically read.

Edit ladder program.

Write ladder program.

End

2007/03/12 4 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual

3.2 PLC Edit Screen Configuration

Title area
PLC view mode

X000
Y000

M0

X001
INC D0

Main area

Teaching area

Function key area


Message area

1234/7680

Monitor Write Search Search Show


Menu Edit mode Search
mode ladder forward backward comments

Fig. 3.2 PLC view screen

(1) Title area


Displays the current mode ([PLC view mode], [PLC edit mode], or [PLC monitor mode]).

(2) Teaching area


Displays operation errors, syntax errors, or operation guidance.
The following is displayed at the right end of the teaching area.
• View or Edit mode
Current mode (Overwrite or Insert), number of steps currently used / Total number of steps
• Monitor mode
PLC status ([PLC running] or [PLC stopped] is displayed above the step information.)

(3) Main area


Displays the ladder program and the cursor (highlighted rectangle).

2007/03/12 5 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN

(4) Message area


Displays error messages, such as a communication error.

(5) Function key area


Displays the function names assigned to the function keys. When the function name does not fit in the
designated area, an abbreviation may be used.
Refer to Section 3.3 for function key assignment.

2007/03/12 6 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual

3.3 Key Assignment

This section shows the key assignment in each mode.


(1) View mode
• Function key
Key F0 F1 F2 F3 F4 F5 F6 F7
Search Search Show
① Menu Edit mode Monitor mode Write ladder Search
forward backward comments
② Menu New Read ladder

③ Menu : > <

• Operation key
Key I/O Reset Set Insert Delete Cancel
Initialize
Normal Enter Clear
screen
Shift

Key A-Z Numeric Cursor ↑↓


Instruction/OM/ Cursor
Normal Page key
Input comment movement
Instruction/OM/
Shift Draw line
Input comment

(2) Edit mode


• Function key
Key F0 F1 F2 F3 F4 F5 F6 F7
Delete
① View mode --| |-- +-| |-+ --( )-- --[ ]-- Undo Convert
vertical line
② --|/|-- +-|/|-+ --|P|-- --|N|-- Edit Comment Copy a rung Paste a rung

③ : > <

• Operation key
Key I/O Reset Set Insert Delete Cancel
Initialize Insert /
Normal Enter Delete symbol Esc
screen overwrite
Shift Insert row Delete row

Key A-Z Numeric Cursor ↑↓


Instruction/OM/ Cursor
Normal Page key
Input comment movement
Instruction/OM/
Shift Draw line
Input comment

2007/03/12 7 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN

(3) Monitor mode


Key F0 F1 F2 F3 F4 F5 F6 F7
Search Search Show
① View mode Edit mode Search
forward backward comments
Change the
② SET/RESET Execute Stop
current value
③ : > <

Key I/O Reset Set Insert Delete Cancel


Initialize
Normal Test Clear
screen
Shift

Key A-Z Numeric Cursor ↑↓


Cursor
Normal Search Search Page key
movement
Shift Search Search

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

3.4 Mode Transition

Fig. 3.4 shows the screen transition of the PLC programming function.

PLC menu Removal check

Conversion check
Select menu F0

View mode

F2
F0
F1 F0

F1
Edit mode Monitor mode

Fig. 3.4 Mode transition chart

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

4.1 Search By Step

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

Monitor Write Search Search Show


Menu Edit mode Search
mode ladder forward backward comments

Fig. 4.1 Search screen

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).

4.3 Search By Instruction

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.

Function keys Meanings


F1 (-||-) Normally open
F2 (+-||-+) Normally open (OR)
F3 (-( )-) Coil
F4 (-[ ]-) Data instruction,
Compare instruction
F1 (-|/|-) Normally closed
F2 (+-|/|-+) Normally closed (OR)
F3 (-|P|-) Series positive edge contact
F4 (-|N|-) Series negative edge contact

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).

PLC view mode


X000
Y000

M0

X001
INC D0

--│ │--

Delete
View mode --| |-- +-| |-+ --( )-- -[ ]- Undo Convert
vertical line

Fig. 5.1 Symbol input screen

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.

5.2 Multiple-bit Access of Bit OM

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.

(2) Bit specifying access


Add ":n" ("n" indicates the number of bits) to the end of the bit OM.
Up to 32 can be set for "n" in increments of 4 bits.
E.g.
M4:4············· Access 4 bits (M4 ~ M7) collectively.
M32:20········· Access 20 bits (M32 ~ M51) collectively.
Notes:
• Set 4 (multiple number) to the OM number when performing multiple-bit access.
• When the bit OM is not within the range specified by multiple-bit access, an input error occurs.
• When 32 bit is specified as a constant, "L" is added to the last digit (E.g. When constant 40000 is entered,
40000L is displayed).

2007/03/12 13 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN

5.3 32-bit Access of Word OM

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.

5.4 Insert / Overwrite Mode

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

Fig. 5.4 Insert / Overwrite mode

2007/03/12 14 eTCOM2PLC03
TC-32B/22B/S2C/31B/32BN PLC Programming Manual

5.5 Inserting/Deleting Row

To insert a blank row, press [Shift] and [Insert].


When inserted to a row where a vertical line exists, the vertical line is added.

One row insertion

Fig. 5.5 One row insertion

To delete the row, press [Shift] and [Delete].


When you press [F6] (Copy a rung), the row specified by the cursor is stored in the buffer. By pressing [F7]
(Paste a rung) you can paste the data in the buffer as many times as you want.

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

5.6 Deleting Symbol

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

Fig. 5.6 Symbol deletion

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.

6.2 Reading Ladder Program

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.

6.3 Creating New Ladder Program

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

7 Showing and Editing Comments


7.1 Outline

Show comments/Hide comments can be changed in edit mode or monitor mode.


Comments can also be edited in edit mode.
There are three types of comments:
• OM comment Comments corresponding to each OM. Up to 16 characters (8 full size
characters) can be used. When simply "comment" is referred to, it means
this comment.
• Inline comment Comments corresponding to each rung. Max. 64 characters (32 full size
characters) can be used for one comment, and a comment can be assigned to
up to 64 rungs.
• Label comment Comments corresponding to the label (L0 to 7). Up to 32 characters (16 full
size characters) can be used for one label.

Notes:
• Coil remark function is not available.
• Two kinds of comments (OM comment or label comment) can be attached to a label.

7.2 Changing Between Show/Hide Comments

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

Monitor Write Search Search Hide


Menu Edit mode Search
mode ladder forward backward comments

Figure 7.2 Show comments image


2007/03/12 19 eTCOM2PLC03
PLC Programming Manual TC-32B/22B/S2C/31B/32BN

7.3 Editing Comments

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)

PLC view mode

X000
Y000

M0

X001
INC D0

Comment xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Edit Copy a Paste a


--|/|-- +-|/|-+ --|P|-- --|N|--
Comment rung rung

Fig. 7.3 Edit comment image

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

Note: Normally closed is conductive when X000 is off.

(2) Coil
The inside of the symbol is filled with blue, indicating that it is conductive.

Y000 Y000 is off

Y000 Y000 is on

For a timer or counter, the current value is displayed below the symbol.

T0

100

(3) Data instruction / compare instruction


The current value is displayed below each OM.

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

8.2 Setting / Resetting

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.

PLC monitor mode

X000
Y000

M0

X001
INC D0

M0 1

Change the
SET/RESET Execute Stop
current value

Fig. 8.2 Setting and resetting screen

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

8.3 Changing Current Value

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.

PLC monitor mode

X000
Y000

M0

X001
INC D0
0

Change the
SET/RESET Execute Stop
current value

Fig. 8.3 Current value change screen

Operations for bit OMs are invalid.

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

8.4 Executing and Stopping built-in PLC

PLC programming function can start or stop the built-in PLC.


When [F4] (Execute) is pressed in monitor mode, "Start PLC operation?" is displayed. Press [F0] (Yes) to start
the PLC and [F1] (No) to cancel operation.
When [F5] (Stop) is pressed in monitor mode, the message "Stop PLC?" is displayed. Press [F0] (Yes) to stop
the PLC and [F1] (No) to cancel operation.

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

PLC Programming Software

For advanced personnel

2007/05/18 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

End-User License Agreement for Brother Software


IMPORTANT- PLEASE READ CAREFULLY:

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.

Terms and Conditions.

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. Exclusion and Limitation of Liability.

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

6. Term and Termination


This Agreement will become effective upon your acceptance and shall continue in effect unless you transfer the
SOFTWARE in accordance with the EULA and the transferee undertakes to Brother to be bound by this EULA
with respect to the SOFTWARE.
However, Brother may terminate this EULA without notice if you breach any of its provisions.

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.

10. Third Party Rights.


The provisions of this EULA are intended only to have effect between Brother and yourself and are not intended
to confer any benefit or right of enforcement upon any other person.

11. Personal License.


The rights granted by Brother hereunder are personal to you and you shall not be permitted to assign, transfer,
novate or otherwise make over to any third party the Software (or the Documentation) or the benefit or burden of
this EULA or any of the rights granted hereunder other than as expressly permitted by Section 3.

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

5.1 Edit Mode..........................................................................................................................3


5.1.1 Function keys.......................................................................................................3
5.1.2 Overwrite mode ...................................................................................................5
5.1.3 Insert mode...........................................................................................................5
5.2 Monitor Mode...................................................................................................................5
5.2.1 Function keys.......................................................................................................5
5.2.2 Step order .............................................................................................................7
5.2.3 Find order.............................................................................................................7

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

6.2.3 Copy (shortcut: Ctrl + C).................................................................................. 16


6.2.4 Paste (shortcut: Ctrl + V).................................................................................. 18
6.2.5 Select all (shortcut: Ctrl + A)............................................................................ 19
6.2.6 Cut a line (shortcut: Shift + Delete) ................................................................. 19
6.2.7 Insert a line (shortcut: Shift + Insert) ............................................................... 19
6.2.8 Copy a line (shortcut: Ctrl + L)........................................................................ 19
6.2.9 Paste a line (shortcut: Ctrl + B)........................................................................ 19
6.2.10 Jump (shortcut: Ctrl + J) .................................................................................. 20
6.2.11 Find and Jump ................................................................................................. 21
6.2.12 Find and extract................................................................................................ 25
6.2.13 Replace.............................................................................................................. 34
6.2.14 Documentation ................................................................................................. 36
6.2.15 Lock editing...................................................................................................... 41
6.3 View................................................................................................................................ 42
6.3.1 Tool bar.............................................................................................................. 42
6.3.2 Function key tool bar........................................................................................ 43
6.3.3 Status bar........................................................................................................... 43
6.3.4 Display .............................................................................................................. 43
6.3.5 Save monitor setting ......................................................................................... 44
6.4 Convert........................................................................................................................... 45
6.5 Online ............................................................................................................................. 46
6.5.1 Start monitoring (shortcut: F2 in edit mode) ................................................... 46
6.5.2 Download program (shortcut: Shift + Ctrl + F9) ............................................ 47
6.5.3 [Upload program] ............................................................................................. 48
6.5.4 [Save monitor setting] ...................................................................................... 49
6.5.5 RUN/STOP (shortcut: Shift + F7) ................................................................... 50
6.5.6 OM SET/RESET (shortcut: F9)....................................................................... 51
6.5.7 Force value (shortcut: Shift + F9) .................................................................... 52
6.5.8 Clear all OM (shortcut: Ctrl + F9) ................................................................... 53
6.5.9 Debug ................................................................................................................ 53
6.5.10 Trigger............................................................................................................... 57
6.5.11 Communication setting .................................................................................... 57
6.5.12 Built-in PLC associated errors......................................................................... 58
6.5.13 Batch monitor................................................................................................... 59
6.6 Tool................................................................................................................................. 68
6.6.1 Test..................................................................................................................... 68
6.7 Option............................................................................................................................. 68
6.7.1 Parameter setting............................................................................................... 68
6.7.2 Conversion setting ............................................................................................ 69
6.7.3 System setting ................................................................................................... 69
6.8 Window .......................................................................................................................... 72
6.8.1 New window..................................................................................................... 72
6.8.2 Cascade ............................................................................................................. 72
6.8.3 Tile horizontally................................................................................................ 73
6.8.4 Tile vertically .................................................................................................... 73
6.8.5 Arrange icons.................................................................................................... 74

2007/05/18 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

6.8.6 Close all............................................................................................................. 74


6.9 Help ................................................................................................................................ 74
6.9.1 Find in Help... ................................................................................................... 74
6.9.2 How to use help... ............................................................................................. 74
6.9.3 About................................................................................................................. 74

7 View 75

7.1 Edit Mode....................................................................................................................... 75


7.2 Monitor Mode................................................................................................................ 76

8 Editing Ladder Program 77

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

(This page is blank.)

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.

2) Open the Japanese or English folder containing the corresponding installer.


Japanese : WinPLC(J)
English : WinPLC(E)

3) Double-click the [SET UP] icon.

4) Follow the instructions displayed on the screen until installation is completed.

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)

PLC programming software

This manual describes this software.

Ethernet

NC

NC screen PLC programming function

Built-in PLC

Built-in PLC function

External input/output unit

24V power supply


(prepared by user) EXIO 1 PCB EXIO 2 PCB
32 points / 32 points 32 pints / 32 points

Connection cable

XT PCB XT PCB XT PCB XT PCB

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.

5.1 Edit Mode

The following operations can be performed in edit mode.


(1) Edit PLC ladder programs
(2) Display or edit comments or coil remarks.
(3) Find specified instructions or OMs
Edit mode is entered when [New] (create a new project) or [Open] (open an existing project) is selected.
Press the [F2] key in monitor mode to change to edit mode.

5.1.1 Function keys


Function keys below can be used in edit mode.

Normal (When the [Shift] or [Ctrl] key is not pressed)

When the [Shift] key is pressed

When the [Ctrl] key is pressed

When the [Shift] and [Ctrl] keys are pressed

2007/05/16 3 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

Function keys and tool bar menu commands (edit mode)

Keys Too bar menu commands Descriptions


F1 Displays a help message.
F2 [Online] - [Start monitoring] Changes to monitor mode.
F3 Searches forward.
F4 [Convert] - [Convert] Converts the data.
F5 [Edit] - [Instructions] - [Normally open Enters LD or AND instructions.
contact]
F6 [Edit] - [Instructions] - [Normally open Enters OR instructions.
contact(Open branch)]
F7 [Edit] - [Instructions] - [Output coil] Enters OUT instructions.
F8 [Edit] - [Instructions] - [Extended Enters extended instructions.
instructions]
F10 Selects a menu (Alt).
F11 [Edit] - [Lock editing] Locks editing.
Shift + F1 [Edit] - [Find] - [Timer/Counter list] Opens the <Timer/Counter list> dialog.
Shift + F2 [Edit] - [Find] - [Contact/Coil list] Opens the <Contact/Output coil list>
dialog.
Shift + F3 Searches backward.
Shift + F4 [Edit] - [Find] - [Used OM list] Opens the <Used OM list> dialog.
Shift + F5 [Edit] - [Instructions] - [Normally Enters LND or ANDN instructions.
closed contact]
Shift + F6 [Edit] - [Instructions] - [Normally Enters ORN instructions.
closed contact (Open branch)]
Shift + F7 [Edit] - [Instructions] - [Positive edge Enters LDP or ANDP instructions.
detection]
Shift + F8 [Edit] - [Instructions] - [Negative edge Enters LDNP or ANDNP instructions.
detection]
Shift + F9 [Edit] - [Documentation] - [Create OM Creates OM comments.
comment]
Shift + F10 Selects an application menu.
Ctrl + F1 Deletes a rung block.
Ctrl + F2 Increments the OM number.
Ctrl + F3 Decrements the OM number.
Ctrl + F4 Closes the window.
Ctrl + F5 [View] - [Display] - [Display with OM Changes to the display with OM
comment] comments.
Ctrl + F6 Changes the window.
Ctrl + F7 [View] - [Display] - [Display with inline Changes to the display with inline
comment] comments.
Ctrl + F8 [View] - [Display] - [Display with coil Changes to the display with coil
remark(N)] remarks.
Ctrl + F9 Deletes a vertical line.
Ctrl + F10 Copies a rung.
Shift + Ctrl + F1
Shift + Ctrl + F2 [Edit] - [Find] - [Find by OM (All)] Searches for all specified OMs.

2007/05/16 4 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

Keys Too bar menu commands Descriptions


Shift + Ctrl + F3 [Edit] - [Find] - [Find by OM (Coil)] Searches for OMs by coil.
Shift + Ctrl + F4 Closes the window.
Shift + Ctrl + F5 [Edit] - [Documentation] - [Create OM Creates an OM comment.
comment]
Shift + Ctrl + F6 Changes the window (reverse order)
Shift + Ctrl + F7 [Edit] - [Documentation] - [inline Creates an inline comment.
comment]
Shift + Ctrl + F8 [Edit] - [Documentation] - [Coil remark] Creates a coil remark.
Shift + Ctrl + F9 [Online] - [Download program] Downloads the program to the built-in
PLC.
Shift + Ctrl + F10 Selects an application menu.

Shaded lines indicate standard Windows shortcut keys.

5.1.2 Overwrite mode


Pressing the [Insert] key in insert mode changes the mode to overwrite mode.
The instruction or the ladder program specified by the cursor is overwritten with the designated instruction
or ladder program.
Overwrite mode is automatically entered when [New] or [Open] is selected.

5.1.3 Insert mode


Pressing the [Insert] key in overwrite mode changes the mode to insert mode.
The designated instruction or ladder program is inserted at the position specified by the cursor.

5.2 Monitor Mode

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.

5.2.1 Function keys


The function keys below can be used in monitor mode.

When the [Shift] key is pressed

When the [Ctrl] key is pressed

2007/05/16 5 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

Function keys and tool bar menu commands (monitor mode)

Keys Tool bar menu commands Descriptions


F1 Displays a help message.
F2 Changes to edit mode.
F3 Searches forward.
F4
F5 [Online] - [Batch monitor]
F6 [Online] - [Save monitor setting] - Registers the OM directly in the monitor
[Select in editor] list.
F7 [Edit] - [Find] - [Find by OM (All)] Searches for all specified OMs.
F8 [Edit] - [Find] - [Find by OM (Output Searches for OMs by coil.
coil)]
F9 [Online] - [OM SET/RST] Changes the mode between SET and
RESET.
F10 Selects a menu.
F11
Shift + F1
Shift + F2 [Edit] - [Find] - [Contact/Coil list] Opens the <Contact/Output coil list>
dialog.
Shift + F3 Searches backward.
Shift + F4 [Edit] - [Find] - [Used OM list] Opens the <Used OM list> dialog.
Shift + F5
Shift + F6 [Online] - [Save monitor setting] - Clears all OMs registered in the monitor
[Clear all entries] list.
Shift + F7 [Online] - [Change RUN/STOP mode] Changes the mode between RUN and
STOP.
Shift + F8 [View] - [Display] - [Change radix in Changes the radix used for monitoring.
monitor]
Shift + F9 [Online] - [Force value] Changes the current value.
Shift + F10 Selects a menu.
Ctrl + F1
Ctrl + F2 Resumes monitoring.
Ctrl + F3
Ctrl + F4 Finishes operation.
Ctrl + F5 [View] - [Display] - [Display with OM Changes to the display with OM
comment] comments.
Ctrl + F6 Changes the window.
Ctrl + F7 Uses the trigger function (positive edge)
Ctrl + F8 Uses the trigger function (negative
edge)
Ctrl + F9 [Online] - [Clear all OM] Clears all OMs.
Ctrl + F10 Selects a menu.

2007/05/16 6 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

5.2.2 Step order


Ladder programs are displayed in the order of the step number (step order).
Press the [Esc] key in find order mode or select [View] ⇒ [Display] ⇒ [Step order], and the programs are
displayed in step order.
This mode is automatically entered when [New] or [Open] is selected.

5.2.3 Find order


Ladder programs are displayed in the order they are found (find order).
Press the [Shift] and [Home] keys in step order mode or select [View] ⇒ [Display] ⇒ [Find order], and the
programs are displayed in find order. Programs are also displayed in find order when the [Find] key is
clicked.
When any edit keys ([Edit Instruction], [Draw line], [Delete line], [Cut a line], [Insert a line], [Paste], [Cut],
or [Undo]) are used to edit a ladder program, the programs displayed in find order are cleared.

2007/05/16 7 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

6 Functions
6.1 Project

6.1.1 New (shortcut: Ctrl + N)


This command creates a new project.
The name of the new project is "LadderN." ("N" indicates a sequential number starting from 1.)
When a new project is created, edit mode is entered and ladder programs are displayed in step order.

6.1.2 Open (shortcut: Ctrl + O)


This command opens an existing project for editing.
When [Open] is selected, the <Open project> dialog appears.
Up to four projects in different models can be opened simultaneously.
Clicking [Browse...] allows you to select a folder.
Edit mode is entered when the project is opened.
The last four projects opened are displayed in the project list box.

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.4 Save (shortcut: Ctrl + S)


This command saves the project currently open.
When there are any rungs that have not been converted, the dialog shown below appears.

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

6.1.6 Program check


This command checks the project currently edited with the specified project.
When this command is executed, the <Opening the project> dialog appears.

When the project is selected, the <Data Select> dialog appears.

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 correct, the message below appears.

When the data is not correct, the <Verification result> dialog appears.

• Up to 100 discrepancies in the program are displayed.


• When discrepancies exceed 100, the message below appears and data check is halted.

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.

• Import is not possible when four projects are already open.


• When the selected file is not a ladder data, the error message below appears.

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 [Export] is clicked, a file is created in the specified destination.

• 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

6.1.9 Printer setup


Set the printer to be used, paper size, printing direction, etc.

6.1.10 Print preview


This command displays a preview of the print image on the screen.
Only rungs in step order are displayed. You cannot preview the rungs in find order.

2007/05/16 13 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

[Print] button Prints the ladder program. (Refer to 6.1.8)


[Next Page], [Prev Page] Changes the page displayed.
buttons
[Two Page] button Displays two pages on one screen.
[Zoom In] button Enlarges the screen magnification.
[Zoom Out] button Reduces the screen magnification.
[Close] button Closes the preview screen and returns to the edit screen.

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

6.2.1 Undo (shortcut: Ctrl +Z)


This command returns the program to the state before changes were applied (up to ten times) for the
following operations.
Undo does not apply to the contents in the clipboard.
• Cut, paste
• Write, insert, or delete instructions
• Replace (replace all normally open/closed contacts, replace all OMs)
• Enter, delete, or edit inline comment
• Enter, delete, or edit coil remark
• Enter, delete, or edit OM comment
• Enter, delete, or edit label comment
• Increment, decrement

6.2.2 Cut (shortcut: Ctrl + X)


This command cuts the instructions in the specified range and copies them to the clipboard.
They can then be pasted into another step in the same project or into a different project.
Press the [Shift] and up/down arrow keys to specify the rungs while the cursor is placed outside the left
base line.

6.2.3 Copy (shortcut: Ctrl + C)


This command copies the instructions in the specified range to the clipboard.
They can then be pasted into another step in the same project or into a different project.
Press the [Shift] and up/down arrow keys to specify the rungs while the cursor is placed outside the left
base line.
Drag the mouse to select the desired area.
If the cursor is placed at an instruction, the entire instruction is copied.

Example 1)

When the cursor is placed here

MOV 100 D0

The entire instruction is copied.

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.

When the cursor is placed here

MOV 100 D0

The entire instruction is cut.

If pasted here, an error dialog appears.

Can be pasted here.

MOV 100 D0

2007/05/16 17 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

6.2.4 Paste (shortcut: Ctrl + V)


This command pastes the cut or copied instructions into the position specified by the cursor.
When pasting the instructions into a different project, the dialog box "Do you want to paste OM comment?"
appears. When you select [Yes], only the OM comments at the paste destination are overwritten with
those in the clipboard.

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

Moved down one


row.

2007/05/16 18 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

6.2.5 Select all (shortcut: Ctrl + A)


This command selects the entire ladder program except for the end line. Cut or Paste is executed after this
operation.

6.2.6 Cut a line (shortcut: Shift + Delete)


This command deletes the line specified by the cursor. The lines below the cursor are moved up.

6.2.7 Insert a line (shortcut: Shift + Insert)


This command inserts a blank line to the line specified by the cursor. When inserted to a line with a
vertical line, a vertical line is added.

6.2.8 Copy a line (shortcut: Ctrl + L)


This command copies the line specified by the cursor.

6.2.9 Paste a line (shortcut: Ctrl + B)


This command pastes the copied line into the line specified by the cursor.

2007/05/16 19 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

6.2.10 Jump (shortcut: Ctrl + J)


When [Jump] is selected, the <Jump> dialog shown below appears. You can jump to the top or end of the
ladder program, or the rung with the specified label.

• 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

6.2.11 Find and Jump


(1) Find by Step number (shortcut key: Shift + N)
This command moves the cursor to the rung of the specified step number.

• 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.

(2) Find and jump by OM (shortcut key: Shift + H)


This command moves the cursor to the rung where the specified OM is used.

• 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.

(3) Find and jump by OM (Contact) (shortcut: Shift + E)


This command moves the cursor to the rung where the specified OM is used as a contact.

• 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

(4) Find and jump by OM (Coil) (shortcut: Shift + G)


This command moves the cursor to the rung where the specified OM is used as an output coil.

• 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

(5) Find and jump by command (shortcut key: Shift + J)


This command moves the cursor to the rung where the specified instruction is used.

• 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

6.2.12 Find and extract


(1) Contact/Coil list (shortcut key: Shift + F2)
This command displays a list of the locations where the specified OM is used.

• 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.

(2) Used OM list (shortcut key: Shift + F4)


This command displays a list of the specified OMs in use.

• 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.

Note: Up to 32767 lines of the OMs found are displayed.

2007/05/16 27 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

(3) Timer/Counter list (shortcut key: Shift + F1)


This command displays a list of the Timer (T) settings and allows you to change them.

• Pressing the Page Up key displays the previous 16 OMs.


• Pressing the Page Down key displays the next 16 OMs.
• Values set on the [Timer/ Counter list] dialog box are not reflected to the built-in PLC. When you
want to reflect the value to the built-in PLC, you need to download to a program.
• The [Timer/Counter list] command cannot be selected during edit lock.

2007/05/16 28 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

(4) Find by OM (shortcut: Shift + D)


This command finds the rungs where the specified OM is used. If the specified OM is used in multiple
rungs, each press of the [Enter] key finds the corresponding rung.

• 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

(5) Find by OM (Contact) (shortcut: Shift + A)


This command finds the rung where the specified OM is used as a contact. If the specified OM is used in
multiple rungs, each press of the [Enter] key finds the corresponding rung.

• 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

(6) Find by OM (Coil) (shortcut: Shift + C)


This command finds the rung where the specified OM is used as an output coil. If the specified OM is
used in multiple rungs, each press of the [Enter] key finds the corresponding rung.

• 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

(7) Find by OM (All) (shortcut: Shift + B)


This command finds all rungs where the specified OM is used.

• 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

(8) Find by Instruction (shortcut: Shift + I)


This command finds the rung where the specified instruction is used. If the specified instruction is used in
multiple rungs, each press of the [Enter] key finds the corresponding rung.

• 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.

(2) Replace all OM


This command replaces all OMs in the specified range with other OMs.

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

(2) Edit OM comment list


Select [Edit]-[Documentation]-[Edit comment list] from the menu.
This command allows you to edit OM comments.

• 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

(3) Inline comment


This command allows you to edit inline comments. A inline comment can be created using up to 64
single-byte characters (a double-byte character is counted as two characters).
Inline comments can be set for up to 64 points in a project.
Press [Shift] + [Ctrl] + [F7] in edit mode, or double-click the mouse at the inline comment position (when a
inline comment is displayed), and you can create or edit a inline comment in the rung specified by the
cursor.

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

(4) Label comment


This command allows you to edit rung label comments.
A inline comment can be created using up to 64 single-byte characters (a double-byte character is counted
as two characters).
Move the cursor to the line with a label in edit mode, and select [Label comment] to create or edit a label
comment in the line specified by the cursor.

• 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.)

The label comment is displayed in the section in brackets [ ].

"∗" is shown at the right of the label when a comment is


attached to the label.

• 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

(5) Coil remark


This command allows you to edit a coil remark as a comment statement for the rungs with a coil.
A coil remark can be created using up to 32 single-byte characters (a double-byte character is counted as
two characters).
Double-click the mouse at the coil remark position in edit mode, and you can create or edit a coil remark in
the rung specified by the cursor.

Instruction area

• The instruction used for the Coil is displayed in [Instruction].


• Coil remarks can be edited in find order mode.
(The display remains in find order during editing)
• Coil remarks cannot be edited in monitor mode.
(The coil remark dialog can be accessed.)
• Coil remarks cannot be edited for rungs that have not been converted.
• A coil remark attached to a coil is also deleted when the coil is deleted.

Double-click the coil remark when the coil remark is


displayed, and the edit dialog opens.

2007/05/16 40 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

6.2.15 Lock editing


In normal mode, the rung edit dialog opens when any alphabet, [+], [-], [*], or [/] key on the keyboard is
pressed. However, when the [Lock editing] command is used, the <Find by OM> dialog opens when the
above keys are used.
In addition, ladder programs, comments, and coil remarks cannot be edited in Lock editing mode.
To lock editing, select [Edit] ⇒ [Lock editing] from the menu, or click the Lock editing button on the tool
bar. (See the figure below.)
When lock editing is performed on one of the windows while multiple windows are open for the same
project, this operation is valid for all other windows.

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

Function key tool bar Status bar

6.3.1 Tool bar


This command changes the tool bar mode between Show and Hide.
The tool bar menus are shown below.

New Save Copy Undo Version Lock editing

Open Cut Paste Print Help Debug

Print preview

2007/05/16 42 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

6.3.2 Function key tool bar


This command changes the function key tool bar mode between Show and Hide.

6.3.3 Status bar


This command changes the status bar mode between Show and Hide.

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.

OM comment Label comment Inline comment Coil remark

2007/05/16 43 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

(5) Step order (shortcut: Shift + Esc)


Displays the ladder programs in Step order.
(6) Find order (shortcut: Shift + Home)
Displays the ladder programs in Find order. This command cannot be used unless the "Find"
operation is executed.
(7) Change radix in monitor (shortcut: Shift + F8)
Changes the radix of the OM current value between decimal notation and hexadecimal notation.
This command cannot be used in edit mode.

6.3.5 Save monitor setting


This command changes the monitor list mode between Show and Hide. The monitor list is a tool bar
provided exclusively for monitor settings (displayed on the right side of the ladder window). The monitor
list can be moved to anywhere on the screen by dragging it.

Figure 6.3.5 Monitor list screen

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

When ladder rungs are created or edited, they must be converted.


Select [Convert] from the menu to convert the ladder program currently being edited. (Pressing [F4] or
clicking [F4] has the same result.)
Refer to 8. Editing Ladder Programs for details.

Function bar (icon type) Click [F4] or press [F4].

Function bar (string type)

<Example of conversion error>


Breaking error

Short circuit error

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

6.5.1 Start monitoring (shortcut: F2 in edit mode)


This command changes from edit mode to monitor mode. To quit monitor mode (return to edit mode),
press [F2].
The monitor status bar is displayed below the tool bar as shown below only when in monitor mode.
The monitor status bar displays the scan time.
It also displays the error code and error step when an error occurs.
Monitor status bar

Monitor status bar when an error occurs

Scan time Displays the error code and error step


when an error is current.

2007/05/16 46 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

6.5.2 Download program (shortcut: Shift + Ctrl + F9)


Select [Online] ⇒ [Download program] from the menu, and the dialog shown below appears.

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.

If downloading fails, the dialog shown below appears.

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.

6.5.3 [Upload program]


Select [Online] ⇒ [Upload program] from the menu, and the dialog shown below appears.

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

• Check that the PLC programming function on the NC unit is exited.


• When the project is not open, program upload and the connection device can be specified from the
menu.

6.5.4 [Save monitor setting]


This command monitors the OMs registered in the monitor list (see the figure below) in real time.
Move the cursor to the [Entry] text box. Enter the desired OM, and press [Enter] or click [Add]. The
specified OM is registered in the list. (The OM is added to the top of the list and existing OMs are moved
down.)
To delete a registered OM, click the OM in the monitor list (the selection bar moves to the line selected),
and press [Delete]. (OMs listed below the deleted OM are moved up.)
Decimal notation is selected by default to display the monitor current value. Use the [Change radix in
monitor] command to change to hexadecimal notation. (Refer to 6.3 View for details.)

Selection bar
[Add] button

Text box

Monitor list

Fig. Monitor list

(1) Select in editor (shortcut: F6)


Adds the OM specified by the cursor to the monitor list.
(2) Enter command (shortcut: Shift + E)
Move the cursor to the [Entry] text box. Enter the OM and click [Add]. The specified OM is
added to the monitor list.
(3) Clear all entries (shortcut: Shift + F6)
Clears all OMs registered in the 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.

6.5.5 RUN/STOP (shortcut: Shift + F7)


Select [Online] ⇒ [RUN/STOP] from the menu, and the dialog shown below appears.
You can change the operation mode of the built-in PLC.

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

6.5.6 OM SET/RESET (shortcut: F9)


Select [Online] ⇒ [OM SET/RST] from the menu, and the dialog shown below appears.
Select [SET] (compulsory ON) or [RESET] (compulsory RESET) for the specified OM.

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

When SET/RESET is executed, the output signal may


turn ON and the jig or automatic door may operate.
Carefully execute SET/RESET to prevent being caught
in or hit by the machine

2007/05/16 51 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

• Instructions that are ON are highlighted. (See the figure below.)


When instructions are OFF

When instructions are ON

6.5.7 Force value (shortcut: Shift + F9)


Select [Online] ⇒ [Force value] from the menu, and the dialog shown below appears.
You can change the current value of the OM.

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.8 Clear all OM (shortcut: Ctrl + F9)


Select [Online] ⇒ [Clear all OM] from the menu, and the dialog shown below appears.

All OMs except for X, and Y are cleared.


When the built-in PLC is in RUN mode, the dialog box shown below appears and "Clear all OM" cannot be
executed.

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.

<Difference between DEBUG-RUN mode and RUN mode>


• WDT monitoring is not performed in DEBUG-RUN mode.
• The display of the scan time is 0 ms in DEBUG-RUN mode.

<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

(2) Debug by step


Select [Online] ⇒ [Debug] ⇒ [Debug by step] from the menu, and the program is executed from the top of
the next rung. Clicking the icon below has the same result.
(This command can be selected when the built-in PLC is in STOP mode.)

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

(4) Debug condition setting


Select [Online] ⇒ [Debug] ⇒ [Debug condition setting] from the menu, and the dialog shown below
appears.
(This command can be selected when the built-in PLC is in DEBUG-RUN mode or STOP mode.)

Clicking the icon below has the same result.


Click here.

Cannot be selected in RUN mode.

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

OMs that can be set


Multiple- 32-bit
Bit Word Const. Label
bit access access
X Y M T C D T C 10 16 L
D1 ○ ○ ○
D2 ○ ○ ○ ○ ○

(5) Set/Reset break point


Select [Online] ⇒ [Debug] ⇒ [Set/Reset break point] from the menu, or double-click the step number of
the rung.

<Setting from menu>


Select [Online] ⇒ [Debug] ⇒ [Set/Reset break point] from the menu when the break point is not set.
The break point is set and the background of the program step number specified by the cursor turns blue.
(See the figure below.)

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.)

Note: Step 0 cannot be set as a break point.

Rung currently stopped

Break point is displayed on the monitor status bar.

Rung set as stop point.

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.

(6) Clear all break points


Select [Online] ⇒ [Debug] ⇒ [Clear all break point] from the menu, and the dialog shown below appears.

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>

Only one setting is possible.


Press the [Ctrl] + [F2] keys to resume monitoring.

6.5.11 Communication setting


When this command is selected, the dialog shown below appears. Select the communication port to be
connected. This command cannot be selected during monitoring.

When the dialog is opened, the current setting is displayed.

Refer to Chapter 9 for the setting procedure.

2007/05/16 57 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

6.5.12 Built-in PLC associated errors


The table below shows the error codes that may occur while running the built-in PLC.
Code Error details
1 Instruction code error
2 No label specified by JMP or CALL
3 No RET return destination, or 0 or less FOR loops
4 Index value not correct
OM access not within range
5 Transfer data too large or negative.
11 CALL or FOR nesting is too deep. (PLC)
50 Too many parallel steps
99 WDT error (PLC)

2007/05/16 58 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

6.5.13 Batch monitor


(1) Batch monitor
Select [Online] ⇒ [Batch monitor] in monitor mode, or press [F5]. The dialog shown below appears.

<Word OM>

[Select OM] button

Previous button Select radix.

Next button
Select data type.
Select comment

OM monitor area

[Jump] button [String] button [Close] button

2007/05/16 59 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

<Bit OM>

[Select OM] button

Previous button

Next button

Select comment.

[Reset] button [Close] button


OM monitor area

[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

Bit OM (without comment)

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.

Bit OM (with comment)

OM name Comment

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.

2007/05/16 62 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

Word OM (without comment)

OM name Current value

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

Word OM (with comment)

OM name Current value Comment

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

Timer/Counter (current value) (without comment)

OM name Current value Set value

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.

Timer/Counter (with comment)

OM name Current value Set value Comment

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.

[OM type] combo box

Top OM number text box

[OK] button

[Cancel] button

• [OM type] combo box


Selects the OM type. Enter the OM type in the text box directly from the keyboard or select from
the list box.
• [OM number]
Specifies the top OM number to start monitoring. Regarded as "0" when left blank.
• [OK] button
Saves the selected OM. If any settings are not correct (OM type is not selected, OM type is not
correct, OM number is not within range, multiple-bit access specified, "L" specified, ), the dialog
box "Wrong setting data." appears.
If settings are correct, the dialog closes, and monitoring starts from the specified OM.
• [Cancel] button
Cancels operation. The <Select OM> dialog closes and returns to the <Butch monitor> dialog.

(3) Jump
When [Jump] is clicked during butch monitoring, the <Jump> dialog shown below appears.

• The OM currently selected is displayed.


• Change the OM number in the text box and click [OK]. Monitoring starts from the specified OM
number.
2007/05/16 65 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

(4) Edit string


When [String] is clicked during batch monitoring, the <String> dialog shown below appears.
The data from the position of the selected word OM to 0 is regarded as the character string.

Character string text box


Character string length

Character type

• [String] text box


Edits the character string. Although Chinese characters are not displayed on the <Butch monitor>
dialog, it is possible to read and write them in this box.
Up to 256 characters (double-byte characters are counted as two characters) can be edited.
• Character string length display
Displays the size (byte) of the area required to write the character string.
• [Character type]
Specifies the character string code used when reading and writing the character string.
• [Delete 0 at the end]
When checked, the "0" at the end of the character string is not written.
When not checked, the “0” is written to the OM written character strings set in [String] box, and “0”
becomes the end of the character strings. The followings show the difference when “xyz” is
written from D2.

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.”

• [Start from High byte]


When checked, reading/writing starts from the upper byte (2nd byte) of the specified OM.
This setting is ignored (cannot be applied) when "Unicode" is selected in the [Character type] field.
• [Read actual value] button
Reads the character string data from the specified OM up to 256 bytes. If the range from the
specified OM to the last OM is less than 256 bytes, this range is read.
The data is displayed in the [String] text box.
• [Go] button
Writes the edited character string to the selected word OM. When the character string has not been
edited, this button cannot be used.
• [Cancel] button
Cancels operation and returns to the <Butch monitor> dialog.

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

6.7.1 Parameter setting


Select [Option] ⇒ [Parameter setting] from the menu, and the dialog shown below appears.
Set the parameters for the built-in PLC. Settings are enabled after the program is downloaded to the
built-in PLC. (Changes are not reflected unless the program is downloaded.)

• 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

6.7.2 Conversion setting


Select [Option] ⇒ [Conversion setting] from the menu. The dialog shown below appears.
Set the operation to be performed when rungs are converted.

• [Save setting after conversion]


When checked, the ladder program is saved to a file each time the rungs are converted.
(When rungs are not converted in a new project, the <Save> dialog appears when converting.)

6.7.3 System setting


Select [Option] ⇒ [System setting] from the menu. The dialog shown below appears.
Customize various operation functions.

(1) General

2007/05/16 69 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

• [Display Function key] button


Selects the type of function key guidance displayed at the bottom of the window.
([Icon type] is set by default.)

Icon type

String type

• [Monitor mode key]


Assigns the monitor execution function key to [F2] or [F3].
• [Confirmation when Cut/Copy/Paste rung]
When [Don't display confirmation dialog every time.] is checked, a confirmation dialog is not
displayed before executing rung edit operations. (This is unchecked by default.)
• [Edit instruction]
When this item is checked, the <Edit comment> dialog appears after the instruction has been input
on the <Edit Instruction> dialog. (This item is unchecked by default.)

(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.1 New window


This command opens a new window in addition to the window where the ladder program is currently being
edited, allowing you to edit or monitor programs using multiple windows. There is no limit for the
number of windows that can be opened for one project.
Note: Windows opened by this command are used to edit the same ladder program. When changes are
made to the rungs in one of the windows, these changes are automatically reflected in the ladder
program in other windows.

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

6.8.3 Tile horizontally


This command arranges the windows as shown below.

6.8.4 Tile vertically


This command arranges the windows as shown below.

2007/05/16 73 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

6.8.5 Arrange icons


This command arranges the program window icons (minimize).

6.8.6 Close all


This command is the same as the [Close] command in the [File] menu.
Using this command closes all windows to quit project editing.

6.9 Help

6.9.1 Find in Help...


This command displays the specified help topics.

6.9.2 How to use help...


This command displays how to use the help function.

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

Program edit area

Step number and label area Coil remark area

Current cursor position

Function key tool bar

Indicates the model.


Indicates the number of steps in use
and the maximum number of steps.

Indicates the editing status. (Overwrite mode


is selected on the screen above.)

Indicates the program display mode.


(Step order mode is selected on the screen above.)

2007/05/16 75 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

7.2 Monitor Mode

Displays the scan Displays error information


time. when an error is current. Monitor list (only displayed during monitoring)

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

8 Editing Ladder Program


8.1 Outline

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.

Entire program Entire 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 this button is clicked, the dialog does not


close even after you click [OK], and you can
continue to enter instructions.

z Entry by symbol + Instruction/OM


Use the following tools to select a symbol:
• Function key
• Function key tool bar

Select the desired symbol from [Edit] ⇒ [Instructions].


The <Edit instruction> dialog appears near the cursor.
When entry is completed, press [Enter] or click [OK]. The dialog closes, and the entered information is
displayed at the position specified by the cursor.
If you click the icon at the far left on the dialog, the dialog stays open and you can continue to enter
instructions.

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

(a) Normally open/close, Comparison instruction


(a-1) Normally open [F5], OM, [Enter]
(a-2) Normally closed [Shift + F5], OM, [Enter]
(a-3) Positive edge [Shift + F7], OM, [Enter]
(a-4) Negative edge [Shift + F8], OM, [Enter]
(a-5) Comparison instruction [F8], Comparison instruction, [Enter]

E.g.) [F5], X0, [Enter]


<Overwrite mode>
X000

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.

(b) Normally open/closed (OR)


(b-1) Normally open (OR) [F6], OM, [Enter]
(b-2) Normally closed (OR) [Shift + F6], OM, [Enter]

E.g.) [F6], X0, [Enter]


<Overwrite mode>

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

(c) Coil, and Extended instruction


(c-1) Coil [F7], OM, [Enter]
(c-2) Timer/Counter Coil [F7], OM, Set value (n/indirect specifying OM), [Enter]
(c-3) Extended instruction [F8], Extended instruction, [Enter]

E.g.) [F7], Y10, [Enter]


<Overwrite mode>

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

(d) Horizontal line, vertical line


(d-1) Draw line [Shift] + [Arrow key]
(d-2) Delete line [Ctrl] + [Arrow key]

E.g.) Shift + [→]

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.

(d-3) Delete branch [Ctrl] + [Arrow key], [Ctrl] + [F9]

E.g.) [Ctrl] + [↑]

M0

<Y000> <Y000>

<Y010> <Y010>

E.g.) [Ctrl +F9] [Enter]

M0

<Y000> <Y000>

<Y010> <Y010>

• Operation is not affected by overwrite or insert mode.

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-2) Connection [Edit] ⇒ [Instructions] ⇒ [Insert connection], Number, [Enter]


Select [Edit] ⇒ [Instructions] ⇒ [Insert connection] from the menu, and the dialog shown below
appears.
Enter the connection number

• Enter the connection number (1 - 32767) in the text box.


• If you execute conversion when the combination of the connection symbols is not correct (e.g.
"Connection" is inserted in the last column of the current row and also inserted in the first
column of the next row), the dialog box shown below appears.

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.

z Entry by [Instruction (mnemonic)] + [OM]


Rungs are entered in the instruction list format.
Press any alphabet key or symbol key, and the <Edit instruction> dialog appears with the character
corresponding to the key entered in the text box on the dialog. Enter the instruction and OM.
Instructions are converted to the rung symbols shown below.

Instruction Rung symbol


LD, AND Normally open
LDN, ANDN Normally closed
OR Normally open (OR)
ORN Normally closed (OR)
LDP, ANDP Positive edge
LDNP, ANDNP Negative edge
ORP Positive edge (OR)
ORNP Negative edge (OR)
OUT Coil
SET, RST Extended instruction
PLS, PLF
MC, MCR
RET
Extended instruction
=, <, >, <=, >=, <>
AND-BLK (Error) *1
OR-BLK (Error) *1
END (Error) *1
MPS, MRD, MPP (Error) *1

*1: “Invalid format of instruction” error

8.1.2 Changing between overwrite and insert


Each press of the [Insert] key alternates overwrite mode and insert mode.
"Overwrite" or "Insert" is displayed on the status bar.

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.

8.2.2 Cut / Copy/ Paste


• [Cut], [Copy], and [Paste] can be performed on a symbol, line, or rung.
• Drag the mouse to specify the range for [Cut] and [Copy].
• Move the cursor outside the left base line (column of step number), and then hold down [Shift] and use
the cursor keys. The range is specified by the rung. (Specify area 1)
• Drag the mouse inside the left base line. The range is specified by the symbol or row. (Specify area
2)

Cut Copy Paste


Specify area 1 The ladder program in the Ladder program codes are The cut or copied ladder
specified range is deleted, copied to the paste buffer. program is inserted
and the remaining ladder immediately before the
program shifts up. The rung specified by the
deleted ladder program is cursor.
copied to the paste buffer. (Conversion not required)
Specify area 2 The instructions in the The instructions are The cut or paste
specified range are copied to the paste buffer. instructions are inserted to
deleted, and copied to the the position specified by
paste buffer. the cursor. These
The cut instructions are instructions are treated as
treated as edited edited instructions, which
instructions, which require require conversion.
conversion. Overwrite mode:
The instruction specified
by the cursor and after are
overwritten.
Insert mode:
All rungs in the buffer are
inserted before the
instruction specified by
the cursor.
Note: Specify area 1 operation is not possible when the selected section contains any edited rungs.

2007/05/16 86 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

<Specify area 1>


Program A
Program B is
Program A
cut.
Program C
Program B

Program A
Program C
Program B

Program B is
copied and Program C
pasted at the
end.

Program B

< Specify area 2>

Section specified by
dashed line is copied.

Overwrite mode

[Paste] is
executed here.
Insert mode

Moved down one


line.

2007/05/16 87 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

8.2.3 Insert a line / Delete a line


Insert a line : Inserts a blank line at the position specified by the cursor. ([Shift] + [Insert])
Delete a line : Deletes the line specified by the cursor ([Shift] + [Delete])

Delete the
line.

Insert a
blank line.

• [Tab] key operation


Pressing the [Tab] key moves the cursor to the next Instruction.
Pressing the [Shift] and [Tab] keys together moves the cursor the previous Instruction.

(Example 1) [Tab] is pressed

[Tab] key pressed

(Example 2) [Tab] is pressed when there is an Extended instruction in the rung

[Tab] key pressed

(Example 3) [Tab] is pressed when there is a Label in the rung

[Tab] key pressed

2007/05/16 88 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

(Example 4) [Shift] + [Tab] are pressed

[Shift] + [Tab] are pressed

8.3 Other Functions Available in Edit Mode

8.3.1 Increment / Decrement


Move the cursor to an Instruction.
Press [Ctrl] + [F2], and the OM number specified by the cursor is incremented by one.
Press [Ctrl] + [F3], and the OM number specified by the cursor is decremented by one.

• 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

8.3.2 Delete rung block


Move the cursor to an Instruction and press [Ctrl] + [F1]. The confirmation dialog shown below appears.
If you click [Yes], the specified rung is deleted. Conversion is not necessary after deletion.

• 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.

8.3.3 Referencing a rung


Press [Ctrl] + [F10]. The rung specified by the cursor is copied to the next line and the <Edit instruction>
dialog appears. Enter the Instruction and OM, and click [OK]. Changes are save and then the <Edit
instruction> dialog appears for the next edit. If you click [Cancel], the <Edit instruction> dialog appears
for the next edit without saving the current changes. When the last part in the rung has been edited, this
command is terminated and normal edit mode is resumed.

• 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

8.4 Errors that may Occur during Editing

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

Error message dialog Cause Solution


The start step set for [Specify Set the start step within the
area] on the <Print> dialog is not range.
within the range.

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.

A character string that is not an Enter the OM name within the


OM name or an OM number not range.
within the range is entered in the
[OM type] text box on the
<Contact/Coil list> dialog.
A character string that is not an Enter the OM name within the
OM name or an OM number not range.
within the range is entered in the
[OM type] text box on the <Used
OM list>dialog.
A character string that is not an Enter the OM name within the
OM name or an OM number not range.
within the range is entered in the
[OM type] text box on the
<Timer/Counter list> dialog.
A character string that is not an Enter the OM name within the
OM name or an OM number not range.
within the range is entered in the
[OM type] text box on the <Find
specified OM> dialog.
A character string that is not an Enter the OM name within the
OM name or an OM number not range.
within the range is entered in the
[OM type] text box on the <Find
specified OM (Contact)> dialog.

2007/05/16 94 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

Error message dialog Cause Solution


A character string that is not an Enter the OM name within the
OM name or an OM number not range.
within the range is entered in the
[OM type] text box on the <Find
specified OM (Coil)> dialog.
A character string that is not an Enter the OM name within the
OM name or an OM number not range.
within the range is entered in the
[OM type] text box on the <Find
specified OM (All)> dialog.
A character string that is not an Enter the OM name within the
OM name or an OM number not range.
within the range is entered in the
[OM type] text box on the
<Replace all Contacts> dialog.
A character string that is not an Enter the OM name within the
OM name or an OM number not range.
within the range is entered in the
[OM type] text box on the
<Replace all OM> dialog.
A character string that is not an Enter the OM name within the
OM name or an OM number not range.
within the range is entered in the
[Entry] text box on the <Save
monitor setting> dialog.

An OM name that is not "D" Enter a D type OM.


(data register) was entered for
[OM type] on the
<Timer/Counter list> dialog.

An OM name that is not "T" Enter a T or C type OM.


(timer) or "C" (counter) was
entered for [OM type] on the
<Timer/Counter list> dialog.

An OM that is not used was Enter the OM in use.


entered in [OM type] on the
<Replace all Contacts> dialog.
Enter the OM in use.
<Replace all OM>
A character string that is not an Enter the OM name within the
OM name or an OM number not range.
within the range is entered in the
[OM type] text box on the <Used
OM list> dialog.
A character string that is not an Enter the value within the range.
OM name or an OM number not
within the range is entered in the
[OM type] text box on the
<Force value> dialog.

2007/05/16 95 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

Error message dialog Cause Solution


A character string that is not an Enter the value within the range.
OM name or an OM number not
within the range is entered in the
[OM type] or [OM number] text
box on the <Batch monitor>
dialog.
A number not within the range Enter the number within the
0 to 32767 was entered in [Step range 0 to 32767.
number] on the <Find by Step
number> dialog.

A character string that is not an Enter an Instruction.


Instruction was entered in
[Instruction] on the <Find by
instruction> dialog.

An OM not within the range was Enter the OM name within the
entered in [OM type] on the range.
<OM SET/RST> dialog.

A bit OM was entered in [OM Enter a word OM.


type] on the <Force value>
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.

Opening more than four projects Up to four projects can be


was attempted. opened simultaneously.
Do not open more than 4
projects.

2007/05/16 96 eTCOM2PLC04
TC-32B/22B/S2C/31B/32BN PLC Programming Software

Error message dialog Cause Solution


The [Delete] key or [Ctrl] + [C] Do not edit the end row.
keys were pressed with the
cursor in the end row.

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

Set the NC's communication parameters.


[DATA TANK] → [4. User parameter] → [F6] Communication (Ethernet)
Item Value
Master station serial port [0: Port A 1: Port B] 0
Reset(slave) [0: Off 1: On] 0 or 1
Data overwrite(slave) [0: No 1: Yes] 0 or 1
Remote operation [0: Off 1: On] 0 or 1
Display slave command alarm [0: No 1: Yes] 0 or 1
Connected device Any
Response monitoring time 0
Invalid data [0: Convert 1: Error 2: Ignore] 1
Sending data code [0: ISO 1: EIA 2: ASCII] 2
End of block [0: CR, LF 1: LF] 0
TV check [0: None 1: Odd 2: Even] 0
Output dot character [0: No 1: Yes] 0 or 1
(*) IP address 192.168.1.2
(*) Mask bit 255.255.255.0
Port No. [10000-65535] 10000
PLC port No. 20000
Default gateway
EIA character code(#) [0-255] 173
EIA character code(*) [0-255] 186
EIA character code(=) [0-255] 194
EIA character code([) [0-255] 161
EIA character code(]) [0-255] 162
Note: When a LAN is already installed, please ask your network administrator for the [IP address] and
[Mask bit].

Refer to the Machine's Operation Manual (Data) for setting details.

2007/05/16 97 eTCOM2PLC04
PLC Programming Software TC-32B/22B/S2C/31B/32BN

9.2 PC Setting

9.2.1 LAN setting


Connection of the PC and NC is established via Ethernet using the TCP/IP protocol.
This means that it is necessary to set the appropriate IP address, subnet mask, etc., for your PC.
Specifying the IP address and the port number establishes the TCP/IP communication, regarding the PC
serves as a client and the NC as a server.
You must set the NC's IP address directly, as DNS is not supported for this software.

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

9.2.2 Setting PLC programming software


Select [Online] ⇒ [Communication setting] from the menu.

• 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

Upper section of connector


LAN cable (prepared by user)
CN2
One to one connection: Cross cable
HUB connection: Straight cable

(Note) When connecting the LAN


cable one to one, be sure to
prepare cross cable.

PC

Prepared by user

2007/05/16 100 eTCOM2PLC04


TC-32B/22B/S2C/31B/32BN Installation Manual

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

The sticker of option number

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.

1. Turn off the power supply switch for operation panel.


2. Set the main power breaker of the control box to the off position.
3. Unscrew two bolts on the control box and open the doors.
4. Connect the OPSEL PCB to connector CNOPTN of the IO PCB.

Layout of OPSEL PCB

IO PCB

OPSEL PCB

Connector CNOPTN

11.10.01-1.ai

The option number sticker


Function
of the OPSEL PCB
Built-in PLC function and
One from No.12 and No.13
PLC programming function

*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.

1. Turn on the power.


2. Press the [MANU] key to change to the manual operation mode.
3. Press the [I/O] key.
4. Enter [1] with the numerical key and press the [ENT] key.
5. Press the [↓] key to display the <MAIN 2> screen and check second and third bit for Input
20.

Function Third bit Second bit


Built-in PLC function and
1 1
PLC programming function

Input 20 **** **** **** 1 1 **

Check OPSEL PCB connection when the status differs from the description above.

2007/05/18 4 eTCOM2PLC05
eTCOM2PLCOKU
693213001
0705(8)

eTCOM2PLCOKU

You might also like