1unit/Arithmetic controller

DG-AMP
User’s manualForeword
Thank you very much for your purchase of our DG-AMP 1 unit arithmetic controller.
This hardware version of user's manual contains the explanation about hardware specifications and handling of the said
controller. Please read this user’s manual thoroughly for proper use of this controller.
Further, we request you to read related manuals shown in the following table concurrently.
ManualNo.

Name

μ GPC SX series programming
IGJ057A
manual (Command word version)μ GPC SX series programming
IGJ058A
manual (Operation version)

Contents
This manual describes the memory, language, and details of systemdefinition, etc. of μGPC SX series.
This manual explains the menu and icons, etc. of TDsxEditor anddescribes all operations of TDsxEditor.

Cautions(1) It is forbidden to reproduce any part or all of the details of this manual without ourpermission.
(2) Please note that the details of this manual, specifications, etc. are subject to change without
notice for the improvement.
(3) We made the details of this manual doubly sure, however, if you have any questions or you
notice any error, contact our sales office published at the end of this manual. At suchoccasion, please inform the manual number published on the front cover as well.
2

Important Safety Instructions
Before using this product, read “Important Safety Instructions” thoroughly for proper use.
Here, labels of Important Safety Instructions are classified into “DANGER” and “CAUTION” and their meanings are as
follows:!

DANGER: Risk of death or serious injury from improper use.

!

CAUTION: Risk of medium handicap, slight injury or damage to property from improper use.

FYI, even in the case of items classified into ! CAUTION, they have a probability of leading to the serious
consequence as the case may be.
In either case, important details are described then always follow them.
Though we show the items requiring your special attention as follows, they are also indicated in the text of this manual.

!

DANGER●While this controller is alive, do not touch the live part like terminal, etc. Electric shock may occur.
●Always perform the mounting, removal, wiring works and maintenance/inspection with power supply to thiscontroller OFF. Hot work may result in electric shock, malfunction, and breakdown.
●Configure the emergency stop and interlock circuits at the outside of PC. Breakage and accident may occur due to
breakdown in PC.

3

!

CAUTION●Do not use the items that were found damaged or deformed during unpacking. It may cause fire, malfunction
and breakdown.
●Do not apply impact to the product through drop or rollover, etc. It may cause breakage and breakdown of the
product.
●Mount the product in accordance with the details published in the instruction manual and others. Defective
mounting may cause drop of product, malfunction and breakdown.
●Use this product under rated voltage and current published in the instruction manual and others. Use of thisproduct under the voltage and current other than the rated may cause fire, malfunction and breakdown. Use(Store) this product under environment published in the instruction manual and others.
●Use (Storage) of this product under the environment with high temperature, high humidity, condensation, dust,
corrosive gas, oil, organic solvent and especially big vibration/impact may cause to electric shock, fire,malfunction, breakdown when the product is used.
●Select the electric wires suitable for voltage to be applied and current to be passed to tighten them at the
specified torque. Defective wiring and tightening may cause fire, drop of product, malfunction and breakdown.
●Execute the wiring work so as to prevent the foreign matter, such as dust, electric wire scrap, iron powder fromentering into inside of the equipment. Fire, accident, malfunction and breakdown may result.
●Always ground the grounding terminal. Failure to perform grounding work may cause electric shock andmalfunction.
●Check the terminal screws and mounting screws for secure tightening periodically. Use of this product with suchscrews loosen may cause fire and malfunction.
●Always fit the terminal cover to the terminal block. Electric shock and fire may occur.
●Operations such as program change, forced output, start and stop while running shall be performed uponcompletion of check for the safety.
Mistake in operation may cause the machine to operate and may result in breakage and accident of the machine.
●Insert the tool connector in proper direction. Malfunction may result.
●Before you touch PC, first touch the grounded metal, etc. to make the static electricity charged in the human
body, etc. discharge. Excessive static electricity may cause malfunction and breakdown.
●Perform the wiring securely in accordance with the details published in the instruction manual and others.
Wrong wiring may cause fire, accident and breakdown.
●When you pull out the plug from the receptacle, do not pull it out holding the cord. Fire and breakdown due to
break of cable may result.
●Do not make repairs of this product absolutely at the site and request its repair to us. It may cause fire, accident
and breakdown.
●When you try to clean this product, turn OFF the power supply and then use the towel soaked with tepid water,etc. Use of thinner or other organic solvent may cause melting or discoloring of the equipment surface.
●Do not modify or disassemble the product. It may cause breakdown.
●When you dispose of this product, handle this product as industrial waste.
●Product published in this manual is not the one designed or manufactured for the sake of being used in theequipment or system that affects human life.
●When you study the use of product described in this manual for the control of nuclear energy, aerospace, medicalcare, traffic equipment, passenger mobile unit or special application for these systems, etc. make an inquiry to
our sales contact.
●When you apply the product published in this manual to the equipment that breakdown of our product affects thelife or occurrence of serious loss can be expected, always install the safety equipment.

* Manual number is published at lower right of the front cover of this manual.
Print date * Manual number Revisions
October 2005 QG17730 Third printed

4

Revision history
Print date
Manual No.
０４－１１－０５ 1st０５－０３－２５ 2nd０５－１０－０３ 3rd

RevisionsPrepared newly
Addition of analog input terminal (with insulation function), (current
input) and pulse-train (rate multiplier) output terminal
Addition of RESET button, additional writing for analog output
specifications and body mounting method, etc.

5Table of Contents

1-1 Overview

8

2-1 System configuration

9

2-2 Digital input / Input memory layout

10

2-3 Analog input memory / Input memory layout

10

2-4 Frequency measuring register10

2-5 Digital output memory / Output memory layout

11

2-6 Analog output memory / Output memory layout

11

2-7 Pulse output memory / Output memory layout

11

2-8 OPCN interface register

12

2-9 Announce register

12

3-1 DG-AMP general specification

13

3-2 Performance specification

14

3-3 DG-AMP Power supply specification

14

3-4 DC voltage input / Input specifications

15

3-5 Relay output / Output specifications15

3-6 Transistor output / Output specifications16

3-7 Analog input specifications

16

3-8 Analog output specifications

16

3-9 Communication I/F specifications17

3-10 TOOL I/F communication specifications17

3-11 I/O terminal / Terminal name18

3-12 Digital input terminal

19

3-13 PG input terminals

20

3-14 FI Input terminal

21

3-15 OPCN-1 Input terminal

23

3-16 Analog input terminal

24
6

3-17 Analog input terminal (with insulation function)25

3-18 Analog input terminal (current input)

26

3-19 Analog output terminal

27

3-20 Pulse output terminal

28

3-21 Pulse-train (rate multiplier) output terminal

29

3-22 Digital (Relay) output terminal

30

3-23 Name and function of respective sections31

3-24 Outside shape / Mounting dimensions33

3-25 Body mounting method

34

4-1 Programming

35

4-2 Editing of the circuit

36

4-3 Circuit symbol types

37

4-4 Download/Upload

39

4-5 Monitor/Debug

40

4-6 How to check the firmware version

41

5-1 Console

42

5-2 Indication of the data

43

5-3 Writing of the data

43

5-4 Setting of the time44

5-5 Version indication of firmware

44

Remarks 1: Running status

45

7

Chapter 1 Overview

1-1 Overview(1) PLC functions
The intelligible GPC language was adopted as DG-AMP. The application program which has the same function
as our company’s PLC μGPCsx series can be created.
(2) External I/F
Digital input and output (DC12V/DC24V), analog input and output (-10V to +10V), and communication I/F(RS232C, RS422, RS485) are standard equipment of external I/F, to built various applications.
(3) Frequency counter function
PG input is exclusively for two-phase and can measure the input pulse frequency up to 36 kHz as frequency
counter of PG.
FI input can measure the frequency of input pulse up to 36 kHz as frequency counter for single phase or
two-phase that combines two channels.
(4) I/F for internal extension BUS
This controller installs internal I/F for extension BUS that can place communication option board for our inverteron board and installation of OPCN-64 to the broad makes this controller as OPCN-1 slave equipment and allows
the connection with other master equipment.
(5) Simplified liquid crystal console
This controller has console LCD indicator, check of data stored in the internal resistor can be made without
personal computer. In addition, data change is possible by the operation from the switch part.

8

Chapter 2 System configuration

2-1 System configuration
ＤＧ－ＡＭＰ

ＰＬＣ

POD

ＯＰＣＮー１

PC（for programmingand maintenance ）Digital output
Digital input
Speed detection input
Analog input

ＯＰＣＮ６４（ option ）install inside
AnalogoutputTransducer

Motordrive unit
Thyrister Leonard
Inverter etc.

M

PLG

・Connect to the external communication equipment through exclusive connector.
・Connection with digital input / output and analog input is made at the terminal block.

9Chapter 2 System configuration

I/O memory layout

2-2 Digital input / Input memory layout
Resistor name Relay namei00000I00000I00001
I00002I00003
I00004I00005I00006
I00007I00008I00009I0000A
I0000B
I0000C
I0000D
I0000E
I0000F

Terminal No.
DI-0
DI-1
DI-2
DI-3
DI-4
DI-5
DI-6
DI-7
DI-8
DI-9
DI-A
DI-B
DI-C
DI-D
DI-E
DI-F

Details
Digital input signal

2-3 Analog input memory / Input memory layout
Resistor name Terminal No.
i00002AI-0i00003AI-1
i00004AI-2i00005AI-3i00006AI-4i00007AI-5i00008AI-6i00009AI-7i0000A
i0000B
i0000C
i0000D
i0000E
i0000F

Details(14 bit ±10V non-insulation between channels) Read value(14 bit ±10V non-insulation between channels) Read value(14 bit ±10V non-insulation between channels) Read value(14 bit ±10V non-insulation between channels) Read value(14 bit ±10V insulation between channels) Read value(14 bit ±10V insulation between channels) Read value(10 bit 4 to 20mA current input non-insulation CH1) Read value(10 bit 4 to 20mA current input non-insulation CH2) Read value
System reserved
System reserved
System reserved
System reserved
System reserved
System reserved

2-4 Frequency measuring register
Resistor namei00010i00011i00012i00013i00014i00015i00016i00017i00018i00019i0001A
i0001B

Details2-phase PG counter frequency measured value, A frequency
2-phase PG counter frequency measured value, B frequency
FI-1 frequency measured value
FI-2 frequency measured value
2-phase PG counter direction of rotation
2-phase FI counter direction of rotation
2-phase PG counter number of detected measuring errors(sum of A and B)
FI-1 counter number of detected measuring errors
FI-2 counter number of detected measuring errors
PG-A UP/DOWN count value
PG-B UP/DOWN count value
FI-1 UP/DOWN count value
FI-2 UP/DOWN count value102-5 Digital output memory / Output memory layout
Resistor nameｏ00400Terminal
O00400O00401O00402O00403

Terminal No.
DO-0
DO-1
DO-2
DO-3

Details
Digital output signal

2-6 Analog output memory / Output memory layout
Resistor nameｏ00042ｏ00043ｏ00044

Details
AO-0 (DAC CH1)
AO-0 (DAC CH2)
AO-0 (DAC CH3)

2-7 Pulse output memory / Output memory layout
Resistor nameｏ00050ｏ00051ｏ00052ｏ00053ｏ00054ｏ00055ｏ00056ｏ00057ｏ00058

Details
PO-0 (Pulse output) Set pulse width/Output levelPO-1 (Pulse output) Set phase lag width/Output levelPO-2 (Pulse output) Set phase lag width/Output level
PG/FI phase mode
PO-0 to 2 Reference frequency rate
PO-3 (Rate multiplier) divider value after output
PO-3 (Rate multiplier) set value
PO-3 (Rate multiplier) control data
System reserved112-8 OPCN interface register
Resistor name Details
w00060OPCN-1 Output register (Master > DG-AMP)
w00061w00062
Number of output words
w00063w00064w00065w00066w00067w00068w00069OPCN-1 input register (Master <-DG-AMP)
w0006A
w0006B
Number of input words
w0006C
w0006D
w0006E
w0006F
w003FC
w003FD
w003FE
w003FF

OPCN-1 Number of input words set value
OPCN-1 Number of output words set value
OPCN-1 Baud rate set value
OPCN-1 Parameter setting flag

2-9 Announce register
Resistor name

Details

Unit

z00000z00001z00002z00003z00004z00005z00006z00007z00008z00009z0000A
z0000B
z0000C
z00034z00035z00036

Running status (see note 1)
Running status (see note 1)
Running status (see note 1)(Task 1 execution time)(Task 2 execution time)(YYMM indication) Time
(DDHH indication) Time
(MMSS indication) Time

BCD mSEC
BCD mSEC

z00037
zr002Czr002E(0.25m SEC counter)(1SEC counter)(System task counter)
System reserved
System define information number of used words
Function number of used words
Program number of used words
General-purpose file information number of used
words
Task 1
Task 2

scan timescan time

Example

0501H
0123H
5959H

1mSEC

Sec. (real number)
Sec. (real number)

12

Chapter 3 Specification

3-1 DG-AMP general specification
Item
Physicalenvironment

Mechanicaloperatingconditions
Electric operating
conditions

Structure
Cooling method
Mass

Specification
Operation ambient
temperature
Storage(Transportation)
temperature
Relative humidity
Level ofcontamination
Corrosion
resistanceWorking altitude-0℃ to + 55℃-20℃ to + 65℃
20 to 95% No condensation

Level of contamination 2

Note 1)

No corrosive gas.
No adhesion of organic solvent
2000m or less above altitude(Atmospheric pressure during transportation shall be 70kPa
or more)Vibration proof
Single amplitude: 0.15mm Constant acceleration: 19.6 m/s2
Up-and-down motion for 4 hours, transverse/longitudinaloscillation for 2 hours each, 8 hours in total
Impact resistancePeak acceleration: 147 m/s2, 3 times in each direction(15G)
Noise resistance
Noise simulator method Rise time 1ns,
Pulse width 1μs, 1kV
Static electricity
Contact discharge method: ±6kV, Aerial discharge
discharge resistance method: ±8kV
Radiation
electromagnetic
10V/m (80MHz to 1000MHz)
field resistance
Structure board–contained type
Natural cooling
4kg

Note 1) Level of contamination 2: Normally, a condition that conductive contamination is absent.
However, in some cases, temporally conductivity may develop due to condensation.

13

3-2 Performance specification
Item
Arithmetic control mode
I/O control mode
Programming language
Program capacity
Number of inputs/outputs
Data
I/O memory (i0/o0)
memory Global memory (g0,gr)
Local memory
File memory (fi,fr)
Retain memory (ri,rr)
Self-diagnostic function
Memory backup

Note 1), Note 2)

CalendarDigital I/O
Analog input
Analog output
Communication I/FSpecification
Stored program cyclic scan mode
Direct refresh mode
GPC language (Ladder diagram, data flow)
64k word (About 800 pages)
512 word
512 word
16384 word
16384 word
65536 word
65536 word
Watchdog timer
Program (including file memory), parameter・Flash ROM
Retain memory
・Built-in RAM(At the time of battery option un-equipped,
memory kept one week after power off.)(At the time of battery option equipped,
backup time for 10 years.)Battery option: Lithium primary battery.
±60 seconds/month (25℃)(At the time of battery option un-equipped,
memory kept one week after power off.)
Sink/Source input
16 points
Sink transistor output 4 points
8CH
3CH
2CH

Note 1) When battery option equipped, exchange if out of guarantee term, even if there is battery capacity remnant.
Note 2) When battery option equipped, battery will not be consumed in the state of main power turned on.

3-3 DG-AMP Power supply specification
Item
Rated input range
Rated input current
Rated input frequency(Frequency tolerance)
Input rush current
Over-current protection
Over-voltage protection
Power consumption

Specification
AC100V/200V(AC85V to AC265V
AC100 - 0.6A or less
AC200v - 0.35A or less
50 / 60[Hz](48 to 62 [Hz])20 [A] Typ. AC 100 [V]
Trips when the current exceeds 105% or more of the rated
current, automatic reset
Trips when the current falls within the range from 115 to 140% of
the rated voltage
30W or less14

3-4 DC voltage input / Input specifications
Item
Input signal
conditions

Specification
Rated voltage
DC12/24V
Maximum allowable voltage
DC28V
Allowable ripple rate
1% or less
Input circuit
Input mode
Sharing between source and sink (Bi-directional)
characteristics Rated current
About 5mA (at 24V), about 2.5mA (at 12V)
Input impedance
About 4.7 kΩ
Standard operating OFF→ON 7.5 to 8.5V
range
ON→OFF 7.5 to 8.5V
Input typeDC type 1
Input delay time
0.5ms
External connection
Terminal block
Insulation mode
Photo-coupler insulation
AC1500V for 1 minute between input terminal
Dielectric strength
package and FG
10MΩ or more by means of insulation
Insulation resistanceresistance tester of DC500V
Between output terminal package and FG

3-5 Relay output / Output specifications
Item
Output power
supply condition

Rated voltage
Allowable voltage range
Output type
Maximum load current
Output circuit
Minimum switching
characteristics
voltage/current
OFF->ON
Outputdelay time ON-> OFF
Built-in fuse
Output typeOutputprotection type
Surge cutback circuit
Other output protection
Maximum switching speed
Mechanical life
Electric life
External connection
Output signal indication
Insulation mode
Dielectric strength
Insulation resistanceSpecification
AC250V DC30V
AC250V
Relay output
AC/DC 2A (common 5A)
DC0.1V 0.1mA
10ms or less
5ms or less
None
Relay output
VaristorNone
100 per sec. or less20 million times
100,000 times or over with max load current
Terminal block
None
Dry contact output
AC1500V for 1 minute
160MΩ or more With DC500V megger15

3-6 Transistor output / Output specifications
Item
Output power
supply condition
Output circuit
characteristics

Rated voltage
Allowable voltage range
Output type
Rated current
Output voltage drop
OutputOFF->ON
delay time ON-> OFF
Leakage current during OFF
Output typeOutput protection
External connection
Insulation mode
Dielectric strength
Insulation resistanceSpecification
12V
12V
Sink
About 500mA/1 point
15V or less
0.5ms or less
0.5ms or lessMaximum 20μA or less (1 point)
Transistor
Resistor 10Ω
Terminal block
Photo-coupler insulation
AC1500V for 1 minute between input
terminal package and FG
10MΩ or more by means of insulation
resistance tester of DC500V
Between output terminal package and FG

3-7 Analog input specifications
Item
Number of input channels
Input impedance
Maximum allowable input
Conversion characteristics
Resolution
Comprehensive accuracy(Relative to full scale)Type of digital conversion value
Sampling time
Input filter time
Input delay time
Other functions

Specification
8 channels
About 1MΩ
±15V
Analog input range
Digital conversion value-10V to 10V-8192 to 8191
14 bit (Minimum resolution about 1.2mV)
0.1%
Integer500μs
None500μs or lessNone

3-8 Analog output specifications
Item
Output channel number
External load resistanceAnalog output range
Conversion characteristics
Resolution
Integrated accuracy (to full-scale)
Form of digital convert value
Conversion cycle

Specification
3 channels
1kΩ or more
-10V to 10V
Digital setting value
Analog setting value-8192 to 8191
-10V to 10V
14bit (minimum resolution: about 1.2mV)
0.1%
Whole number
500μs or less16

3-9 Communication I/F specifications
Item
External Port
interface Transmission
modeTransmission
rateTransmission
distance
Connectable
units
Connection
modeTransmission method

Specification
RS232C
RS422/, RS485
1 channel
1 channel
Full duplex communication mode
2400/4800/9600/19200/31250/38400 bps

Within 15m
1:1

Within 1km (Provided that transmission
rate is 19.2 kbps or less)
1:1

Connector
Based on μGPC language function

3-10 TOOL I/F communication specifications
Item
External Port
interface Transmission
modeTransmission
rateTransmission
distance
Connectable
units
Connection
mode
Modem
power supply
Transmission method

Specification
1 channel
Full duplex communication mode
38400 bps

Within 5m
1:1
D-SUB 9P (plug housing)Connection with PC is made by cross cable (receptance housing)－Use of application is not available
PLC I/F-specific command17

3-11 I/O terminal / Terminal name
T1
DI－0
DI－1
DI－2
DI－3
DI－4
DI－5
DI－6
DI－7
COM DI
DI－8
DI－9
DI－A
DI－B
DI－C
DI－D
DI－E
DI－F
PG－A
PG－B
PG－12V
PG－0V
FI－1
FI－2
OPCN－A
OPCN－B
A
B

T2
AI－0
AI－1
AI－2
AI－3
AI－0V
AI－4+
AI－4－
AI－5+
AI－5－
AO－0
AO－1
AO－2
AO－0V
PO－0
PO－1
PO－2
PO－3
PO－12V
PO－0V
DO－0
DO－1
DO－2
DO－3
DO－0V
G

T3
ＳＤ＋４２２
ＳＤ－４２２
GND
ＲＤ＋４２２ＲＤ－４２２
ＳＤ－２３２ＲＤ－２３２
ＡＩ－６
ＡＩ―７
ＡＩ－０Ｖ

18

3-12 Digital input terminal

Terminal blockDI-0
DC input signal(12 to 24V)

4.7K
R

PC

Internal circuit

：
：
DI-F

(Bi-directional)

COM-DI
Common input
・Signal input is available at source input or sink (Common to 16 points).
・In the case of source input, ON is recognized when terminal voltage is 8V or more.

Terminal No.
DI-0
DI-1
DI-2
DI-3
DI-4
DI-5
DI-6
DI-7

Internal relay No.
I00000I00001
I00002I00003
I00004I00005I00006
I00007

Terminal No.
DI-8
DI-9
DI-A
DI-B
DI-C
DI-D
DI-E
DI-F

Internal relay No.
I00008I00009I0000A
I0000B
I0000C
I0000D
I0000E
I0000F

19

3-13 PG input terminals

Terminal block
PG-A
DC input signal
(12V)

1.5K
R

PG-B

OP

AMP

Internal circuit

(PC)

PG-0V
Common input

Terminal No.
PG-A
PG-B
PG-0V
PG-12V

Details
Phase A (90°lead) signal
Phase A (90°delay) signal
PG common line
External power supply output for PG

Register No.
i00010i00011i00015

Details
PG frequency –A (0Hz to 36000Hz)PG frequency –B (0Hz to 36000Hz)
PG – A+B error counter(change detection of 10Hz or over)
PG-A UP/DOWN count value(-32768 to 32767)
PG-B UP/DOWN count value(-32768 to 32767)

i00018i00019

Relay No.
I00140O00530O00531(Supplement explanation)

Details
PG’s direction of rotation:(Setting to 1 leads to reverse rotation, 0 normal
rotation)(Toyo’s standard direction of rotation)
Direction of rotation:(Setting to 1 leads to lead of phase A)(Setting to 0 leads to lead of phase B)
PG frequency 1/2 display (1 to 1/2, 0 to 1/1)2-phase PG selection (1 to 2-phase, 0 to single
phase/2 channels)

To return to single phase after selection of 2-phase PG, reset the power. Also, when
2-phase PG is selected, i00011, i00019 and I00140 are invalid. (Single phase to see I00140)
In PG direction of rotational, PG-A is normal rotation by phase delay of 90°in selection of
single-phase mode. (Toyo’s standard mode)Also, when 2-phase mode is selected, i0010 will be +value at 90°phase delay of PG-A,and –value at 90°phase lead of PG-A.

20

3-14 FI Input terminal

Normally this terminal is used in single-phase 2 channels, however, use as 2-phase 1 channel is alsoavailable.
Terminal blockFI-1
DC input signal(12 to 24V)

680
R

PC

Internal circuit

FI-2
680
PG-0V

Common input

R

Terminal No.
FI-1
FI-2
PG-0V
PG-12V

Details
FI-1CH (Phase A signal)
FI-2CH (Phase B signal)
FI/PG common line
External power supply output for PG

Register No.
i00012

Details
FI-1 frequency(0Hz to 30000Hz)
FI-2 frequency(0Hz to 30000Hz)
FI-1 error counter(change detection of 10Hz or over)FI-2 error counter(change detection of 10Hz or over)FI-1 UP/DOWN count value (-32768 to 32767)
FI-2 UP/DOWN count value (-32768 to 32767)

i00013i00016i00017i0001A
i0001B

Relay No.
100141

Details
PG’s direction of rotation:(Setting to 1 leads to reverse rotation, 0 normal rotation)(Toyo’s standard direction of rotation)
Direction of rotation:(Setting to 1 leads to lead of phase A)(Setting to 0 leads to lead of phase B)

O00532O00533

PG frequency 1/2 display (1 to 1/2, 0 to 1/1)2-phase PG selection (1 to 2-phase, 0 to single phase/2
channels)21

(Supplement explanation)

To return to single phase after selection of 2-phase PG, reset the power. Also, when
2-phase PG is selected, i00013, i0001B and I00141 are invalid. (Single phase to see I00141)
In PG direction of rotational, FI-1 is normal rotation by phase delay of 90°in selection of
single-phase mode. (Toyo’s standard mode)Also, when 2-phase mode is selected, i0012 will be +value at 90°phase delay of FI-1,
and –value at 90°phase lead of FI-1.

[About PG and FI input/maximum input frequency]
There are 4 channels including both, but maximum frequency has limits.
<Formula>
When channel 1 to 4 is f1 to f4 of maximum frequency, it is possible to use in thefollowing condition: f1+f2+f3+f4 <36 kHz
1) Up to 36 kHz is usable in case of 1 channel.
Each will be limited to 18 kHz (36 kHz/2) in case of 2 channels.
Each will be limited to 9 kHz (36 kHz/4) in case of 4 channels.
2) Both PG mode and FI input can select 2-phase mode
In this case, 2-phase 1 channel (A/B phase input) can also select 36 kHz.
3) Selecting of PG frequency 1/2 display (1/2Hz display mode)
Because the display becomes minus value for the frequency of 32767Hz, mode to display 18000 at
36 kHz is selectable.

223-15 OPCN-1 Input terminal

Terminal blockA
485 input signal

OPCN 64

Internal circuit

B
G
Common input

Terminal No.
OCPN-A
OCPN-B
OCPN-G

Details
OPCN-1 Cable A line signal
OPCN-1 Cable B line signal
OPCN-1 Cable SG line

Register No.
w00060to
w000ｘｘ

Details
OPCN-1 Output register (Set value from master)(Portion set for w003FD)(Use as I00ｘｘｘ is also available)

w000ｘｘ+1
to
w000yyOPCN-1 Input register (Monitor to master)(Portion set for w003FC)(Use as O00ｘｘｘis also available)

w003FC
w003FD
w003FE
w003FF

OPCN-1 Number of input words set value (7 to 19)
OPCN-1 Number of output words set value (6 to 12)
OPCN-1 Baud rate set value (0 to 3, 3:1M)
OPCN-1 Parameter setting flag (3FCh)23

3-16 Analog input terminal

Terminal block
AI-0

1M

DC input signal(-10V to 10V)

OP

Internal circuit

AMP

(PC)

R
AI-3
AI-0V

Common input

Terminal No.
AI-0
AI-1
AI-2
AI-3
AI-0V

Register No.
i00002i00003i00004i00005

Details
0Ch Input signal
1Ch Input signal
2Ch Input signal
3Ch Input signal
AI Common line

Details
AI-0 Input data (-8192 to 8191)
AI-1 Input data (-8192 to 8191)
AI-2 Input data (-8192 to 8191)
AI-3 Input data (-8192 to 8191)(Register value)
8191

-10V
Input voltage

0
0V

+10V

-8192

24

3-17 Analog input terminal (with insulation function)
Terminal blockAI-4+

DC input signal(-10 to 10V)

ISO
AMP

Internal circuit(PC)

DC input signal

ISOInternal circuit(-10V to 10V)

AMP

（PC）

AI-4-

Terminal block
AI-5+

AI-5-

Terminal No.
AI-4+
AI-4AI-5+
AI-5-

Details
4Ch+ input signal
4Ch- input signal
5Ch+ input signal
5Ch- input signal

Register No.
i00006i00007

Details
AI-4 input data (-8192 to 8191)
AI-5 input data (-8192 to 8191)(Register value)
8191

-10V
Input voltage

0
0V

+10V

-8192

25

3-18 Analog input terminal (current input)
Put the resistor in series and can be used for current input.
In case of direct current input, range of 0 to 3 V will be the range of condition.
Terminal blockAI-6
ＤＣ current input signal（0V to 3Ｖ）

150Ω

Ｒ

OP
AMP

Internal circuit
（PC）

OP
AMP

Internal circuit
（PC）

AI-0Ｖ

Terminal blockAI-7
ＤＣ current input signal（0V to 3Ｖ）

150Ω

Ｒ

AI-0Ｖ

Terminal No.
AI-6
AI-0V
AI-7
AI-0V

Details
6Ch+ Input signal
6Ch- Input signal
7Ch+ Input signal
7Ch- Input signal

Register no.
ｉ00008ｉ00009Details
ＡＩ-6 input data （0 to 1023）
ＡＩ-7 input data （0 to 1023）(Register value)
1023
943

188
Input current
0mA 4mA(0.6V)

20mA(3.0V)

21.7mA(3.257V)

26

3-19 Analog output terminal

Terminal block
AO-0
Internal circuit
(PC)

OP

AO-1

Load circuit

AMP

AO-2

(>10KΩ)AO-0V

Terminal No.
AO-0
AO-1
AO-2
AO-0V

Register No.
ｏ00042ｏ00043ｏ00044

Details
0Ch Output signal
1Ch Output signal
2Ch Output signal
AO Common line

Details
AO-0 Output data (-8192 to 8191)
AO-1 Output data (-8192 to 8191)
AO-2 Output data (-8192 to 8191)(Output voltage)
＋10V

-8192
Register value

0V
0

8191

-10V

27

3-20 Pulse output terminal
In addition to use as pulse output, this terminal can be used also as digital (transistor) output.
Terminal block
PO-0
：
：
PO-3

TR ARYInternal circuit

＋１２Ｖ

(PC)

Load circuit(>1KΩ)

PO-0V

Terminal No.
PO-0
PO-1
PO-2
PO-3
PO-0V

Details
0Ch Output signal (Master pulse signal)
1Ch Output signal (Master synchronization signal-1)
2Ch Output signal (Master synchronization signal-2)
3Ch Output signal (Master synchronization signal-3)
PO Common line

Set each relay to 1 to use digital (transistor) output.
Terminal No.
ＰＯ－0
ＰＯ－1
ＰＯ－2

Relay nameO00500O00510O00520Register No.
ｏ00050Details
Setting to PO-0 (Pulse output) set pulse width/output level 2 ormore causes all 3 channels to be pulse output.
PO-1 (Pulse output) set pulse width/Output levelPO-2 (Pulse output) set pulse width/Output levelPO-3 (Pulse output) set pulse width/Output level
PO-0 to 3 Reference frequency rate (Reference clock 12MHz)
0:1/1, 1:1/4, 2:1/16, 3:1/64
4:1/256, 5:1/1024

ｏ00051ｏ00052ｏ00053ｏ00054

Details
1 (turn off O00501 to O0050F)
1 (turn off O00511 to O0051F)
1 (turn off O00521 to O0052F)

Master pulse signal

ｏ00050ｏ00050Master synchronous signal 1

ｏ00051Master synchronous signal 2ｏ0005228

3-21 Pulse train (rate multiplier) output terminal
Only for pulse train output use.

TR

ARY

Terminal block
PO-3

＋１２Ｖ

Internal circuit

Load circuit(PC)(>10 KΩ)PO-0V

Terminal No.
ＰＯ－3
ＰＯ－0Ｖ

Details
Pulse train (rate multiplier) output
ＰＯ common line

Register No.
ｏ00055

Details
Divider value after rate multiplier output（2 to 1022）: M of example below
Rate multiplier set value（0 to 65535）:N of example below
Rate multiplier control data
（normally, set 512）

ｏ00056ｏ00057[Block diagram]

Oscillator
60 ＭＨｚo00056N

o00055M

16bit
Rate multiplier

10 bitDivider

Output frequency f = 60*1000000*N/ (M*2*65536)[Notice]
N is selectable between 0 to 65535 (-1)
M is selectable between 2 to 1022 (smaller value will make inaccuracy larger, werecommend 100 or over)(Setting example)
At N = 4096,
M = 100
f = 60*1000000*4096/ (100*2*65536)=18750 (Hz)29

3-22 Digital (Relay) output terminal

Terminal block
Internal circuit

Ry
Contact

DO-0
：
：
DO-3

Load circuit(AC/DC)

DO-0V
Common line

Terminal No.
DO-0
DO-1
DO-2
DO-3
DO-0V

Register No.
o00040Register No.
O00400O00401O00402O00403

Details
0Ch Output signal (Relay 0 contact output signal)
1Ch Output signal (Relay 1 contact output signal)
2Ch Output signal (Relay 2 contact output signal)
3Ch Output signal (Relay 3 contact output signal)
Relay contact common line

Details
Really 4 points lump writing data

Details
DO-0 (Relay output) ON/OFF data
DO-1 (Relay output) ON/OFF data
DO-2 (Relay output) ON/OFF data
DO-3 (Relay output) ON/OFF data30

3-23 Name and function of respective sections⑦Mounting hole
⑥Console LCD indicator⑤Console LED indicator⑧Terminal block fordigital I/O④Console switch section③Programming toolconnecting connector②Connectors for communication I/F①Power supply terminal① Power supply terminal
PolarityThis terminal is used for supplying the power from outside.
AC (L1)
Ground E terminal to independent and stable C type or D
AC (L2)type terminals.
E② RESET button
Use only when resetting the DG-AMP alone.
(Note) Do not push the reset button while operating.
③ Connectors for communication I/F
These connectors are used when communicating by RS422/RS485/RS232C.
Use exclusive connector.
④ Programming tool connecting connector
This is the connector for connecting with programming tool (TDsxEditor).
Use D-SUB 9-pin cross cable.
⑤ Console switch section
These are switches for data indication and writing operation. See Chapter 5.
⑥ Console LCD indicator
This is LED to indicate the control status of DG-AMP.
SymbolsPWR(G)Name
POWER indication

RUN(G)

RUN indication

ALM(R）
COM(Ｙ)

ALARM indication
COMMUNICATION
indication
SEND/RECEIVE
indication

SD/RD(G)Lighting condition
Turns on when power is turned ON (Internal power
supply normal).
Turns on while CPU is running.
Blinks while CPU stops (including major breakdownstop).
Turns on when error occurs.
Turns on when communication is established oncommunication board.
Blinks when data is sent / received.

⑦ Console LCD indicator
This section indicates the data in the internal register.

31

⑧ Mounting hole
Use M3 mounting screws.
⑨ Terminal block for digital I/O
This terminal block is used when connection with external digital I/O signal is made.
Use M3 fork terminal.

The attachment position of a battery option.
The inside of DG-AMP is equipped with a battery option.
The cover on the left side of DG-AMP can be removed and exchanged.

①The battery for backup②Battery connection connector32

3-24 Outside shape / Mounting dimensions33

3-25 Main body mounting method① In case of mounting DG-AMP to the control panel, be sure to insulate from the frame of thecontrol panel and perform independent grounding (C type or D type grounding) for FG terminal.
② Put noise-cut trance or noise filter to AC power supply.
③ Use clipping terminal for the wiring to the terminal block. Be careful to the inclination of theclipping terminal and secure insulation distance (more than 3.2mm) from the adjacent. Also use
insulation cover for the clipping terminal.
④ Arrange more than 50mm from the ambient equipment for ventilation.
⑤ Separate from high voltage devise and power devise as possible. Do not parallel wiring withthose devise.
⑥ Mount vertically from the panel floor and do not mount horizontally.

The heat inside the unit
cannot escapeThe heat inside the unit
cannot escape

Panel floor

34

Chapter 4 Programming

4-1 Programming
Programming of DG-AMP is performed by TDsxEditor.
When you start TDsxEditor, following screen will appear.

First, prepare the project through “File” and “New Project”, then prepare the program through “Edit” and“Program new preparation”. Details of control are described in the program.
Select the task to which you want to add the program. Priority in computation becomes the relationship as
Task 1 > Task 2. Normally, relationship is scan time of Task 1 > Task 2.
Scan time designates the execution period of the task. Designation in 1msec is available. (As the settings forthe value of 1msec or less, designation of 2 settings, 0.25msec and 0.5msec is available)354-2 Editing of the circuit
Edition of the control details can be performed by double-click on “Circuit” in the program.
Edition of “Circuit” gets available after “Program new preparation” has been performed.

While editing new program, opening of the circuit results in “Writing mode”. While editing existing
program, select “Writing mode”.
Circuit symbol can be placed by switching following menus

Select “Ladder”

Select “Main menu”.

When you want to shift the mode to the reading mode, select “Writing exit”.
Mode shifts to reading mode.

36

4-3 Circuit symbol types
There are following types of symbol.
Ladder diagram language
SymbolＯｐｅｒａｔｉｏｎ

Ｄａｔａ ｔｙｐｅSI

Ｃｏｎｎｅｃｔｏｒ ｌｏａｄ ｓｔｏｒｅ

SO
I00000SI

ｂｉｔ

SO

I00000SI

Ｃｏｎｔａｃｔ”Ａ”
Ｌａｂｅｌ

ＳＯ＝Ｉ０００００＆ＳＩ
Ｃｏｎｔａｃｔ”Ｂ”

Ｕｓｅ ａｓ ａ ｊｕｍｐ ｄｅｓｔｉｎａｔｉｏｎ ｌａｂｅｌ

ｂｉｔ

SO

ＳＯ＝Ｉ０００００＆ＳＩ
Ｃｏｎｔｒｏｌ ｃｏｍｍａｎｄ

Ｌｏｇｉｃ ｉｎｖｅｒｓｉｏｎ

SI

ｂｉｔ

SO

ＳＯ＝ＳＩ
ＪＰＸＸＸＸ：Ｐａｇｅ ｏｒ ｌａｂｅｌ ｊｕｍｐ
ＲＥＴＵＲＮ：Ｒｅｔｕｒｎ ｆｒｏｍ ｓｕｂｒｏｕｔｉｎｅ

Ｃｏｉｌ

SO

ｂｉｔ
ｒｅａｌ
ｉｎｔ
ＢＣＤ８
ｗｏｒｄ ＢＣＤ４

ｂｉｔ

000000００００００＝ＳＯ

Data flow language
Symbolmi0000N0

mi0000N1
N0

mi0000N1

Ｏｐｅｒａｔｉｏｎ

Ｄａｔａ ｔｙｐｅ

Ｎ０＝ｍｉ００００

ｉｎｔ
ＢＣＤ８
ｗｏｒｄ ＢＣＤ４
ｒｅａｌ

Ｌｏａｄ

Ｌｏａｄ ａｎｄ ｓｔｏｒｅ
ｍｉ００００＝Ｎ１
Ｎ０＝ｍｉ００００
Ｓｔｏｒｅ
ｍｉ００００＝Ｎ１

ｉｎｔ
ＢＣＤ８
ｗｏｒｄ ＢＣＤ４
ｒｅａｌ
ｉｎｔ
ＢＣＤ８
ｗｏｒｄ ＢＣＤ４
ｒｅａｌ

Ｃｏｎｔａｃｔ”ａ”

I00000N1
N0I00000N1
N0

Ｎ０＝Ｎ１ Ｗｈｅｎ I０００００＝１
Ｎ０＝０ Ｗｈｅｎ I０００００＝０
Ｃｏｎｔａｃｔ”ｂ”
Ｎ０＝０ Ｗｈｅｎ I０００００＝１
Ｎ０＝Ｎ１ Ｗｈｅｎ I０００００＝０I00000N1
N0N2

I00000
N1
N0
N2

ｉｎｔ
ｒｅａｌ

ｉｎｔ
ｒｅａｌ

Ｃｏｎｔａｃｔ”ｃ”
Ｎ０＝Ｎ１ Ｗｈｅｎ I０００００＝１
Ｎ０＝Ｎ２ Ｗｈｅｎ I０００００＝０

Ｎ０＝Ｎ２ Ｗｈｅｎ I０００００＝１
Ｎ０＝Ｎ１ Ｗｈｅｎ I０００００＝０

ｉｎｔ
ｒｅａｌ

S0
Ｓ０＝１ Ｗｈｅｎ Ｎ１＞Ｎ２
Ｓ０＝０ Ｗｈｅｎ Ｎ１≦Ｎ２

ｉｎｔ
ｒｅａｌ

S0
Ｓ０＝０ Ｗｈｅｎ Ｎ１≧Ｎ２
Ｓ０＝１ Ｗｈｅｎ Ｎ１＜Ｎ２

ｉｎｔ
ｒｅａｌ

N1
N2

N0

N1
N2

N0

N1
N2

N0

N1
N2

N0

N1
N2

N0

N1
N2

N0

N1
N2

N0

N1
N2

N0

N1
N2

N0

S0
Ｓ０＝１ Ｗｈｅｎ Ｎ１＝Ｎ２
Ｓ０＝０ Ｗｈｅｎ Ｎ１≠Ｎ２

Ｎ０＝Ｎ１ Ｗｈｅｎ Ｎ１≧Ｎ２
Ｎ０＝Ｎ２ Ｗｈｅｎ Ｎ１＜Ｎ２

ｉｎｔ
ｒｅａｌ

Ｌｏｗ-ｌｅｂｅｌ ｐｒｉｏｒｉｔｙ
Ｎ０＝Ｎ２ Ｗｈｅｎ Ｎ１＞Ｎ２
Ｎ０＝Ｎ１ Ｗｈｅｎ Ｎ１≦Ｎ２

ｉｎｔ
Ｌｏｇｉｃａｌ ｏｒ
ｉｎｔ
Ｌｏｇｉｃａｌ ｅｘｃｌｕｓｉｖｅ ｏｒｉｎｔ
Ｎ０＝Ｎ１ ＥＸＯＲ Ｎ２
Ａｄｄｉｔｉｏｎ
Ｎ０＝Ｎ１＋Ｎ２
Ｓｕｂｓｔｒａｃｔｉｏｎ
Ｎ０＝Ｎ１－Ｎ２
Ｍｕｌｔｉｐｌｉｃａｔｉｏｎ
Ｎ０＝Ｎ１×Ｎ２
Ｄｉｖｉｓｉｏｎ
Ｎ０＝Ｎ１／Ｎ２

ｉｎｔ
ｒｅａｌ

ｉｎｔ
ｒｅａｌ

ｉｎｔ
ｒｅａｌ

ｉｎｔ
ｒｅａｌ

Ｒｅｍａｉｎｄｅｒｉｎｔ
Ｎ０＝ＭＯＤ（Ｎ１／Ｎ２）
Ｌｏｃａｌ ｃｏｎｓｔａｎｔ：ｉｎｔｅｇｅｒ
ｉｎｔ
Ｎ０＝ＸＸＸＸ

N0
YYYY

Ｌｏｇｉｃａｌ ａｎｄ

Ｎ０＝Ｎ１ ＯＲ Ｎ２

XXXX
ｉｎｔ
ｒｅａｌ

ｉｎｔ
ｒｅａｌ

Ｎ０＝Ｎ１ ＡＮＤ Ｎ２

N0

Ｃｏｎｐａｒｅ ｅｑｕａｌ

N1
N2

N0

Ｃｏｎｔａｃｔ”ｃ”

Ｃｏｎｐａｒｅ ｌｏｗ

N1
N2

N1
N2

ｉｎｔ
ｒｅａｌ

Ｃｏｎｐａｒｅ ｈｉｇｈN1
N2

Ｈｉｇｈ-ｌｅｂｅｌ ｐｒｉｏｒｉｔｙ

Ｌｏｃａｌ ｃｏｎｓｔａｎｔ：ｒｅａｌ ｎｕｍｂｅｒ
ｒｅａｌ
Ｎ０＝ＹＹＹＹ37

Data flow language(Function)
SymbolＯｐｅｒａｔｉｏｎ

Ｄａｔａ ｔｙｐｅ

N1

N0

Ａｒｉｔｈｍｅｔｉｃ ｍｅａｎ

ｒｅａｌ

Ｎ０＝ＳＵＭ（ｍｒ００００）／Ｎ１

N1

N0

Ｃｏｎｖｅｒｓｉｏｎ ｔｏ Ｓｉｇｎ

ｉｎｔ
ｒｅａｌ

Ｎ０＝－Ｎ１N1N0Ｃｏｍｐｌｅｍｅｎｔ ｏｆ １

ＦｉｌｔｅｒN1

N0

N0

Ｃｏｎｖｅｒｓｉｏｎ ｔｏ ａｂｓｏｌｕｔｅ ｖａｌｕｅ

ｉｎｔ
ｒｅａｌ

Ｎ０＝｜Ｎ１｜

N1

ｉｎｃｒｅｍｅｎｔ

N0
N0

Ｄｅｃｒｅｍｅｎｔ

N0

Ｏｎｅ ｈａｌｆｉｎｔ
ｒｅａｌ

Ｎ０＝Ｎ１－１

N1

ｉｎｔ

Ｎ０＝Ｎ１×１／２

N1

ＤｏｕｂｌｅN0N0２

Ｅｘｐｏｎｅｎｔｉａｌ

N0

N0

Ｎ１

N0

N1

ｒｅａｌ

N1

N0

N0

N1

N0
t →

ｒｅａｌ
t

N1

N0
t →

ｒｅａｌ
t

Ｖａｒｉａｂｌｅ ｓｅｔｔｉｎｇ ｐａｔｔｅｒｎ

ｒｅａｌ

N0

N1

Ｇｒａｙ ｃｏｄｅ ｂｉｎａｒｙ

ｒｅａｌ
Ｎ０=ｕｐｐｅｒ ｌｉｍｉｔ ｗｈｅｎ Ｎ１＞ｕｐｐｅｒ ｌｉｍｉｔ
Ｎ０=ｌｏｗｅｒ ｌｉｍｉｔ ｗｈｅｎ Ｎ１＜ｌｏｗｅｒ ｌｉｍｉｔ

ｉｎｔ

Ｎｕｍｂｅｒ ｏｆ ｂｉｔｓ ｔｈａｔ→ ｓｅｔ １ ｉｎ Ｎ１

N1

ｒｅａｌ
t

Ｕｐｐｅｒ/ｌｏｗｅｒ ｌｉｍｉｔｅｒ

N1

Ｂｉｔ ｃｏｕｎｔ

N0

N0

ｉｎｔ
ｒｅａｌ

Ｎ０＝√Ｎ１N1t →Ｎ０＝ｍｒ００００（Ｎ１）

Ｓｑｕａｒｅ ｒｏｏｔ

N0

N0

N1
Ｄｅｌａｙ

N1

ｉｎｔ
ｒｅａｌ

Ｎ０＝Ｎ

N1

ｒｅａｌ
t

Ｆｉｘｅｄ ｃｙｃｌｅ ｐｕｌｓｅ

Ｎ０＝Ｎ１

N1

t →

ｉｎｔ

ＳｑｕａｒｅN0

N0

N1

Ｔｒａｎｓｉｅｎｔ ｄｅｌａｙ

N1

Ｎ０＝Ｎ１×２

N1

ｒｅａｌ
t

ＰＩＤ ｃｏｍｐｅｎｓａｔｉｏｎ

N1

ｉｎｔ
ｒｅａｌ

Ｎ０＝Ｎ１＋１

N1

t →

ｉｎｔ

Ｎ０＝Ｎ１

N1

N0

N1

N0

ｉｎｔ

Ｈｙｓｔｅｒｅｓｉｓ

N1

N0
t →

ｒｅａｌ
t

Ｎ１ ｃｏｎｖｅｒｔｅｄ ｔｏ ｇｒａｙ ｃｏｄｅ
Ｓｕｂｒｏｕｔｉｎｅ
Ｄｅａｄ ｚｏｎｅ

N1

N0
Ｎ０＝Ｎ１－ｋｉ0000 ｗｈｅｎ Ｎ１＞ｋｉ0000
Ｎ０＝Ｎ１＋ｋｉ0000 ｗｈｅｎ Ｎ１＜-ｋｉ0000

N1

ＰａｔｔｅｒｎN0

Ｎ０＝ｐｉ００００（Ｎ１）

ｉｎｔ
ｒｅａｌ

N1

N0
Ｓｕｂｒｏｕｔｉｎｅ ｒｕｎｎｉｎｇ
Ｎ１ ａｒｇｕｍｅｎｔ Ｎ０ ｒｅｔｕｒｎ ｖａｌｕｅ
Ｃｏｎｄｉｄｉｏｎａｌ ｓｕｂｒｏｕｔｉｎｅ

ｉｎｔ
ｒｅａｌ

SI

ｒｅａｌ

N1

ｂｉｔ
Ｓｕｂｒｏｕｔｉｎｅ ｒｕｎｎｉｎｇ ｗｈｅｎ Ｓｌ＝１

Ｄｉｆｆｅｒｅｎｔｉａｌ ｃｏｍｐｅｎｓａｔｉｏｎ

N1

N0

N0

N1

t →

t

N0

N0

N1

t →

ｒｅａｌ
t

Ｐｌ ｃｏｍｐｅｎｓａｔｉｏｎ

N1

N0

N0

N1

t →

N0

Ｓｙｓｔｅｍ ｆｕｎｃｔｉｏｎ
Ｎ０＝ｆ（Ｎ１）ｆ（）
SIN：SIN(N1)
COS：COS(N1)TAN：TAN(N1)
ASIN：SIN (N1)
TSTD：ON timer
TRTC：OFF timer
USUC：ON defferrentiation
DSDC：OＦＦ defferrentiation
BKLC：Back lash
BKLS：Back lash compensation

Ｐｈａｓｅ ｃｏｍｐｅｎｓａｔｉｏｎ

N1

ｉｎｔ
ｒｅａｌ
ｂｉｔ

ｒｅａｌ
t

ｉｎｔ
ｒｅａｌ
ｂｉｔ

ＡＲＣ

N1

N0

N0

N1

t →

SI

Ｓ－ＡＲＣ

N1

N0
N1

N0
t →

Ｓｙｓｔｅｍ ｆｕｎｃｔｉｏｎ

ｒｅａｌ
t

ｒｅａｌ
t

Ｗｈｅｎ Ｓｌ＝１ ｅｘｅｃｕｔｉｏｎＦ（）
SET：
RESET：
MOVW：Data transfer
UPDOWN：Counter,etc.

ｂｉｔ

38

4-4 Download/Upload
When Edit is completed, download the project to DG-AMP.
Project is stored in the flash memory.

In the case of DG-AMP, connection target is valid only
for “Online CPU”.

When you want to monitor/debug the program, perform “PLC connection (Upload)” to read the details of
project from DG-AMP then perform said operation. (Immediately after downloading, TDsxEditor becomesthe condition that monitor and debug are allowed”.)

In the case of DG-AMP, connection target is valid only for“Online CPU”.

394-5 Monitor/Debug
As is the case with editing, select the program that you want to monitor/debug to make the circuit appear.

“Monitor” allow you to monitor the current value of the register in the circuit.

“Debug” enables you to modify the circuit locally.

40

4-6 How to check the firmware version
For checking the firmware version of DG-AMP,
select “Online”, “PLC RAS information indication”, thenSelect “Model information”.

Version information of DG-AMP displays in the right-side window.

41

Chapter 5 Console

5-1 Console
Console section at the front of DG-AMP body is as followed:

Liquid crystal display section
Upper section
Lower section

LED section

Switch section
1) Liquid crystal indicator
Upper section displays the normal time. In addition, when error occurs, this section displays the detailsof error.
Lower section displays the data in the internal register. In addition, setting of writing data is available.
* 11 / 03 15 ： 25 ： 00 *ｉ00000 /12345

Upper section Month / Day
Hour: Minute: Second
Lower section Register address /Data display
2) LED section(1) PWR LED (G)Normally stays ON in green while the power stays ON.
(2) RUN LED (G)Normally stays ON in green while the power stays ON.
(3) ALM LED (R)Turn on red when error occurs.
(4) COM LED (Ｙ)While communication board (OPCN-1, etc) is connected, this LED turns on green after connection
with high-level PLC has made and communication has been established.
(5) SD/RD LED (G)While communication board (OPCN-1, etc.) is connected, this LED blinks in green when data issent/ received.
3) Switch section(1) UP/DOWN switch
Switch to make the data value (numeric value) at cursor position to be counted up/down by 1/-1.
(2) HEX/DEC switch
Switch to make the data indicated value to appear in hexadecimal/decimal.
(3) L/R switch
Switch to make the cursor position to shift to the left or right.
(4) ENT switch
Turning ON this switch confirms the data value or cursor zone. (Shift to the right is performed)(5) MENU switch
Turning ON this switch cancels the confirmation of cursor zone. (Shift to the left is performed)

425-2 Indication of the data
Normally, cursor position is present at register group set position ((1)) at the lower section of LCD.
Actuation of UP/DOWN, L/R and ENT switches under this condition allows the data value of the respective
registers to be indicated.
Data display (Lower section side)i O 0 0
－
－

0

0

0
／
－ －

0

0

0

0
－：Position of cursor

①
②
③
④ ⑤
ENT
→
→
→
→
（Operation order.）MENU ←←←←(Operation end order.)① (Selecting the register at) register group set position
Change 2-digit portion of the register number by actuating UP/DOWN switch to select the register which
you want to indicate.
iO → oO → gO → zO → ri → iO → Repeat
After you have selected the register that you want to indicate, push ENT switch to move the cursor to theregister number set position.
(Note) ki register can display and write only the ki register at the top of subprogram in the project madewith TDsx Editor.
② (Setting the register number at) register number set position
Select the digit position that you want to change by actuating L/R switch to change the register number by
actuating UP/DOWN switch.
1 → 2 → 3 →・・・→ A →・・・→ F Repeat (when HEX/DEC switch is put to HEX),
After you have set the register number that you want to indicate by repeating, push ENT switch to move thecursor to the data indication position. Then, data value of the register that you have set appears at data
indication section.
③ (Confirming the data indication at) data indication section
After above operation ②, cursor moves to the data indication position and present data value appears in
the data indication section.
You can confirm I/O data, etc. at this position.
If needed, change of cardinal number is available from HEX/DEC switch.

5-3 Writing of the data
After you made the register number that you want to write through actuation in above 5-2 to appear, push ENT
switch to move the cursor to the data writing position.
④ (Setting the writing data at) data writing position
Push of ENT switch under the condition ③ to make data indicator to hold, cursor moves to the data
writing position and then set the writing data by actuating L/R and UP/DOWN switches.
After you have set the writing data, push of ENT switch to make the data to be written.
(Note) About 2 seconds are needed for writing process of ki register. Conform the renewal of the time (sec.)of upper section after ENT switch is pressed, and then do the next actuation (ex: actuation of MENU key.)
When you want to hold the indication state even without performance of writing, you can confirm the dataat this cursor position.
In such a case, after indication confirmation, return the cursor to the register group set position ① by
MENU switch.
⑤ Writing of the data
After completing the actuation ④, data indicated is written (cursor position does not change).
After data writing operation (Turning ON ENT switch), push the MENU switch to move cursor to the data
indication position and written data appears in the data indicator.
43

5-4 Setting of the time
You can set the time of day (Year, month, hour, and minute) without using PC.
Normally indication state is as following:[Normal time indicator (Upper section side)]
＊ ０ ０

／ ０ ０

Month

Day

ＸＸ ： ＸＸ ： ＸＸ ＊Hour Min. Sec.

(1) Holding down MENU pushbutton for 5 seconds or more to make the indicator to change as following:[Indicator for time setting (Upper section side)]％

０ ０ ／ ０ ０ ／ ００
Year

Month

ＸＸ ： ＸＸ ％Day HourMin.

(2) Change the indication from Year →Month→Day→Hour→Minute by actuating R switch, and UP/DOWN
for each value.
(Push of L switch allows the indication to be changed as Minute→Hour→Day→Month→Year).
Actuating the ENT switch finally causes the indication to be changed.

5-5 Version indication of firmware
To confirm the version of the firmware of DG-AMP; press MENU button and actuate L or R switch at sametime to indicate

44Internal special memory layout

Remarks

Remarks 1: Running status
Register name

Relay namez00000Z00000Z00001Z00002

Application program running (RUN LED)
Major breakdown
Minor breakdown

z00001

Z00010
Z00011
Z00012
Z00013

COM ERROR

z00002z00003z00004z00005z00006z00007z00008z00009z0000A
z0000B
z0000Cz0000D
z0000Ezr002Czr002E

Z00014
Z00015Z00016
Z00017Z00018Z00019Z0001A
Z0001B
Z0001C
Z0001D
Z0001E
Z0001F
Z00020
―
―
―
―
―
―
―
―
―
―
―
Z000E0Z000E1Z000E2Z000E3Z000E4Z000E5Z000E6

Details

Unit

ALM lamp on
COM lamp on
SD/RD lamp on

CPU execution time register
B.C.D (mSec)
CPU scan time register
B.C.D (mSec)
Calendar (Year/month)indication register
B.C.D (YYMM)
Calendar (Day/hour)indication register
B.C.D (DDHH)
Calendar (Min./sec.)indication register
B.C.D (MMSS)
Calendar (Day of the week) indication and
B.C.D (FFWW)
0.25ms counter register (While application is running)
1s counter register
System program scan counter register
0.25ms counter register
System reserved
DOWN toggle switchUP
toggle switchL
toggle switchR
toggle switch
HEX
toggle switch
ENT
push button switch
MENU push button switch (ON at each switch actuating)
Task 1 scan time (Unit: second Real number)
Task 2 scan time (Unit: second Real number)45

http://www.toyodenki.co.jp/

HEAD OFFICE

No.1 Nurihiko Bldg. 9-2 Kyobashi 2-chome, Chuo-ku, Tokyo, JapanZIP CODE 104-0031
TEL. +81-3-3535-0652 or 0653
FAX. +81-3-3535-0660

OSAKA BRANCH

Higashi Hankyu Bldg. Kakuta-cho 1-1, Kita-ku,Osaka, JapanZIP CODE 530-0017
TEL. +81-6-6313-1301
FAX. +81-6-6313-0165

NAGOYA BRANCH

Toyo Bldg. 14-16, Meieki 3-chome Nakamura-ku, Nagoya JapanZIP CODE 450-0002
TEL. +81-52-541-1141
FAX. +81-52-586-4457

TAIPEI BRANCH

4F, 308, 6, Min Chaun E, Rd Taipei
TEL / FAX. +886-2-2632-3251

2005-10
QG17730B