Академический Документы
Профессиональный Документы
Культура Документы
I. GENERALINFORMATIONONPOSITIONINGCONTROL ........................ 3 - 14
.
3.3.2M-codesettinginstruction .......................................... 43
3.4ControllingProgram Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3.4.1Jumpinstructions ................................................. 44
3.4.2Sub-routineinstructions ............................................ 45
3.4.3Repeatinstructions ............................................... 46
4.1 PreparatoryOperations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4.2 AboutFunctions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
4.3 Batch Deleting ofPrograms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
4.4 WritingaProgram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 !
4.5 Reading, Checking, and Searching fora Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4.6 ModifyingaProgram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
4.7 CheckingaProgram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
4.8 RewritingParameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4.9 Parameters Can Also be Checked . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
4.10 Transferring Programs and Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
I
57 1
4.1 1 Startingoperation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
4.1 2 OtherUsefulFunctions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
4.1 3 UsingaCassetteRecorder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
6.1Installing in thePanel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
6.1.1Generalinstallationandwiringitems .................................. 84
6.2
ConnectingTerminals ................................................... 87
6.2.1Powercircuitconfigurationandspecifications ........................... 87
6.2.2Driveunitconnections ............................................. 88
6.2.3Connection of general-purposeinputterminals . . . . . . . . . . . . . . . . . . . . . . . . . . 89
6.2.4Connection of general-purposeoutputterminals . . . . . . . . . . . . . . . . . . . . . . . . . 90
6.3BeforeStartinganOperation .............................................. 91
6.3.1Preliminarychecks ................................................ 91
6.3.2ChecksintheMANUALmode ....................................... 92
6.4StartinganOperation .................................................... 93
6.4.1Indicators in manualoperations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
6.4.2ChecksintheAUTOmode ......................................... 94
6.4.3Motorrotatingdirection ............................................ 95
6.5
6.4.4 Internaloperations of the PGU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Maintenance ...........................................................
96
97
.
1
.
7 SUMMARY ............................................................ 98-138
...
.111 .
-8-
*suo!leueldxa 40 se!m puelslapun-ol-Asea ue se lnq ‘lenuew e se Aluo IOU ‘s~auu!6aqJ O ~
i
I Ienuew sey
-*-pal!dwoa uaaq s!yl
I
i
-
1.2 WhatThisPositioningUnitCan Do
Application examples
Fixed size feed control
1
Feed roll Fixed length
Real High-accuracy, high-speed feeding and cut-
fl
feed
rate
ting of sheets in terms of sizes set by the
Cutter digital switch. The digital switch can be set
to up to 6 digits.
Brake
1 switch Digital I
-4-
Speed matching operation
Photo-sensors
Electric trolley Executesthespeedmatchingoperation for -
I bothwheels of awidetrolleydriven by
1 separatetravelmotorstoensuresmooth
I
movement.
Reflector
Decelerates at a point before the target posi-
Deceleration point tiontostopthetrolleyjustinfront of the
7 target position.
point
Stopping
motors
Traveling
Deceleration-startpoints,stoppingposi-
tions,returnpositions,etc.aredetermined
by sensor inputs sent from the photo-electric
switch, limit switch, etc.
i
~
-5-
1.3 GeneralInformationonDriveUnits
~~
1
(zero-point signal)
Drivesignal /
/ ~ lrnnrnnnnr
7Adjustment
function
Stepper motor
(commercially available product)
AIi y commerci ally available stepper motor can be used to drive a small capacity load,
The stepper motor is a motor which rotates in short, uniform angular movements initiated by a input
pulse.
Accordingly, the rotation angle of the motor is directly in proportion to the input pulses, and thus it
is possible to obtain a rotating speed which is proportionalto the pulse frequency.
f
N = 60 X - (RPM)
n N: Rotating
(RPM)
speed
Pulse
f: frequency (PPS)
360
n = - (P/R) Os: Step
angle
(deg.)
OS
n: Numberof pulses required to turn 1 revolution of the motor (P/R)
system. t
0
2
0-
I f , because of load inertia, the motor response delay 6
is too great, it may become out of step with the input c-
pulse, leading to an error in the final step angle.
Because of this,itis necessary to be particularly
careful when selecting themotor and executing such
i
controls such as slow start, slow stop, etc.
Pulse frequency (KPPS)
-6-
Adjusting the drive unit
The adjustments given below are necessary.
System in which the forward pulse is applied to one pulse input ter-
minal, and the backward pulse to another pulse input terminal.
System in which both the forward pulse and backward pulse are applied
to one pulse input terminal, and forward/backward switching signals
are applied to another pulse input terminal.
As shown below, the step angle can be changed, by making the step
mode full step or half step.
1::; ;g+tia:sq;;;1 I
. . . . . . . . :.:.. . . . . . . . . .
................
.........................
::j:i ;,
.....................
0.36' 0.36' 1,000 0.18' 2,000
... . ..........
. . . . . . ..... . . . . : ..:.... 0.36-
........... .: 0.72' 0.72' 500 1,000
-
-
When the holding torque function is required when stopping the motor,
some units permit adjustment of the hold current by using the STOP
potentiometer.
STOP
When a large holding torque is not required, keep the current low to
help prevent the motor from overheating.
Where there is surplus capacity in the motor torque, some units permit
decreasing the operating current by using the RUN potentiometer to
help keep the motor from overheating or vibrating.
However, reducing the current too much may increase the mechanical
response delay.
to automatically turnthe
Some units are provided with a selector switch
current OFF when the motor overheats.
u
I1 II YES -ShutsthecurrenlOFF automatically when the
motor overheats
-7-
1.3.2 When using a servo motor
(PGU pulse)
1I 1 Feedback 1 I -A
LJ
Encoder pulse
1 I
I--
I I
Servomotor -
I I
Drive unit DRU
(commercially available product)
The servo motor driver detects the amount of load movement by using the encoder and operates
the motor so that the deviation between the generated command pulse and thefeedback pulse is
" 0" .
Thus, improved accuracy can be ensured since this is a closed loop system.
The rotating speed of the motor is almost in proportion to the command pulse frequency.
When the pulse signal is received, the positive or negative pulse is counted by the deviation
counter.
If this counter value becomes smaller than the in-position parameter value, the "positioning com-
pleted" signal is sent out, but the motor continues operating until the deviation counter reaches
within 2 1 pulse.
Short-time
operation
range
\
\
w
I I
-+ Time -+ Rotatingspeed(rprn)
Adjustment time
-a-
Adjusting the drive unit
Since the following points in the drive unit have to be adjusted, the correct setting mustbe executed
in advance.
Theoperatingcharacteristics of thedrive
unit can be adjusted in various ways by DIP
switches, potentiometers, keys, etc.
Adjust the position or speed loop gain,
speed integrating compensation value, and
maximum rotating speed setting according
to the load specifications.
t ' IM
I READY
\ \ I
,o,,o,
,o, ,o, ,o, ,o,
/ \ I \ I \ / \ I
OV OC OL IPF NS EEX
Some drive units have a P-RATE (pulse rate) parameter. This is used to match the pulse rate of
the driver output with the FX-1GM output.
If the servo driver has a max. rate of 200 kPPS (kilo-pulses per sec.), this pulse rate multiplier
must be set at x 2 since the max. output from the FX-1GM is only 100 kPPS.
The required output pulse rate from the servo driver is directly related to the speed and the num-
ber of pitches per revolution of the motor and encoder,
A relatively large IN-POS (imposition) parameter setting allows the positioning completed signal
to be sent earlier.
f
I accuracy Positioning
Thetheoreticalaccuracyinthepositioningunitusingasteppingmotor or servomotoris
restricted by the feed rate per pulse.
This can be calculatedas follows in respect to the relationship between the pulse frequency and
feed speed.
f: Pulse
frequency
(PPS)
V
61 =+ -x 1o (pm/PLS) V: Feed
rate
(m/min.)
60f
61: Feed
rate per pulse(pm/PLS)
For instance, when V is Gm/min. and f is 100000 PPS, the theoretical accuracy will be + l p m .
-9-
1.4 Positioning
Language
-1i-
Example:
Relative distance
1 Station
from
Distance
position
Current
Station 1
0 - Station
2
28.8 km -
Station 3
83.9 km __+
Station 4
104.6 km -
Station 5
120.7
km -
Station 6
180.2
km -
Suppose that the train is now at Station 3, and the next target is Station 4.
In this case, it is correct to designate 104.6 km in thecase of absolute position designation. However,
it is necessary to clearly define that the reference home position is Station 1.
In the case of relative distance designation, it is necessary to designate 20.7 km.
It is also necessary to designate whether the train is going forward or backward.
The home position can be changed Current position
1
km 32 km
22.8
I -1- .I
Station 1 Station
Station
2 3 Station 4 Station 5 Station 6 Station 7
-39
-106.7
-156.3
km
km km 0 km ~ 3km
+59.7
6 . 9km +91.7 km
In the above figure, the absolute position is designated at each station with Station 4 as the home
position.
In this case, the absolute positions exist in both positive and negative values.
If it is necessary to go to Station 7 or Station 5 when the train is at Station 6, this is expressed as
follows:
Showingtheabsoluteposition [Absolutedrivemethod]
\
ADR +36.9 ADR ~ 9 1 . 7
Station 5 DRV ABS Station 6 DRV ABS Station 7
+91.7
+36.9 f c59.7
r"
Showing absolute drive command
[Relativedrivemethod] Showingtherelativedistance
iJ
ADR K22.8
/
ADR K32
Station 5 DRV - Station 6 DRV + Station 7
\
.(
22.8
.,
/, 32 \ >
Showing the direction of movement
- 10-
Machine home position return
TheFX-1GMPGUhasabuilt-incurrentvalueregister(storingtheabsoluteaddress)whichis
incremented/decremented by the forward pulse or backward pulse it generates.
This allows the machine position to be calculated at all times.
When the operation is started for the first time, it is necessary to teach the current machine position
to the register.
ZRN (DRIVE ZERORETURN) instruction is preparedto execute
A machine home position return DRV
this operation automatically.
DRV ZRN is an independent instruction which is not accompanied by address instructions, unlike
DRV ABS or DRV instructions. It is operated in the following sequence:
Switch to turn the motorOFF at
Backward limit the forward limit
switch LSR DOG f l
Home return sequence switch
L
Motor
Creep speed
J ~ Initial @
position Details of machine home
p o s i t i orne t u ranr e
t
described on page 25.
' Home position return speed
-
Pulses of the zero-point signal (PGO) sent from the drive unit to the PGU
arecounted,andoperationsarestoppedwhenthecountreachesthe
considered
This
point
is designated
value.
These
pulses
normally
are 1 pulse
each
per
motor
home the
r
DOG Switch Configurations
Generally, DOG switches are configured as either a single point or a regional signal. In single
point operations, the DOG switch is only switched ON when the DOG table is at the start of
home return deceleration. Thereafter, it is switched OFF.
- 11 -
1.5 What is the Program Like?
E x e c u t e sc o n t r o l of Executes complicated
the entire system and positioning control by
auxiliarymachines by dedicatedpositioning
d e d i c a t e ds e q u e n c e language.
language.
G e n e r a l - p u r p o s ei n p u t s
outputs of the PGU can be 7Simplesequenceinstructions
astheinputsandoutputs and 'general-purpose inputs and
programmablecontroller outputs are supported for inde-
thePGUandaPCare used
together
- 12-
1.5.2 Putting theory aside
Now,
let’s put theory
aside
and
see
what
program
a inside
the PGU
actually
is like. -
-
Forward
unknown
position
Current
position
home
Machine
I
>
(3) Forward 1000
(4) Wait timer (1 sec.)
When the SET RAD (setting of the return address) instruction is executed, the current position is
stored as the general return position. The machine is moved to this position by executing the DRV
RAD instruction.
The DRV RAD instruction only executes the movement to the return address: it has no connections
with the DOG switch or the DRV ZRN instructions
Pro-
ram Operation Remarks
Step
0 BLK K 0 Designates
number
block 0.
2 SET
RAD
machine
Sets
the home
position togeneral
thereturn
position
Instruction to wait for a start input signal. Proceeds when
received.
4 ADR K 1,000
Relative
movement
distance.
(Depends
parameter.)
the
on
Forward drive at the speed set by the parameter unless other-
(3) 5 DRV + wise designated.
- 13-
1.6 GeneralDescription of theSystemStructure
1.6.1 Mainunitandperipheralunits
An FX-1GM pulse output unit can be usedby itself or as a special extension unitof an FX series P C .
The system structure shown below is an example of an FX-1GM used as a main unit connected to
several peripheral units. (See page 134 for applicable versions of PCs and teaching panels.)
For complicated
controls: For directly
setting
data:
FX series
Up to 8 FX-1GM units can be connected to 1 (commercially available product)
programmable controller. Max. 6 digits
(commercially avaif-
r able product)
F2-30GM-DUsettingand
r
display unit
uj:
Interface unit
, [I m
UD to 3 FX-1GMs can be
cdnnected to 1 F2-30GM-
DU by using
this
unit.
F2-30TP teaching panel (TP)
Even a very complicated positioning
operation can be easily programmed
using the convenient instructions ex-
p r e s s e db yr e l e v a n st y m b o l s .
Programsthuscreatedcanalsobe For storing a program to an audio tape:
transferred to the PGU for use there.
!-
Whileoperationmonitoringandtest
operationsarealsopossible,this
panel is not necessary during actual
operations. I I I recorder
cassette
Audio
(commerciallyavailable
product)
- 14-
Signal
The FX-1GM PGU exchangessignalswiththeprogrammablecontroller,motordriverunit,and
from signals
receives etc.
switches,
limit
BCD switches, -P
To understand the basic specifications of the product, it is necessary to understand what these
signals mean. *-
What is a parameter?
Variouspieces of externalequipmenthavevariousspecificationssuchassignallogic,position
direction, etc. Because of this, parameters are required to be set so that optimal matching can be
ensured.
Guidepost
Since this chapter contains agreat deal of difficult material, we recommend trying to understand just
the main parameters first and learning the entire contents at a later stage.
- 15 -
~~~
2.1 Signals
Handled
I
Turn ON for
operations.
manual G Manual forwardbackward
MANU operations or home position
return
I
Machine home positionreturn when the input
is turned ON.
ZERO RETURN
H
ZRN (X4)
1 Executes the machine. home
~~ ~~ ~ . .
kc
b7
General stop pattern occurs when this goes ON.
In the MANUAL mode,
execute error reset. F Executes decelerationlstop
when turned ON momentarily
STOP STOP during MANUAL/AUTO opera-
I I I tions (temporary. stop).
i
..
Positioning starts when turned ON. Valid with a
PGU inthe ready state. Positioning is started with a
mA
E
START START
START input (valid when going
from OFF to ON).
A I
U 8
Executes the designation of the operating block
T
>
number of the program, setting of movement
distances, etc. General-purpose inputs X0 to
0 X3 are used.
x 0 to x 3
Time-sharing readingis
Digital switch max signals
Time-sharing
reading made by general-pur-
6 digits pose outputs YO to Y5.
YO to Y5
I 1
Note: ZRN, FWD, and RVS inputs can be used as general-purpose inputs X4, X5, and X6 in
the AUTO mode.
Drive unit connections
The l/O signals exchanged between the PGU and the drive unit include the following:
r
FX-1GM PGU Drive unit (DRU)
r T
Outputs FP, RP (type-A)or M FPPLS
PLS, SIGN (type-E), depend Forward or backward
upon parameter settings to
meet the DRU specifications.
P
I
,
/ \
-
0 CLR Clear sianal Clear of deviation
ON when at the machine home position counter
and when the LSFiLSR are activated.
7-7-, .
I .... . . . . . . . . . .
. . of a servo
In the. case . . . motor
. . . . . . . . . .
-
LSF Limit switch forward
Forward limit switch
LIMIT SWITCH FORWARD
Machine
- 17-
2.2 WhenUsingtheProgrammableControllerwithaPGU
SET
WAIT
4 p
# 11 # 10
RPT X
MT + , K
SPD X
to 0 to 999,999
I 77 I
M 100
E
102
M ANI
2 AND,
M 103
J OR, OR1
M 110
SET, RST
to
M 117
M-code ON
4 Y 442 J OR, OR1
Y 443
WAIT MO INT, VCH
+
Y 444
WAIT M
> b 9 M 120 LD. LDI
SET M
> b 10
2 AND, ANI
to
J OR, OR1
b 15 M 127 RST
Execution blocks 0 to 99 SET,
F? T
BFM
0 K 0
Unit num.
K 0
--- DO=Ot099
BFM
D 0
Transfer Transfer
K 1 D
O+BFM#O
ng(Multi-axis (Start/stop)
,
.
.
. turned OFF.
-
, ,
. ,
BFM#l b2 = OFF
Positioning operation This signal does not set in the wait state
See page 125 for details, Temporary stop before
execution of drive
instructions,
such as DRV and DRVC.
(Conditions required for starting) (1) Startcommand:BFM#1 b3 = OFFto ON
(2) M code OFF command: BFM#1 b5 = ON
Modes
struction
P G U mode (1) *1 (1) and (2) Automatically Proceeds auto. (1)
starts after drtve matically to the
- OFF OFF is completed. next step.
Stepping (1) '1 (1) and (2) Program steps are processed in order when a
mode - OFF ON start command is given
Start commands are ignored during instruction execution. M103 turns ON.
Loop mode (1) *1 (2) *2 Aulomalically starts Proceeds auto- (1)
- ON OFF after drlve I S com- matically to the
plefed. next step
I
Continue (1) '1 (2) '
2 Automatically starts Proceeds auto. Proceeds auto.
after drive I S corn- matically to the matically to the
- ON ON next step next designated
plefed
mode block.
-19-
M-code signal ............BFM#5
Generally, other machine operations (e.g. tool change, drill) are operated together with the position-
ing operation.
Thus, an M-code isset within the PGU to inform thePC which auxiliary machine to operate. 64 max.
kinds can be transmitted.
I f the instruction WAIT MXX or SET MXX (XX = 0 to 77, octal) is driven inside the PGU.
5 3
4 c
The sequence program shown on the following page enables the operations shown below.
f
AFTER MODE and WITH MODE
Positioning
operation
--\ AFTER MODE
L
WAIT M 1 WAIT M 2 Use WAIT M instructions between
successive
positioning instructions.
IJ
M-code
output
WITH MODE
Positioning instruction
when M SET a Use succeeding
the
operation during
executed
positioning
instruction
is an M-
WAIT M 3 Y
E
T M4
code output.
l M-code
output
A WAIT M instruction is an instructionto wait for a start command (in the loopor continue mode,
it is also started by an M code OFF command), and a SET M instruction is an instantaneous
instruction. Both can be used alone or in combination.
-20-
Recommended sequence examples
FNC Ma000 12
+I MOV I KlXOlO I D 0 (X013 to X010) + D 0
FNC M8000 79 c
+I
Bbck desgratlon
I T O ] K O] K O I D 0 I K 1 I D 0-D BFM# 0
.T
I Wb2 ~
b3BFM#1 b4 b7
b5 b6 bl bO
M8000
Multi-axis Continue
t--I Output Input ‘Ode
OFF
transfer transfer Stop Start synchroniz-
~ 8 0 0 0Multi-axis PC ing LOOP Step
synchronization
4 M200
M201
M202
M203
M204
M205
M206
M207
I
b2 b3 b4 b5BFM#3b6 b7 bl bO
Start
M code
Error READY Remaining - Synchroniz MANU Block
ON drive wait ing wait AL end
M8000 *’
Iy Inputtransfer ~ ~2~2121716 5 M210
M211
M212
M213
M214
41 PC
M8000
I L/ Oblprl transfer
AI
W
M8000 FNC 78 1
{ - I+ FROM 0 K3K K2M210 K 1 BFM# 3 ( b 7 t o b 0 ) + (M217to M210
RUN monitor FNC 79 1
T 0 K 0 KK2M200
1 K 1 (M207 to M200) + BFM#l (b7 to b o ) *2
FNC78 1
M code ON FROM K 0 K 5 K2M220 K 1 BFM#
5 ( M code) + (M227 to M220)
h A 3 1 ,7
,.,-, FNC 41
..
M code is decoded to M300 to M377 by corresponding
DECO M220
M300 7 K to the octal number.
M301 machine
Aux. drive
If WAIT M53 or SET M53 is driven
*r
M code OFF by thePGM,M353 of the PC is
machine operated, which is usedfor driving
number 1 an aux. machine.
eF:E;d;
An M code OFF command is driven
when the aux. machine operation
to is completed.
Aux. machine drive Then, the M code ON signal goes
OFF in the PGU, and theb contact
OFF
of M217 resets M205.
M205 machine
number 63 Seepage134 for applicable PC
Aux machineoperatlonmpletion sgnal
versions.
vl code ON I
M217
t
1-1- RST I M205 I M code OFF command M205 is reset.
-21 -
2.3 Initial
Parameter
Settings
2.3.1 Setting
units
It is necessary to set the following parameters in the FX-1GM PGU:
The F2-30TP teaching panel has been factory-set with standard values.
When transferring them to the PGU, it may be necessary to change some of them, depending on
which type of machine is used.
Recommended
modes
UNIT SCALE
ORDER
ADR mm.
KlOOO
/
10means
1/10inch=2,54mm
ADRmeans
K1000
/
10,000 pulses.
Set the pulse rate to be the number of pulses required to be sent to the motor driver D R U
to drive the motor 1 revolution. The following range is permitted:
-22-
2.3.2 Speed and acceleration times
Set the following speeds and acceleration/deceleration times within the specified ranges:
The max. speed parameter is the ultimate max. operating speed regardless of any other instruction
or settings. However, operations may be changed to a lower speed by an SPD instruction or if the
movement distance is too short for full acceleration to this max. speed.
Set the max. speed within the following ranges:
Read the Note at the bottom of page 131 and avoid setting values too high.
Set the operating speed for JOG (t), JOG (-) of the manual forwardireverse operations
(or FWDiRVS input of the PGU) on the teaching panel. The permitted range is the same
as that of the MAX SPEED parameter.
Manual JOG speed 10,000 PLSIsec.
JOG SPEED (factory setting)
Stepper motors suffer from high resonance peaks at low pulse rates. To avoid chattering
caused by this, set the bias speed so that the low pulse rate region can be skipped.
Machine system ...... 0 to 15,300 (cm/min., 10 deg./min., inchimin.)
Bias speed
* Motor system and composite system , . . . . . 0 to 10,000 (PLSisec.)
BIAS SPEED
0 PLSisec.
(factory setting)
-
This is the operating speed when DRV ZRN is executed in either AUTO or MANUAL. The
permitted range is same as that of the MAX SPEED parameter.
The home position return has 2 speed levels. Operation is at ZERO RETURN SPEED
first. When the DOG switch is detected, it decelerates to CREEP SPEED. Set in the
following ranges
CREEP SPEED Motor system and composite system ,.,.., 10 to 10,000 (PLSisec.)
1,000 PLSIsec.
(factory setting)
1,000 PLSisec.
V
I I
(factory setting)
-
PARA number8 Independentsetting PARAnumber 8
Acceleration time is not possible. Decelerationtime
-23-
2.3.3 Compensation for mechanicalfailings
The following parameters apply to all instructions in the program:
All absolute DRV instructions in the program will use this point as the reference position.
Normally, this is zero, but sometimes it may be more convenientto set this to some other
value: range: 0 to 2 999,999. Unit based on PARA number 3 (Unit Scale).
Home position address
ZERO ADDRESS 0 (factory setting)
Machine system and composite system ...... 0 to 65,535 (pm, mdeg., x 10 -’ m inch)
Backlash compensation Motor system . , . . . . 0 to 65,535 (PLS)
BACKLASH 0 (factory setting)
When changing the direction during automatic operations, mechanical backlash in the
gears can cause positioning errors.
Compensate by adding an extra movement distance whenever the direction is changed.
This distance is to be specified in this parameter.
Machine side
w
& Backlash
i
H
Backlash i d
Machine side
Machine system and composite system ...... 0 to * 65,535 (pm, mdeg., x 10 .’ m inch)
Travel distance compensation * Motor system ...... 0 to r 65,535 (PLS)
0 (factory setting)
POSITION BIAS
This bias adds an extra position amount to all ADR instructions. Normally, this is zero
but it can be changed depending on mechanical requirements
2.3.4 Positioning
time limit
Set the positioning completion determination time within the range from 0 to 5,000 msec.
5.000 rnsec
(factory setting)
Error judgment time
ERROR TIME An errorisoutputwhenthetimebetweenthepulsetransmissioncompletionandthe
SERVO END signal going ON is greater than allowed by this parameter.
In the case of the stepping motor, keep the SERVO END input turned ON at all times
- 24 -
2.3.5 Machinehomepositionreturn
Sincethemachine homepositionreturnisconcernedwithvariousparametersasshownbelow, -
always be sure to execute the setting correctly.
The number of zero-point signal (PGO) counts during machine home position return can
be set within the range from0 to 255. If PGO is not available, set this parameter
to zero.
PARA number 20 Home
Downcounts to HOME Acceleration/ position
position return speed
position 10 counts deceleration
times PARA number 18 Home
(factory setting) ' position return direction
ZERO SIGNAL COUNT
PARA number 21
Creep speed
PARA number 19 When the initial positionis within theD O G switch
Home position address : ON range, home position returnis executed after
: automatic forwardingto outside the DOG ON
/
-A A
region. (See page11.)
AdjustthepositionoftheDOG
Backward limit input OFF PARA
number
22 & swltch so it is almost at the center.
, i, 1
'
I
.. .
1
Count down to HOME :
'
PARA number 12 : This
example = 3 I I 1 OFF
+. I
LSR limit switch logic $, ,~e;o~po\ntsynh
7 1u \ u\u u u u u
The
The deviation counterCLEAR signal is outputto
point.
this at
DRU HOME position
return
completion signalM l O l status also changes.
1Count
Count
Count \ON
Acceleration/ PARA
number 20 Home
position
speed
return
deceleration times
/i
PARA number 18 Home position return direction
1
PARA number 19
PARA
number
. % 2 I
Creep speed
Home position address
J ;Deceleration
start
-
A
Manual forward drive is Set PARA number 22 at 0
ing a for initial the when
necessary
zero-point
a issue not doesposition
area. this
i s within
signal output.
U U U W
Count (once
PARA
if number 22 issetto 1) x ON
-25-
__ . . ....
2.3.6 Setting of the operating mode
The following parameters are used to set the logic of each signal:
Pulse output type FP signals how far to move and RP determines the direction. (see following table).
TYPE
ZERO DIRECTION Data input time from the digital switch is 8 msec/digit
Setting "2" " 3 '
64 msec/digit. See page 136 for details.
-
LIMIT SWITCH
Machine home Dosition
The initial preset values OFF ON direction
return ON I OFF LSF
LSR
7
of PARA numbers 1 1 , 1 2 ,
and 1 8 are as shown o n A
the right. Forward
Machine home positio
(RTverse-
Address decrement Address increment
-26-
x
..... A deceleration
stop
not
isperformed.
M 102 is reset by a
STOPcommand. I
I
STOP mode
restarted after a deceleration sto , an operation drive is ex-
STOP for
remaining
thedistance. (A START command
is T
I
eeded.) ..... Remaininadrive
After a deceleration stop, the remaining distance is i nored and
the operation proceeds to the next step. So, a STAtiT command
I
1,:
needed. not is . . . . Remaining
discontinue
I
. . . . . . : ........
. . . . . :. , ...::.... After a deceleration stop, the remaining distance
,,,,ldtiw'j,i;:
, ..
'
is ignored and ~ ~ ~ ~ ~ ~ , "
.........
::::::::,:::,,:. . . .
............ the operation proceedsto the END step. ..... END return
mode.
CONT
- 27 -
Aux. relays
M 1 1 0 to M117 and M120 t o M127 aux. relays (16 points in all) are prepared in the PGU, which can
be freely utilized by the user.
The following specialaux. relays (exceptfor M103) can only be read,as they are reserved and driven
automatically by the PGU.
This is active at all times in the AUTO mode if an error has not been generated.
This is used to forcibly drive various coil instructions which are driven by contacts.
(see page 126).
BFM#4 bO
In the AUTO mode, M101 is set and held when DRV ZRN is completed. It is only reset
when the mode is switched to MANUAL or the power is turned OFF.
BFM#4 b l Therefore, this can be used so that home reset only occurs 1 time (see page 45).
However,whenthePARAnumber23settingis‘2’or“3’,M101isturned ON by the
machine home position return regardlessof the operating mode, and the operation status
is held even after AUTO mode is canceled.
M102 is ON when a start pulse is received in the AUTO mode, and is reset by the STOP
input(BFM#lb4signalsentfrominputterminal of thePGUortheprogrammable
controller).
BFM#4 b2
M102 may serve as the signal to acknowledge that a start command has already been
entered.
BFM#4 b3 1 -step transfer is executed each time the START command is applied (see page 50).
This is valid when both BFM#1 bO and b l are OFF. If B F M # l bO is ON and b l is OFF,
M103 is operated and a similar stepping operation is performed.
EFM#2
-2a-
In the previous sections, the I/O signals and the parameters of the pulse output unit (PGU)were
explained.
This section explains how the PGU is controlled.
Program instructions and parameters are both entered by using the teaching panel.
The instructions come in the format "Instruction + Element symbol + Data (element number, etc.)",
"Instruction + Element symbol", or the instruction alone.
This section gives details about each instruction (see Section 7 for summarized definitions).
IMPORTANT
Program Operations
Instructionsintheprogramareexecutedsequentiallystep by step.Thesucceedingstepis not
executed until the preceding step is fully completed. Be sure that you understand the difference
between this and the cyclic operations of the programmable controller.
The program is divided into blocks. Each block can be an individual routine, and execution is selected
by either a numeric switch input or by the programmable controller.
If neither is used, block zero will be executed.
Note that some of the instructions involve waiting.
Program execution does not continue until the appropriate conditions have been met. For example,
a WAIT instruction requires a start input signal. -
Others are instantaneous when the execution time is indicated.
-29-
3.1 Basic
instructions
3.1.1 Block
designation
instructions
mi
1) 1 msecorless 2) DSW read time Seepage 136.
Relevant elements:
E:dDof sub-program None
Execution time:
Waiting type (waits for a start input signal).
.L
for a START command.
- Less than 2000- The above completes 1 operation. A group
I
of operations completes 1 program block.
Parameter numbers
Oto23
-30-
Designation by numeric switch
When the PARA number 14 setting is "1 "2", "5", " 6 " , "9", "1O", "1 3", or "1 4", block numbers of 100
'I,
1 -digit input
1m
When theBLK instructionis executed, the general purposeoutput Y 5 is turned
ON automatically, and the setting value (for instance, "8") of DSW#6 is read,
thus executing BLK K8.
2-digit input
When the BLK instruction is executed, the general purpose outputs
Y5 and Y4
areturned ON sequentially,andthesettingvalues(forinstance, "87")of
DSW#6 and #5 are read, thus executing BLK K87.
10' 100
j
Input
photo-
I 24v coupler
I
I
\-.-
x 0
x 1 -
-
I
x 2
x 3 r' f l f J
The following types of digital switches to which diodes can be externally mounted are commercially available:
SDG4101 DX (FUJISOKU) , 31 J52M (JAE) , A7AS-207 (TATEISHI)
- 31 -
3.1.2 Speed
instruction
Speed
designation (1) K10 to K100,OOO or KO (motor system
composite
or system)
(2)K1 to K153,OOO or KO (machine system)
(3) X70 to X77 The setting of (1) applies to the motor system and the composi
tesystem. Setting of (2) applies to the machine system.
(4) X1 to X654,321
Execution time:
Instantaneous progressing type
(1),(2) 1 msec or less
(3)1 programmablecontrolleroperationcycleorless
(4) DSW readtimeSeepage136.
.
ber 8.
Parameter If the movement distance istoo short, the motor may decelerate without
.
reaching max. speed.
t number 4 or
SPD instruction
I The contents of max. speed setting register MSR will be changed each
,
time the SPD instruction or BLK instruction is executed, and all opera-
tions are performed in accordance with these values.
From parameter number 4
Themotorspeedwillnotbecomelowerthanthebiasspeed of
instruction execution parameter number 6.
Max. speed
setting Themotorspeedwillnotbecomehigher thanthemax.speed of
register parameter number 4.
Page 134 gives details about the applicable versions of the F2-30TP.
Parameter number 6
- 32 -
3.1.3 Address
designation
instructions
elements: RelevantEXTERNAL
Designation Absolute
ofex-
anaddressing
ternal address 1) t 1 to 654,321 2) 2 70to77
Relative addressing
3) K1 to K654,321 4) K70 to K77
Execution time:
1) and3) DSW readtimeSeepage136.
2) and 4) 1programmablecontrolleroperationcycle
Example 3
EXT K654321 = ADR K927684
Y 5 Y 4 Y 3 Y 2 Y 1 Y O
When the setting values of the digital switch are as
shown above, the actual address designations will be as
I If '0' is added to the lower digit, scaling is shifted up 1 digit. I
shown on the right.
- 33 -
3.1.4 Register
control
instruction
Relevant elements:
0 to 999,999 (setting of current value registers)
RAD (setting of return address HOME position register)
Execution time:
Instantaneous progressing type (1 rnsec or less)
SET instructions may be also used for relevant elements such as Y, MI etc. (see pages 42 and 43)
This section describes +, RAD only.
(SET RAD instruction)
When this instruction is executed, the current position of the machine during execution is set to the
RAD register (return address register).
With this step, it is possible to drive to the general return position by using the DRV RAD instruction.
(SET * 0 to 999,999 instruction)
When this instruction is executed, the contents of the current value register within the PGU are
changed to the data designated by the SET instruction.
For instance, when a fixed length feed-out control is executed, it is possible to return the current
valueto "0" by aSET to (or SET -0) instructioneachtimethedesireddimensionfeed-outis
completed.
-.
General description of internal registers
ADR instruction
1
Setting value
register position
SVR register RAD
EXT instruction
I
Pulse Parameter SPD
number 4 instruction
generation D R V RAD
circuit <p
(, +z.147,4a3.647
(pulse conversion)
I, I
Timer register
Parameter
20 to 999,999
I I
Subtraction
clock TMR instruction
to to 9 9 9 , 9 9 9 Machinehome SET instruction
position return
Other registers used in instructions such as DRVC and VCH are stored in the programmable
controller because the data received is from the programmable controller.
- 34 -
3.1.5 Dedicatedinstruction for waiting
Relevant elements:
Waiting for start
a MO to M77 (octal) (MO need
not
be
designated.)
1-1 command
Execution time:
Waiting type (Waits for a start signal.)
TMR TIMER
Pause instruction
Relevant elements:
KO to K9,999(unit: 10 msec)
Execution time:
Waiting type (Timer wait)
I f TMR KlOO is used, for instance, the operation proceeds to the succeeding program step after
waiting 1 sec.
The waiting time is defined as 1/100 of the designated data 0 to 9,999.
-35-
3.1.6 Drive
execution instruction
.
Relevant elements:
Fi:bVdEspeed drive
instruction 1) ZRN Machine home position return
2)General
position
RAD
home
return
3) * driveRelative
4) ABS
1 to 9,999
Absolute
drive
drive
table
Rotary
5) ROT
Execution time:
Waiting type (Indefinite until motor positioning is completed.)
I I 1
I(1) Machine home position return I I
K h Waiting for start
I Waiting' (1 sec.)
(2) 500 ' (3) 1,500 (4) 1,500
,
1
I
A I
Waiting (1 sec.)
-
... . . . .. ..::
.......... . ..:.:.. :..jj..:j.:.:; . . ..:..
:,:A:,:. .. .. ..........................
....
.................
'+.+tY.qu~l:@~:s
...........
P
;,i:;:,Ii;;,.;gj= ;:;:> ..::j::
:.:.:........:.:::::.::::.
::..::............
Note: The absolute address of the machine home position is determined by the home position address parameter
number 19. If it is 0, the general return is written as +500 in the general return position register.
I f there is no program in step 3 and step 4 , the general return position becomes equal to the machine home
position, which mean the contents in the return address register will become 0 (when PARA number 19 is '0')
- 36 -
Whenthisinstructionisexecuted,homereturn is executed to themachinehomepositionin
accordance with the procedure described onpage 25.
This position is normally the position with an absolute address of 0 (set by parameter number 19).
This drives to the general return positionas indicated by the return address RAD register. This differs
from DRV ZRN in that positioning is based on a register and not on the external hardware position
of the DOG switch.Thus,theaccuracy of the DRV ZRN isgreater. DRV RADisaconvenient
secondary temporary home position in the work area.
Example of absolute drive
The relative addresses such as ADR 2 , EXT +, etc. are valid as position addresses.
The ADR K instruction,EXT K instruction,etc.arealsoregarded as the ADR +, EXT +, etc.
respectivelv.
ZRN RAD Initial position a C b
0 - +500 ? +2,000 ~2.500 +3.500
startWaiting
for
sec.)Waiting
(1
return
(6) General (5) 1,000
/
p'
Waiting (1 sec.)
. . . . .:
(DRV ABS instruction) (DRV ABS n instruction)
..l~
. .. . .......
. .. ... . . .. . .;::;
.......................... .. ..................
............
i::,:,:,:.dS#~~ii
:::,:::ti,6fi#:;,:;;:
... ...........
............
:$#**~;f$ :...................
...............
.:.:.:.:............. ::
:.:::;::.: ,::.:...:.:.:
.:.: ....... :,. :...:. ....,.:..................
.......................
BLK K
D RV ZRN
SPD
ADR
DRV
K
ABS
+ 8,000
500 I
SET RAD
ADR +
DRV ABS
TMR K 100
ADR +
I
DRV ABS 7x500 7
WAIT
ADR +
DRV ABS 5 5x500
TMR K 100
- DRV
END
RAD
-37-
3.2 Examples of OperationControls
Rotary drive
When executing indexing control of a rotary table, relative drive or absolute drive can be performed
by designating the rotation angle with an ADRor EXT instruction in the same manner as linear
movements.
of 360"
The use of a DRV ROT instruction will allow a rotational drive automatically with a max. angle
(see page 123).
Example of rotary control
ADR + is devoted to the designation of the position for a DRV ROT instruction. ADR K, ADR -are
also regarded as ADR +.
The unit for an ADR instruction as a rotational angle is determined in accordance with the setting
value ("0" to "3")of the parameter number 3. When the setting value is " l " ,for instance, the setting
unit is 0.1". With a DRV ROT instruction, ADR + 0 to 3,600 may be valid. (In this case, the value of
parameter number 0 must be set to "0" or "2".)
I position
Current
(Combineduse of the DRV ABS, DRV (Use of the DRV ROT instruction)
-c instructions)
(3)
ADR
DAV
TMR
K
+
K
90
100
f-a-b 1 Note 1
(3)
ADR
DRV
TM R
+
ROT
K
30
100
f-a-+b 1 Note 2
-38-
Relevant elements:
Multi-stage speed drive 1) Absolute
ABSdrive
2) 2 Relative
drive
Executlon lime:
Waiting type (Indefinite until positioning has been completed.)
The multi-stage speed drive can be executed by using an SPD instruction and position designation
instruction in combination.
Example of a multi-stage speed drive
ADR, EXT instructions are applicable to the designation of the position.
( 1 ) 1,500 _I ( 2 ) 1,000 J ( 3 ) 2,500
1 In this example, ex-
ecutepositioning
Speed
while changing the
1 operation speed in
areas (1) to (3).
.
lute
(Initialdrive)
relative
(Initial
r1 SPD
ADR
DRVC
K 3000
K 1500
t
-
4 Note 1
Note 2
ABS
.
SPD
ADR
DRVC
K 3000
+ 4000 1
I
SPD K 2000 SPD K 2000
Note 3 Note
ADR K 1000 ADR,
SPD, and ADR K 1000
4
register DCR are
L 1
SPD K 1600 dedicated to SPD
DRVC K 1600
instructions
ADR K 2500 ADR K 2500
NOP NOP
Note 1: This instruction is not necessary when driving at a speed designated by parameter
number 4.
Note 2: The previous relative address or absolute address is valid to the position data of the DRVC
instruction.
Use DRVC t - instruction or DRVC ABS instruction as appropriate.
Note 3: Speed changes can be done in up to 8 stages by a series of instructions. I n such cases,
however, other instructions cannot be programmed in between.
Only the relative address is valid for the designation of a series of positions after a DRVC
instruction.
Always be sure to program an NOP instruction to indicate the DRVC end (i.e., stop).
A series of these instructions are read in advance by the dedicated register DCR when the
DRVC instruction is executed, and then the actual operation is executed.
After completing the operation of the DRVC instruction, the values of the max. speed
setting register (MSR) and setting value register (SVR) are returned to the original values
before the DRVC instruction.
- 39 -
3.2.1 Multi-stage
speed
operation
VELOCITY CHANGE
Relevant
elements:
Fixed
speed
change
com- 1) X0
to X6 (general-purpose input)
mand
2) Y440 to Y444 (BFM#2bO to b4)
Execution time:
Instantaneous progressingtype (1 msec or less)
{ I T
x 0 x 1
Let'soperate A, 6,and C
by turning ON the general-
Speed purpose inputsXO, X1, and
+ I
2,000
I
+
1,600
X2 sequentially.
I I
-
tns$Tucci;
:.j tl&f$::',j I.
P
47 BLK
48 SPD Omitted if parameter speed is used.
- 49 VCH Instantaneous progress regardless of the ON/OFF status of XO.
A 50 SPD Set the next speed in a special register.
- 51 D RV Drive at speed 3000. Change to 2000 when X0 is ON, and then continue.
- 52 VCH Instantaneous progress regardless of the ON/OFF status of X1.
B 53 SPD Set the next speed in a special register.
L 54 D RV t Drive at speed 2000. Change to 1600 when X1 is ON, and then continue.
- 55 VCH X Instantaneous progress regardless of the ONiOFF status of X2.
C 56 SPD K The last speed command is always '0".
57 DRV + Drive at speed 1600. Change to speed 0 when X2 is ON and then continue.
END
Note 1 : VCH instruction proceedsto the succeeding step regardlessof the input state, and executes
DRV 2 instruction immediately after reading the SPD instruction data. Then, the operation
waits for an input operation such as XO.
When the input of VCH instruction having been read is turned ON while executing the DRV
* instruction, the operation proceeds to the succeeding step after changing to the desired
speed.
Note 2: A, B, C, ... must beaconsecutiveset of instructions.Otherinstructionscannotbe
programmed in between.
Only DRV * is valid as the drive instruction, and0 must be set to the final speed command.
Note 3: After completing the VCH operation, the data of SPD at step 48 is returned to the MSR
register. (If there is no SPD instruction, the speed designated by the parameter becomes
valid.)
-40-
3.2.2 Drive
interrupt
Execution time:
Instantaneous progressing type (1 msec)or less.
Response times:
l), 2) Approx. 4 msec
3), 4)Approx. 10 msec + operation cycle of programmable controller
I
XO=ON
6,000 4 Start the operation at a speed
of 3,000,andstop itaftera
movement of 6,000 after X 0
has been turned ON.
-
g:: -
Operation with a DRV 2 instruction
SPD K 3000 Aprogramisnotnecessary if thespeedhasbeensetbyaparameter.
K 6000 An EXT instructioncanalsobeused.(Absoluteaddressisinvalid.)
-
X0 to X6 and Y440 to Y444 can be designated
INT X 0-
(from the programmable controller BFM #2, see page 102).
+ Only a relative drive instruction (DRV *) is valid.
Execute the programming in the sequence shown above. Other instructions cannot be programmed in between.
XO=ON
Speed . Speed .
~
? ?
ADR K
,"
6,000
0 -
-
c- Absoluteaddresscanalsobeused.An
K440 to K444 can also be designated.
Absolute drive instruction can also be used.
EXT instructioncanalsobeused.
Execute the programming in the sequence shown above, Other instructions cannot be programmed in between.
Though the relevant element is K,the actual operation is carriedout responding to general inputsX0
to X6 or BFM#2 Y440 to Y444.
Page 134 gives details about the applicable versions of the F2-30TP.
- 41 -
3.3 Well-known
Instructions
m]
M110to M127
1 /I
ANDBLOCK OR BLOCK
Series connection of circuit block Parallel connection of circuit block
-
OPERATION NO
\
. Instruction not accompanied by
mi
a relevant element
Non-processing
-i
RESET Relevant elements:
YO to Y6
tu; : : holding instruction Output holding reset MlOO to M127
For others, see pages 34, 43.
An OR instruction is used as an addition and subtraction operation instruction as well as a parallel contact connection instruction
Example 1
i
ADR
+1,000
ADR+2,000Setvalueregister SVR stores +1 ,000 +2,000 = +3,000.
OR
I
Example 2
EXT
K654 When the digital switch DSW#654= 100, set value register SVR stores 100 -400 = -300.
ADR -400(EXTKdesignated by a DSW isregardedasapositivenumber.)
OR
t
Example 3
EXT
K70
EXT
K654 W h e n B F M # l l a n d #10 = +500, DSW#654 = 100, and BFM#13 and #12 = 1000,
OR +500 + l o 0 = +600 and +600 -1000 = -400. Set value register stores -400.
EXT
-71
OR
The above examples show an addition of set values designated by 2 ADR or EXT instructions.
The following additions use OR instructions.
Page 134 gives details about the applicable versions of the F2-30TP.
-42-
mi
M-code setting instruction
Relevant elements:
tu; : : holdinginstruction MO to M77 (octal)
(For others, see pages 34 and 42.)
Execution lime:
Instantaneous progressingtype (1 msec or less)
When the SETMXX is driven withinthe PGU, programmable controller's input points BFM#5 operate
automatically as soon as the WAIT MXX is executed.
(16)
(32) 64 128
0
b b2 b3 b4 b5 b6 7
0 1 1
8 2
0
(4)
1 0
b l
(1 )
1
bO BFM#3
b7
- The M-code ON signal and M-
code data are turned OFF ('0')
by M-code
an OFF instruction
( B F M # l b 5 = ON).
M-code data BFM#5 (b7 to bo) M-code ON signal
At the programmable controller side, each aux. machine is driven in accordance with the M-code
data.
Since, unlike a WAIT M instruction, a SET M instruction
does not require any start command, it serves
as a convenient instruction to start the succeeding positioning operation (WITH MODE), while the
programmable controller drives the aux. machine.
(WITH MODE) .-
, .
ADR K
, .
100 ,
,
I
.
I .
+
, .
TMR K10 (as required)
DRV . .
c
Posltlonlng I .
(AFTER MODE)
WNT M53 command
M-code
OFF
WAIT M 53
Aux. machine drive
/ BFM#1 b5 is turned ON.
TMR K 10
ADR
DRV
K
+
100
Positioning
!+ /
TMR K10 (as required)
\
\
Start command This command is not required in the
LOOP and CONT modes (see page 19)
Note: Other SET MO to M77 and WAIT MO to M77 instructions will not be executed unless the
M-code ON signal BFM#3 b7 has been turned OFF by the M-code OFF command BFM#l
b5 (from the programmable controller).
See pages 20 and 130 for the differences between SET M and WAITM instructions. -
- 43 -
3.4 Controlling
Program Flow
3.4.1 Jump
instructions
(Description of operations)
to
A jump occurs to a LAB instruction having
I
K LAB
to loo the same number as that designated by the
K LAB
data of CJ, CJN, and JMP instructions.
to LAB number must not be used more than
once
LD X 0 throughout the program.
CJN K
A LAB instruction may be used before or
5
I
102 K CJ 1
after CJ, CJN, and JMP instructions.
to Ig
K JMP It may also be used inside
or outside theblock.
to It is not necessary to finish at the END of the
102 K LAB same block. Other END instructions in other
blocks are acceptable.
-
K JMP 5
LAB
- 44 -
3.4.2 Sub-routine
instructions
Relevant elements:
E E u t i n e call KO to K255
CALL instructions under a CALL instruction can be used up to 15 times.
Execution time:
Instantaneous progressing type (1 msec or less)
I ( 1 ) Machine
home
Subroutine
A I
Standard
subroutine
--
Main program Subroutine program
a,B:'.l::l'.;
Hgfru$
............. ..........
......
.. . . .. .. .. .. .. . .. ;:;:;:,
......................
..........
........
....................... .............
, , , , , , -:::.:::
;;*, ;m&&j
..... ........
:.:.:.:................. ..................... ...............................
.:.:.:.:.:.:...:...........
.
I..
.
4 , 1,500 LAB K 6
255 (3)(9)(11)
1,501 D RV +
1,000 1,502 ADR K 500
A
6-- (4) 1,503 DRV +
ADR 2,000 (5)
1,504 DRV -
B
CALL 6-- 1,505 ADR K 600
ADR 3,000 (6) 1,506 DRV +
C
CALL 6-- (7) 1,507 DRV -
END 67 (8)(10)(12)
1,508 DRV RAD
1,509 WAIT
___ 1,510 RET
L
-
Standard program for home position return
1,991 LAB K 255
CALL K255 may be in any block. 1,992 LD M 101
Home return is performed only once and 01
MI 1,993 CJ K 254
is then turned ON.
IMPORTANT (1) 1,994 DRV ZRN
Thereafter, this process is jumped.
1,995 LAB K 254
General return is performed at the end of the
LAB K6 subroutine. (2) 1,996 ADR + 500
1,997 DRV ABS
1,998 SET RAD
1,999 RET
- 45 -
3.4.3 Repeat instructions
REPEAT Relevant elemenla:
Start of the repeat 1) K1 to Kg999
instruction 2) X70 to X77 (BFM) A value of 0 to 9,999 is valid.
3) X1 to X6543 (digital switch) A value of 0 will execute once.
Execution time:
RPTinstructionsunderaRPTin-
Instantaneous progressing type
struction can be used upto 15 times.
1) 1 msec or less
2) 1 programmable controller cycle
3) See page 136.
position
return A
instruction
RPTprogram
between
an
and an RPE instruction is repeated 1 to
600
too
1 00
..............................
68
69
70
CALL
ELK
R PT
- The subroutine given on page 45 can be used directly.
It is a command standard program for home position return.
71 WAIT
72 ADR
73 D RV
I
74 ADR
75 D RV
I
76 ADR
77 D RV
-
78 TMR
79 RPE
80 D RV Set the general return so that it is used by every block. In this
81 END way, the block may be repeated from the general return posi-
tion instead of the last position.
Page 134 gives details about the applicable versions of the F2-30TP
-46-
Functions of the teaching panel
The F2-30TP teaching panel (TP) is provided with the following 4 modes:
Program mode
In the program mode, the TP executes program writing, reading, inserting, deleting, and verifying
(program check with the PGU) in the memory built in the TP.
Parameter mode
In the parameter mode, the TP executes parameter writing, reading, inserting, deleting, and verifying
(parameter check) in the memory built in the TP.
CPU mode
In the CPU mode, it is possible to execute the transfer of programs or parameters between the TP
and the PGU (reading, writing), verifying (comparing), monitoring, testing, etc. with the PGU.
CMT mode
In the CMT mode, it is possible to execute the transfer (reading, writing) and verifying (comparing)
between the TP and the CMT (Audio cassette tape).
This section explains the TP key operation procedures for all 4 modes described above. These are
summarized in Section 7.
When power is applied to the F2-30TP through the FX-lGM, the following message is displayed.
Press key 1 to work in English characters.
-
1 E N G L I S H C A R A C T
Initial screen
I 2
- 47 -
4.2 About
Functions
-
Functions and overall procedures
I Generation of new programs I
Use the TP keys to write programs and parameters to the RAM memory built in the TP to execute
reading, correcting, (inserting, deleting, rewriting), verifying, etc.
I Storingprograms I
Programs and parameters in the FX-EEPROM-4 ROM cassette can be stored in the
PGU instead of
the CMT tape cassette or the TP's RAM memory.
Mode and function directory
All functions (unless otherwise specified) are valid in the MANUAL and AUTO modes.
. . , , . . . ..
.....................
. . . .. . .. .
-
insertion deletion reading/ writing/ :hecking
display rewriting
PROGRAM
I
I
53
50, 53 52, 53 51, 53 54
PARAMETER 121 55 55
TP TP TP
7 Read 1 Write f 4 Verify
CMT CMT ZMT
>ASSETTE
63 63 64
-
dAGNETlC TAPE
1-1-1 I TP TP PGU TP PGU opera- r~~~ test
7 Read Write Verify MANUAL tion monitor
PG U MANUAL STOP key (PROTECT-OFF)
PGU
- (PROTECT-OFF) valid
:ENTRAL
58 57 58 6 0 to 62 59
'ROCESSING UNIT
F 7
~~~ ~ ~ ~
Program deletion
This section explains the block delete function. The display shows an instance when the whole
program area is to be deleted.
S ES T T E P N O
c
+
1 Numeric value
correction
Deletion end step n u m k r S ES T T E P N O
AAAA.oto1939 ' - A A A A
Keyed-in numerals t
ul
A A A A -
c
+
E
Numeric value
a
a,
correction
Deletion end step number A A A A -
a,
- B B B B
A A A A - B B B B
I F O K - G O
A A A A
- N O P
A>1,999, or B>1,999.
When deletion has been comoleted.
.~ , A's instruction
. steo
~~~
NOP is displayed.
r
Step Control
BLK KAA Insert a CALL instruction immediately after the BLK instruction in
CALL K100 each program. Write SET and RST instructions for special aux.
relay M103 as the contents of the CALL instruction.
to
This example shows that M103 is SET when the PGU's general
LAB
KlOO input X0 is ON and
then
transition is prohibited.
LD X 0
SET M103 Every time a START command is given, the. program
- .~progresses
1
LDI X 0 step.
RST M103
RET However,
STARTcommandsare
ignored
during
timer
await
state
or until the drive operation is completed.
i
- 50 -
4.4 Writing a Program
WR
Program WRITE mode P U S H S S N K E Y
WR key should be pressed
. when the PROG mode has
been selected.
S E TS T E P N O
+
Numeric value
correction
WRITE startstepnumber S E TS T E P N O
EEEE = 0 to 1,939 - E E E E
I
Display instruction of designated step
I E E E E
- N O P
(+) or STEP (-) key.
7 Numeric data
Numeric value
correction
* Displays the designated step number
E E E E
-.
' - E L K K 0
K O fdlowing
number
The step EEEE is displayed.
E E E E t 1
'--NOP
1 1
Correction of wrong
operation for instruction
I or element I
~ Repeatedoperation
-51 -
4.5 Reading,Checking,andSearchingforaProgram
RD
Program READ mode
nNumeric value
READ start step n u m k r SS TE ET P N O
0
0
D i s l , + B L K K 0
0 when AAAA is 0.
Instruction searching
1
-
L
n
c
4 Numeric data
5 0 0
Nurnericvalue .- A
ADR K
Step number
C
.-e 3
? ?
Correction of - A D R K 5 0 0
wrong operation Displays the step number
designated
for a instruction
__-----_________________
displayed. A D R K 5 0 0
L
- N OF TO U N D
The next stepnumber containing this instruction is
c I I searched when the GO key is pressed again. If there is
none, the display above is given.
Note: Pressing the GO key when a step number is displayed reads and displays the corresponding
designated instruction following that step number.
When a step number is not displayed, the search is made from step zero. Otherwise, it is
made from the current position.
- 52 -
4.6 Modifying
Program
a
Program correction
Correction is made based on the idea that the correction point is searched before the appropriate
WR, INS, or DEL operation is selected.
I t
I Search by insirutbn
-53-
4.7 Checking a Program
VtH
Program verification mode P R O G C H E C K
The
VER key should
be :o:pl F 0 K - . G 0
pressed after thePROG
mode has been selected.
P R O C GH E C K
c
If there is no error N O E R R O R
Error instruction step number Error code
r
A A A A P E 1
If there is an error B L K K 6 0
r
Error instructions are
readidisplayed one after P R O G C H E C K
another, and stop when C F I N I S H E D
there are no more.
+ +
Wrong instructionsand step
numbersare displayed, Corred as appropriate. .... ....
. . . ....
. .....
Reverify
.
Other checks
- 54 -
4.8 Rewriting
Parameters
Reading/writing parameters
The procedure to read, write and rewrite parameters is as follows:
RD
Parametrr P A NR OA MS EE T T E R
............. mode
read
WR
Parameter P A R A MS EE TT E R N O
write mode
4 From RD or WR
Numeric value
correction
Parameter n u m k r S EP TA R A M E T E R N O
EE.01023 c
- E E
Displays the designated parameter number
c
0 U N I T O . N P , l : P
IfEEisO
.-+ 2 : 1
A
Though 2: is not displayed, Setting value 1
key entries are valid.
c
-
1 P L S i R E V
T1I
If STEP (+) is used
2 0 0 0
__+I In WR mode nNumeric value
Parameter
change
value correction 1 P L S i R E V
.-+ D
_ D D_O D D_ ~
1
Corrected data f
Data of PARA number 1
is changed from 2,000 to
DDDDDD.
c -
2 M O V E M E N T / R E
2 0 0 0
V
See page 1 2 4 for parameter reading from the TP system ROM to the RAM.
(Parameter correction example)
Changing the valueof parameter number 4 from 100,000 to 20,000 when parameter number 0 is set
to "1 (I,
4 H I G H S P E E D
Confirmation _I
+ 2 0 0 0 0
- 55 -
4.9 ParametersCan Also beChecked
VER
Parameter verification mode
n
c
If there is no error N O E R R O R
-.
1 P L S i R E V
If there is an error P E 1 0 1 0 01
Error code (Pages 109 and 1 10)
Error instructions are
read/displayed one after P A RC AH E C K
c
another, and stop when F I N I S H E D
there are no more.
Displayingerror parameter
Correcting error parameter.
number and data.
Reverify
Drive errors d u e t o t h e s y s t e m u n i t
The proportion between pulse rate A (1 to 65,535) of PARA number 1 and feed rate B (1 to
999,999 pm/REV, mdeg/REV, x10 -4 inch/REV) of PARA number 2 need not be an integral
value.
If the movement distance "C" (ym, mdeg, x 1 0 -4inch) is generated, A/B x C indicates the
amount of pulses generated by the PGU.
There is no immediate significant error if A/B x C is not an integral value.
However, the size of the error will accumulate if it is operated repeatedly using the relative
drive instruction. In the case of absolute drive, an error of 1 pulse may occur due to rounding.
-56-
4.10 TransferringProgramsandParameters
i
I
I
r T P - G M
_ I F O K - G O
Execution of transfer / T P - G M
4
T P - G M
- F I N I S H E D
I3epeat the
Ixocess if there
are any failure If PGU isnot at MANUALETOP
(after correction) T P - G M
S E L E C MT A N U i S T O P
ON
I
I I -
FX-1GM PGU
OFF
-57-
Reading from the PGU
Execute the readingof programs and parameters from the FX-EEPROM-4ROM cassette built in the
PGU to the TP. (In this case, data in the TP is destroyed.)
T P - G M
I F O K - G O
Normal reading T P - G M
c
E X E C U T I N G
I
T P - G M
L F I N I S H E D
In the case of transmis-
sion failure, repeat the Connection failure of the transmission
operation after eliminating connector T P + G M
the reason for the trouble.
T R A N S F E T RR O U B L E
PGU/TP verifying
Execute verifying/comparing of programs and parameters in the PGU and the TP
If there is any inconsistency, the relevant step number is displayed,
T P G M
F I N I S H E D
In the case of transmission
failure or verify error, repeat Up to max. 15 step numbers can be
the operation atter eliminating
the reason for the trouble.
displayed. (Note) E R R O R x x x x x x x x
Verify error x x x xx x x x x x x x
Connection failure of transmission
connector T P : G M
T R A N S F E T RR O U B L E
Note: Inconsistent step numbers of parameters and programs are given as follows:
20 (In the case of parameter number 14, for instance, 2014 is displayed.)
-5a-
4.1 1 StartingOperation
-
Monitoring operation
The operating condition of the PGU in the AUTO or MANUAL mode can be monitored by using the
TP.
T
Select 1 MNT: Monitor without reading or checking
Select 2 VER: Monitor after checking for consistency between the TP and the PGU
Select 3 RD: Monitor after reading from the PGU to the TP
C P MU O N I T O R
I F O K - GR OD - M N T
Execution of monitoring - M4 C
O PN U I T O R I
after reading
\ E X E C U T I N G
1
+ C P UM O N I T O R
- T R A N S F E T RR O U B L E
If there is disconnection
C P MU O N I T O R
Executing verifying c
I F O K - GV OE R + M N T
-
Execution of monitoring d C P U M O N I T O R
after verifying E X E C U T I N G
1
C P MU O N I T O R
V E R I F Y E R R O R
If there is any inconsistency
C P MU O N I T O R
I F O K - GM ON T
4
4 I _*_
9 3 0 0 0
Confirmation -c
- D R V t
-59-
4.12 OtherUsefulFunctions
Mode selection M O DC EP U
' S E L E CF TU N C T I O N
0 Z RDNR I V E
c
Reoperate after eliminating the reason S E L E C MT A N U i S T O P
for the trouble Displayed if the PGU is inthe wrong mode or
if there is atransmission error.
Program rewrite
In the CPU TEST mode, changes are madeto the PGU EEPROM andthe TP memory simultaneously.
The PGU must be in stopped and in theMANUAL mode, with the memory protect switch OFF.
The position address can be rewritten directly or by using the JOG function.
The user can program the target address more easily by actual machine movement utilizing theJOG
.c keys. See page 129 during automatic operation.
'- 1 9 0
I A D A t 5 0 0
1 9 0
- S E L E CM T A N U i S T O P
When the PGU is not in the manual stop state. When a
transmission cable makes a connection failure or the
* A memory protect switch of the PGU is ON, a transfer prob-
lern is generated.
IncremenVdecrernent Current position changed by using the JOG operation 7
2 0 1 2 3 4
Example + 1,234 A B - SD R V
-60-
In the CPU TEST mode, the following function numbers may be selected:
0: Manualhomepositionreturn 1: Rewriting of program(PGU,TP)
2: Rewriting of parameter(PGU,TP) 3: Correction of currentvalue
4: Error
reset 5: Fixedlengthfeed
Parameter rewriting
It is possible to rewrite TP parameters while the PGU continues, when the memory protect switch of
the PGU is OFF in the MANUAL mode. However, the PGU must be stopped first.
S E T P A R A M E T E R N O
CI
r
Parameter No. 8 A C / D E C T I M E
b
0 to 23 --. 1 0 0 0
Reading of the current valueof the designated parameter
Example 8
-
4 I
nCorrection Displays the succeeding
parameter
rewriting
after
I I
I contents the
register
Displays
value current of the
Operate JOG (-) or
JOG (+) as required IC V R 1 2 3 4 5 6 7 8 9
--c
I I n ( Displays
. . the new setting of the current value register1 *
New setting IC V R 1 0 0 01
0 to t 999,999
I Example +1,000
III ' I I - I S E L ELC ,T
I
c v R 1 A2 N3 U4 /5 S6 T 7 O8 P 9 ]
M
-61 -
Error display/reset
When an error occurs in AUTO mode of the PGU, the error code can be read if the mode is changed
to the MANUAL mode using the following operation.
I
Error code number
PGU Display of the error
number code E R R O R C E X X
' I F O K - G O -
If there is
no error
LIW%FX-1GM C E O E R R O R
I
0-
0E r n 7
0 C W . E
Execution of
O E Z error reset
I c
Repeateliminating
after S E L E C TM A N U i S T O P
the
cause ofthe trouble Fromany point
When a transmission cable makes connection failure,
a transfer troubleis generated.
When the error is reset, the LED of the PGU is turned OFF and the error detection signal BFM#3 b6
to the programmable controller is also turnedOFF.
It can also be reset by turning on the STOP input manually. However, care must be taken in this
case, as the error code is reset and lost. (Error code: see pages 108 to 110.)
Current position 1 2 F3 E4 E5 D
6 7 0 9
-+
Correction Refeed
n
- 62 -
4.13 Using a CassetteRecorder
T P - C M T
- R U N T A P E
IRD
I I I
T P - C M T
/ - [ C O M P L E T I O N 1
Completion of playback without any error in the 1st
(2nd, or 3rd) operation
P L AE YR B R A OC RK
If there are errors in all 3 data blocks.
- 63 -
Verification between the TP and CMT
Batch verification of programs and parameters can be executed between the TP and the CMT.
VER
T P : C M T
T P : C M T
+ R UT NA P E
-
- CT M
P T
- V E R I F Y x x x x x
data blocks stored in the CMT. Recording numbers 1 to 3 Step number in
playback
T P : C M T 1 3
C O M P L E T I O N 1 2 1
Consistent recording number (upper line) T I
Inconsistent recording number (lower line) A
Execution is interrupted with the [CAN] or [KEY SHIFT] + [MODE]
Continuation is not possible.
-64-
Putting theory aside
The fastest way to understand program creation is to learn by programming and monitoring simple
examples.
This section not only shows just how to create a program, but also shows how to check for troubles
by using the equipment listed below.
Since the drive unit and motor are not used, always be sure to check the current position by using
the monitor display of the TP when a simulation is in progress.
Items to prepare
Items related to the programmable controller
(1) FX-20P programming panel ............................................................................................... 1
(2) FX-32MR programmable controller ................................................................................... 1
(3) FX-32SW simulation input switch ..................................................................................... 1
items related to the PGU
(1) FX-1GM PGU ....................................................................................................................... 1
(2) F2-30TP TP ........................................................................................................................... 1
(3) F2-30GM-SIM simulation kit ............................................................................................... 1
(4) FX-1 GM-SIM-CAB cable............................................................................................... 1 set
For application examples 1 and 2, it is not necessary to prepare the programmable controller
or its -
-65-
5.1 Kit
Familiarization
f Operation procedure
MANUAL mode
When the ZRN button is pressed, the machine home position return is started. If the PGO
button is pressed 10 times with the DOG input turned ON, the CLR lamp is turned ON at the
same time, indicating that home position return has been completed. In this case, the home
position address becomes 0.
After completion of the above, always be sure to turn the DOG switch to OFF.
When the FWD button or RVS button is pressed, the machine is moved forward or backward.
In this case, the FP or RP lamp flickers.
I AUTO mode
Keep the SVRDY and SVEND switches turned ON. This operation is not possible if SVRDY
is turned OFF. In addition, an error will occur when a drive instruction has been completed
when the SVEND is turned OFF.
To simulatetheaction of apositioningmechanism,theDOGswitchmustbeturned ON
manually.Then,pressthe PGO buttontherequirednumber of timeswhenexecutinga
machine home position return instruction in the AUTO operation mode.
~ Parameter 1
Alwaysbesureto setalltheparametersettings tothevaluesshowninthefollowing
L examples.
- 66 -
(3) Coding
The following instructions form the program for this fixed size cutting example.
Note: Since the FX- 1 GM employs a sequential instruction-by-instruction operation, the ON/OFF
condition will not be read unless the instruction concerned is being executed.
In this regard, the FX- 1 GM uses such a cycle method to wait for the input.
Momentary operations such as pushbuttons, etc. will not be accepted if the pulse is less than
10 msec (except for INT and VCH instructions).
-70-
(4) Programpreparations
(a) Turn OFF the memory protect switch of the FX-EEPROM-4 ROM cassette mounted onto the
PGU (always be sure to turn it ON after programming has been completed.).
(b) Connect thePGU to the F2-30TP TPwith the transmission cable, and then ON
turnthe Power
to the PGU.
(c) Turn ON the MANUAL input of the PGU.
(d) Execute an all-program deletion in the TP by using the following procedure:
(5) Parameter
rewriting
PARA
N0.3 0
PARA No.14 - 0
PARA No.21 - 30
PARA N0.22 - 0
n
Reading check
- 71 -
(6) Programwriting
Execute the program writing as shown below in accordance with the program in the coding sheet,
f Correcting
+
When A key operation is executed incorrectly while writing an instruction, it can be corrected by
the following procedure:
(For the full procedure, see page 53.)
Normaloperation
t_I DATA
t
-72-
(7) Operationprocedure &-
Transfer
Monitoring operation
MANUAL operation
Keep the MANUAL/AUTO input switch turned to MANUAL during manual operation.
(When it is necessary to clear the contents of the current value register in the PGU, this
can be done in the CPU TST mode.)
When the FWD button is pressed, the forward operation is executed.
When the RVS button is pressed, the backward operation is executed. Both of these can
be monitored by looking at the current value displayed by the TP.
-
Step number
Current
value
0 1
(mm)
2 3 4 5 6 7 8 9
I--B L K K 0
AUTO operation
SVRDY = ON
SVEND = O N
Turn the MANUAL/AUTO switch to AUTO,
Set the digital switches as shown below (for example).
#5 #4 #3 #2
lo3 IO* 10' loo
I I I
Y4 Y3 Y2 Y1
When the START button is turned ON, the forward operation is started, which increases
the current value displayed by the TP from 0.
If the STOP button is pressed in the course of the operation, the movement decelerates
and stops.
I f the START button is pressed again, the operation resumes from the current position.
When the cutter drive output YO is turned ON after positioning is completed, the cutter
operation should turn limit switch X4 from OFF to ON and then back OFF.
If the cutter return limit switch X6 is turned from ON to OFF and then ON, the cutting
operation is completed and the next step is executed.
The above operation is performed repeatedly if the cycle stop input X4 is OFF.
If X4 is turned ON, the operation stops at the end of the cycle at the END instruction.
Turn ON the START button to restart the operation.
Note the current value displayed by the TP during this simulation.
-73-
5.3 LearningApplicationProgramming (2)
,i,
Application example (2)
Lift table
Thickness setting in0.1 -mm units
, ~ ' , ~ , ~ - ' ,
Step feed-out and cutter
control are executed by
Reel PGU-1.
m
Y 5 Y 2 Y 1 Y O
-
X O - X 3
PGU-2
START/STOP
PND/RVS/ZRN
L
- 0
X4: Take-out checking
Y3:Table lowering
Output interlock for
,=- Y4: Cycle stop signal output PGU-1 of applica-
I Controtspecifications I
I 1
Y 6 : Home positioning completionsignal tion example (1)
Home positioning
4 t Home return
t
Home positioning completion
(Ye)
(Y6) is used as the START input forPGU-1.
Completion of desired
4
on Cutter (X5) amount of material
...........
Table lowering
6 .t 4 L
r " . " . ' ' ' '
..........
-74-
(1) Externalconnectionsdiagram
-
X6: Not used
Servo
drive
unit
.t
RP, FP, CLR
mw a
IO- 100 IO'
t
unit, see pages 115 to 122.
signals
input
Y3: Table lowering
Y4:
PGU-1
stop
Cycle uu 1111 i N
Thickness setting -' BLK
\
L
- -
I >
I
If the programmable controller is used in combination,
the PGU only
I executes
positioning
control,
making the I/O
writing
much
simpler. I
I
__
-75-
1 1 1
(2) Requiredparameter settings
I PARA-o System
unit I 0 I Machine
system
unit I PARA-12
Ultimate LS logic ) ; ;5( B:Normally
c close
1 PARA-I rate
Pulse 1 (2,000) I PLSiREV -1 PARA-13 Error judgment time
1 PARA.2rateFeed 1 * 200 I WmiREV I designation
PARA-14
Block
Block 0 only
1 PARA-3
scale Unit J IO . l m r n' 1 I PARA-15 Position bias
I PARA.4 Max. w e e d
I PARA-5
Manual JOG speed
I
I
*36
* 36
lcmimin
I cmimin
I
I
PARA-16
Settina of RDY outout Y6
I 1 1 RDY
valid
PARA-17
mode
STOP I I
valid
STOP I
I 1 1
(1)
PARA4 Bias speed (0) cmlmin
PARA-18 Home position
PARA.7 (1) Address
decrement
return direction
Backiash compensation
I 1 I I
PARA.19
PARA.8 Home Dosition address
(l'ooo)
I 1
Accelerationideceleration time
-76-
(3) Coding
-77-
64 LD X 5operation
cutter
the Waiting
for
_ _ _ _ _ ~
CJN 65 K 5-
66 LO M 100
'
Table lowering signal (Y3) and home positioning signal (Y6)
RST 67 Y are reset after the cutter operation.
RST 68 Y 6
EXT 69 K 321 Table lowered to the setting value of digital switches #3, #2,
and # l .
70 DRV +
LD 71 M 100
Sets the table ready signal (Y3)
SET 72
3 Y
I
I I I I
73 RET
LAB 74 3K CALL
For
(Return
K3 stacker
after
sheet
removal)
LD 75 M 100
Sets the cycle stop signal (Y4).
76 SET Y 4
LAB 77 K 6 -
1
12
LD 78 Waiting
5 X for the
operation
cutter
-~~
79 CJN K 6 -
CJN 82
DRV
83 return position Home RAD
84 RET
(4) Transfer/writingoperation
Prepare parameters and programs by using the TP, and transfer them to thePGU-2.
For the operating procedure, see Application example (1) and the description given in Section 4.
-7a-
(5) Executionsimulation
Set the block number (0 to 2) and the thicknessof the sheetsby using the digital switch shown
below:
84 # 3 # 2 81
0LK Y4 Y J Y2 Y 1 YO
a Not used 10' ioo lo-'
When the START button is pressed, the machine home positioning is executed only 1 time
for the initial start operation.
When the RP lamp goes ON, turn ON the DOG switch, and then press the PGO button 10
times in succession to simulate the signals from the drive unitwhen returning to home.
The output display Y6 is turned ON when home positioning has been completed.
When the cutter operation checking switchX5 is turned from OFFto ON and then back OFF,
thetablestartstheloweringoperation,andtheloweringcheckingsignal Y 3 isquickly
operated.
After this operation has been performed 9 times, the cycle stop signal Y4 is operated.
When the take-out checking switch X4 is turned from OFF to ON and then back OFF, the
table returns to the home position and waitsfor a start signal.
If the STOP button is pressed during any operation, the equipment decelerates and stops.
If the START button is now pressed, the operation resumes from the current position.
If the STOP button is pressed while any instruction other than DRV is being executed, the
operation stops at the current program step.
In this case. if the START button is pressed, the operation is restarted from the current step.
-79-
5.4 LearningApplicationProgramming (3)
5 KPPS
M-cod~
Programmable
controlfor
20prnlPLS number output
M1 Y 000
M2 Y 001
Stepping
motor M3 Y 002
M4 Y 003
Y 004
m m 8 * v Letter panel 400 PLS/character M5
~ Controlspecifications I
i-i
4OOPLS
E
YWO
E
YO01
H
4OOPLS
MM
YO02 YO03
M t Display output by M-code
YO04
-80-
(1) Circuit design on the programmable controller side
+I
M8000 79
RUN monitor
FNC
I T 0 IK 0 IK 0 I K1 X01 0
[ ' ]
Block designation (X01 3 to X01 0)
(unit
number 0)
- BFM#O
M8000
M8000
BFM
b6# l b7 b2 b3
b5 b4 bl bO
X004
Multi-axis Continue
Output Input 'Ode
Start
transfer
transfer OFF Stop synchroniz-
ing LOOP Step
Start
PC M206
M207 M205
M200
M201
M202
M203
M204
BFM#3 b7 b2 b6 b3b5 b4 bl bO
Error
M code Remaining - MANU Block
detec- READY Sync wait
X005
Stop ON drive wait AL end
tion
M210M211M212M213
PC
M214M215M216M217
+I Cycle stop
Maooo 78 FNC
+I BFM#3 ( b 7 to b o ) --( M217 to M 2 1 0 ) *1
-
RUN monitor
FNC
79
-
( M207 to M200 ) BFM#1 ( b 7 to b 0 ) *2
FNC78
BFM#S(M-code)
ON M code -. (M227 to M220)
41 FNC M217
+I M300 K3
M220 DECO M-code is decoded to M300 to M307.
M217
M301
+ H l - - - G h C: display 12 FNC
M302
M217
W
-1 I KIXooo I 1 Timer setting value
(X003 to XOOO) + ( D l )
----IF---+*
L E: display
M303 M217
c+ H I *
M304
M217 See page 134 for applicable PC
M: display versions.
M305 M217
S: display
M305
pi+(@ M-code
OFF
command
END
When WAIT MO, and WAIT M1 to WAIT M5 are driven on the PGU, M300 to M305 are turned -
ON. M301 t o M305 are used t o drive outputs YO00 to YO04 of the programmable controller.
The operation progresses after the time duration set with the timer T1 designated by each
WAIT instruction.
-81 -
- Z8-
llVM
11V3
(3)Operationconfirmation
PREPARATION
Prepare the parameters and positioning program by using the TP, and transfer/write them to the
PGU.
MANUAL mode
Turn on the MANUAL input of the F2-30GM-SIM, which activates ZRN/FWD/RVS, etc. in manual
operations.
When executing the machine home position return, press ZRN
the button, turn theDOG switch ON,
and then press the PGO button 10 times in succession.
During this period, monitor the current value by the TP, since this indicates the simulated present
position.
Indication of the current value (x 10 PLS unit)
I AUTO mode I
1
#5
Turn OFF the MANUAL input of the F2-30GM-SIM, andset digital switch #5 n
to 1 or 2.
Instruction SET Y4 of step 68 selects digital switch #5.
a 4 2 1
By making settingsof 1 to 9 using programmable controller inputsX003 to XO00,
X003 X000
X002 X001 timer T1 makes delay operations of 0.1 to 0.9 sec.
Timer setting
a 4 2 1
Make settingsof 0 to 3 by using programmable controller inputsX013 to X010.
X013 X012 X011 X010 If other inputs are usedfor block setting, a block omission erroris generated,
Block setting
Turn the programmable controller to RUN and turn ON the start input X004, which starts the home
position return operation.
On the Fz-~OGM-SIM, turn the DOG switch ON, and then press the PGO button 10 times.
The PGU is operated automatically thereafter, depending of the block designation and timer setting
values.
If cycle stop input X006 is turned ON, the operation is stopped at the block end.
If stop input X005 is turned ON, the equipment decelerates and stops.
In either case, the operation can be restarted by using start input X004.
-83-
The sections so far have described the functionsof the FX-1 GM and its programming procedures.
Now, let's step forward from desk theory to the practical use of the machine.
This section explains the installation, wiring, maintenancelinspection, and troubleshooting of the
main unit.
Mitsubishi recommends that this information be delivered to the end user.
6.1 InstallinginthePanel
6.1.1 Generalinstallationandwiringitems
Installation dimensions
[Mounting to DIN rails]
The PGU can be mounted to a DIN46277 DIN rail (35mm wide) with no additional work.
To remove the unit, pull down the hook on the DIN rail and remove the unit.
Do not attempt to mount the unit on the surface of the floor or ceiling since doing so blocks
the ventilation system. Be sure to mount the unit on the wall.
Thread pitches of the screw holes (M4) for direct mounting are as given in the table below.
FX-32€, FX-1GM
FX-48E I 150
220
FX2-40AP, 40AW 35
FX-8AV 35
FX-232AW 35
-84-
Notes for handling each part of the unit
[Connecting extension cables] -
Always be sure that the extension cable connectors are securely engaged.
[Memory cassette handling]
When detaching amemory cassette, raise the wire handle and slowly pull the handle attached to the
cassette. Always be sure the power to the unit is OFF before attaching and detaching memory
cassettes.
k
l Remove the connector covers on the right hand sideof both
the programmable controller and FX-1GM, so that the cable
may be inserted.
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 Theextensioncablehasnotchedconnectors to prevent
wrong installation. Always be sure to align these notches
Extension connector
properly when inserting them.
Since extensioncablesare veryvulnerable To connectanextensioncable,remove (by breakingthe
to noise, always be sure to keep them 30 to
50 mm away from other electric wiring.
attachments) the fixed protective cover of the cable outlet.
The left side faces toward the main unit.
-85-
I
Precautions during installation
Installation environment
Do not to install the unit in environments with excessive dust, oil, smoke, conductive debris,
or corrosive gas.
Do not install the unit where direct vibration or shock may be applied.
Do not install the unit where it may be exposed to high-temperature, dewing, wind, or rain.
Installation work
When doing threading or wiring, always be sure no chips, pieces of wiring or other foreign mat-
ter falls inside the unit.
After installation, remove the dust-proof sheet (outside the unit) to prevent overheating during
actual operations.
Always be sure to keep the unit at least 50 mm from any other equipment or structure.
Mitsubishi recommends keeping the unit as far away as possible from any high-voltage equip-
jWiringworkj
ment or power equipment.
Do not run the 1/0 signal line of the PGU through the same cable sheath as power drive lines
or high output lines.
Pages 113 to 122 give details about wiring between the PGU, the drive unit, and the motor.
The signal lines should be of length less than 2 to 3 m. Mitsubishi recommends that shielded
twisted pair wires be used.
4
-86-
6.2 Connectina
Terminals
-
I
2 5 w 3A For output
Power supply 1 I
' L 5v 5v + ---* Service
f -5v - + Powersupply
h G q 7-54
> N COM6 For I/O
1FX-1GM PGU
input
I '-
DCDCFor
converter
I IF
I
Common
terminal
When using an FX-1 GM as a stand-alone unit, connect the SG terminal to the terminal for
grounding purposes.
Connect the SG terminals to each other on the main unit of the programmable controller,
extension units, and extension blocks.
r
Precautions during connection
A C power supply
100 to 240 VAC (+lo%, -15%) may be used as the power supply. Remember that incorrect
connection of power lines to the input terminal of the PGU can damage the PGU.
Always switch the power to the programmable controller together with the PGU.
I f the power is interrupted for more than 20 msec, or if the voltage drops excessively, the
PGU will stop and the outputs will be turned OFF at the same time.
Use a wire greater than 2 mm2 for the power line to prevent excessive voltage drops.
lGrounding1
Connect the ground terminal of the PGU to that of the programmable controller, and execute
class-3 grounding (less than 10052) on the programmable controller side.
In this case, do not attempt to execute grounding commonly with any high-tension system.
(Where executing grounding is difficult, the unit may be used without any grounding.)
Mitsubishi recommends not executing grounding commonly with the drive unit or any high-ten-
sion svstem.
Service power supply
The power supply is intended for driving positioning control signals to/from the PGU if the
drive unit does not incorporate a 5V power supply.
When an overload exceeding 0.1 A occurs, the voltage is automatically dropped, to prevent
damage to the unit.
- a7 -
6.2.2 Drive
unit
connections
For the following 2 connection diagrams between the PGU and the DRU drive units, both the FX-
1 GM and pages 113 to 122 will apply as they are the same except for the label names of 2 ter-
minals. (see diagrams.)
PGU DRU
Input response 3 msec
I
I I I
-88-
6.2.3 Connection of general-purpose input terminals
LpF;fl
Input specifications
PGU
I
I I
Internal
I
power supply I
for control
t I
'
7rnA 3.3kR I
I - . - . - . - .I
I
Input terminal:
By connecting the input terminal to COM3 terminal with a no-voltage contact or an NPN open
collector transistor, the input ON state is established and the input indicator LED is lit.
Input circuit:
The primary circuit of the input is insulated from its secondary circuit by the photo-coupler, and
to avoid mis-triggering caused
the secondary circuit is provided with a C-R filter which is intended
by chattering of the input contact or noise from the input line.
Because of this, there is a response lag of approx. 3 msec for both ON to OFF and OFF to ON
transitions. (response lag of 0.5 msec for DOG input)
Input sensitivity:
The input sensitivity current of the PGU is 1.5 to 3.4 mA.
Always be sure to allow an input current of more than 4mA for the input to turn ON safely, and
less than 1mA to allow it to go OFF with proper noise immunity.
__ ~.
I
24V 2%
- ~ ~-~ - -
~~ ~ ~
- -~. ~
FX-1GM PGU
For the connection of digital switch to the general-purpose inputs ( x 0 to x3), see Pages 31
and 123.
-89-
6.2.4 Connection of general-purposeoutputterminals
Output specifications
I. - . - i n ~ r . n ~ p o w e r - .- . - . - . - . - . -. -. - .-.-.
supply for control
I
I COM3
PGU I
Output terminal:
A terminal common to all outputs is used.
Use a smooth power supply of 5 to 24V DC for the external power supply for load driving.
Circuit insulation:
The circuit built in the PGU is isolated from the output transistor with a photo-coupler, however,
thetransistorbasecurrentissupplied by thebuilt-in 24V DC powersupplyusedforthe
general-purpose inputs.
Operation lights:
The output LED indicator is arranged in the photo-coupler drive circuit.
The output transistor is turned ON when the LED is turned ON,
Response time:
The switching time from ON to OFF and OFF to ON is less than 1 msec.
Output current:
It is possible to flow a max. of 0.3A current per 1 output point.
Output connection example
5c 5ov
I I
I
. 1
' Mitsubishi recommends inserting a 2 A
I.-[ COM6/ Y o I Y I I Y 2 I Y 3 I y 4 1 Y 5 I ROY ].-.A
1 fuse every 4 points to protect the transis-
tor fromshort-circuitloads.
Y6
<' <' <>
-
r-
DC
5-24v T
For the connection of digital switch to the general-purpose inputs (X0 to X3), see pages 31
and 123.
-90-
6.3 BeforeStartinganOperation
6.3.1 Preliminary
checks
Mechanical specifications
Alwaysbesurethatthemechanicalspecificationssuch as loadtorque,loadinertia,accelera-
tion/deceleration times, operation speed, stopping accuracy, etc. are correct.
All these points must be fully checked even if they seem to be complicated, in addition to providing
data for selecting the optimum motor.
Initial settings
Always be sure that each of the parameters in the drive unit and the PGU are compatible.
For instance,doublecheck themode of thepositioncontrolpulse,logicpolarity of eachsignal,
rotating speed/direction of the motor, etc., or allowable pulse error (in-position),
error judgment times,
etc.
Performing correct wiring
Since excessive voltage, power terminal short-circuits in output wiring, etc. can result in serious
accidents, always be sure to check these points carefully before turning ON the power supply.
-91 -
6.3.2 Checks in the MANUAL mode
Power-ON check
When power is supplied to the PGU, the power indication LED on the upper right hand side of the
PGU goes ON.
This LED is so designed as to be turned ON by the built-in power regulator in the PGU.
If the LED fails to go ON when the power supply is connected, a hardware fault such as a broken
fuse caused by the contamination by foreign matter may have occurred.
Please consult your nearest Mitsubishi representative.
UW8 FX-1GM
0-
0R l D Y
Os=
O C W , E
POWER
READY
CPU-E
YITIUBIEH
,
MEM-E
I I I I
Program check
Mitsubishirecommendschecking the programsandparametersstored in the PGU by usingthe
teaching panel (TP).
Wheneitheraparameter or programis changed, it isabsolutelynecessary to check boththe
parameter and program, as they are interrelated.
Program check
....................... . If there is any error, it is necessary to change the program(see the error codes (PEO to
PEE) given on page 108).
Parameter check
::..:,.:..::;
....y:...:.: . . .:.,:.
. . .,,...., If there is any error, it is necessary to change theparameter,(seetheerrorcodes(PE10
to PE18) given on pages 109 and 110).
*
f
Error Detection
When an error code CE1 to CE20 mentioned on pages 108 to 11 0 is detected, the error detect-
ing BFM#3 b6 is operated as given below. (See pages 93 and 94.)
I\ 1 During
positioning
operation
or
stopping 1 Onlyduringstoppingpositioning
in I
CE10: Watchdog timer error CE1 1 to 1 4 , 17: Parameter error
MANUAL LS is ON CE16: Servo end error CE15: Emergency
or AUTO Either code results an emergency stop (Stop completion delay)
during operation. CE20: Servo ready error (DRU failure)
I AUTO only ~
CE1, 2 , 5 to 9: Instruction error
CE3, 4 : Register overflow
-92-
6.4 StartinganOperation
4
Programmable
controller PGU
other equipment
n
READY indicator
When the READY indicator is turned ON, the manual home position return (ZRN), manual forward
(FRD) and manual reverse (RVS) buttons become valid when the MANUAL input is active.
The LED is normally turned OFF during positioning.
If the MEM-ERROR LED goes ON or flickers when a manual operation is executed, read the error
code in the TEST modeof the TP to investigate the cause of the trouble.
Error codes CE10 to CEX) apply here. They ere explained on pages l
o 9
...
........ .... and 110. (See also page 92.)
The probable causesof such trouble include improper parameter settings, operation of the emergen-
cy limit switches, servo end error (delayed positioning completion), servo delay error (DRU power
OFF to failure), etc.
When an error occurs, press the STOP button to reset the error flag. (Restarting cannot be done
unless, the error flag is reset.)
Execute the necessary parameter setting change, and then the parameter/program
check described
on the previous page.
Even if sucherrorsdonotoccur,Mitsubishirecommendsalwayschecking to besurethatthe
operation direction and speed are correct.
-93-
6.4.2 Checks inthe AUTO mode
MEM-E and ERROR indicators
When the manual inputto the PGU is turnedOFF (AUTO mode), the READY indicator normally goes
ON.
When the START button is pressed in the above state, program execution is started.
If any error occurs during the operation, the MEM-E is turned ON, or the ERROR display flickers
which stops the motor.
In such a case, turn on the manual input to the PGU, which will allow the cause of the error to be
investigated by using the TP.
Error codes CE1 to CE20 apply here and are explained on pages 108 to
110. (See also page 92.)
I/O indicators
Check the input wiring of the PGU by making sure that the input indicators go ON corresponding to
the ON/OFF states of the appropriate input switches.
Also, make sure there are no contact faults in the input switches.
If the load does not turn ON/OFF according to the output indicator, check the output wiring.
-94-
6.4.3 Motor rotating
direction
The motor rotating direction is determined by the contents of parameters number 11 and number 18, ..
The direction the motor turns when the machine is moved by a forward pulse may also be
changed by the wiring and the machine specifications.
Correct connection of emergency limit switches
Notes: When P A R A number 12 is IO', pulse generation stops when an emergency LS is turned ON.
When P A R A number 12 is " l ' , pulse generation stops when an emergency LS is turned OFF.
* Install the LSF and LSR to positions a little away from the normal operating range.
When an emergency LS is actuated, the motor stops running. Manually give a STOP input
to the PGU to reset errors before restarting operations.
(Memo)
To enable servo motor operation, LSF and LSR must be connected to the D R U , and the setting on
the PGU must be normally ON (PARA number 12 "1 ") or OFF (PARA number 12 "0").
In this case, when theD R U is automatically stopped by an actuation of LSF or LSR, the P G U cannot
recognizethestopstate.Therefore,usetheauxiliary LSFand LSR whichoperatebefore LSF or -
LSR operates and are connected t o the PGU for improved operations control.
-95-
6.4.4 Internaloperations of the PGU
The 110 signals are only read/written at certain times and are specified in the following table:
Signal fetching timing
Motor Speed
.
Command pulses generated by the PGU have a time duration expressed by integers in l-psec
units. Therefore, the pulse generation frequency is obtained as follows:
1
f = - x l o 6 (PPS) where n is an integer in the 5 to 50,000 range.
2n
When n = 5, f = 100,000 PPS. When n = 6, f = 83,333 PPS. Any frequency between these is
not available.
I f parameter setting or a speed command designates 90,000 PPS, actual operation is executed
with 83,333 PPS which is the closest available frequency.
When a stepping motor is driven in a high frequency range, there may be abrupt fluctuations in
frequency and the motor may malfunction. The recommended frequency range is 20 kPPS or
less.
d
-96-
6.5 Maintenance
(2) Always be sure that excessive dust or conductive debris has not entered into the unit.
(3) Always be sure that the terminals are not loose and are free from rust.
\ I ' '....'
Teaching panel
& Battery
-97-
The chapters so far have described in detail all areas on the use of the FX-1GM PGU.
This chapter summarizes the main points to allow the design work to be made by quick referencing
of these pages.
The chapter also gives a connection diagram of the stepping motor/servo motor drive unit (of some
makers) to the PGU.
Manuals prepared by the relevant manufacturers give details about connecting the drive unit and
motor.
-98-
7.1.2 Specifications of themain unit
General specifications
Performance specifications
- 100 -
7.2 Signals
SVRDY
Servo DRU output ON if no error. Set it to ON if a stepping motor is used.
Servo ready
DRU
SVEND
Servo end
1 Servo DRU output ON after positioning is completed. Set it to ON for stepping motor.
PG U
One-turn (or half-turn) signal of servo motor e.g.7.2"lpulse for stepping motor
Zero-point signal
7 1
FPiPLS Set by PARA No.9.
Forward Dulse Type A: Forward pulse Type B: Reverse pulse
PGU
RPiPLS Set by PARA No.9.
Reverse pulse DkJ Type A: Reverse pulse Type B: Forward pulse
CLR Clears deviation counter when servo motor returns to home position. Not required for stepping
I 1
Clear signal motor.
LsF
Forward limit
K Turns OFF when the forward limit is passed. When PARA No. 12 is 'l', Keep PGU input ON
Machine when the switches
are connected to
Turns OFF whenthereverselimitispassed.WhenPARANo.12is '1'. the DRU side,
Turns ON when a point near the machine home position is passed. Provided in front of the
reverse limit.
ON:Manualoperation(MANUALmode)
Manual operation OFF: AUTO operation (AUTO mode)
START Starts automatic operation when turned ON momentarily. To restart operation after STOP,
Posltioning start START needs to be turned ON again. Same as START signal B F M t l b3 of programmable con-
troller.
i T o p l
Stop signal Operation panel
1
Manual or automatic operation stops when this is momentarily turned ON. START is not ac-
cepted when this is ON. Same as STOP of programmable controller or teaching panel,
I
Machine home PG U Machine home return starts when it is turned ON momentarily Valid in manual
sosition return only.Commandis
also possible from
:WD(X5) Forward operation is enabled when this is ON. 0ne.pulse feed is ex. teaching panel
Wanual forward ecuted for every ON of 0.5 sec or less. under the TEST
WS(X6) Reverse operation is enabled when this is ON, 0ne.pulse feed is ex- mode.
ecuted for every ON of 0 5 sec or less.
KO to x 3 Block or position data designation, general.purpose control input, etc.
3enerai.purpose input
YO to Y5 PG U
Turned ON/OFF by program stored in PGU
1
3EADY (Y6) Machine
General.purpose output or READY (waiting for START), depending on PARA No.16.
1 :o: POWER
powerwhen ONI Turned is PGU to the ON. I
~ 1
0: READY I Turned ON when a process
a START command)
is completed. Affected by WAIT and END instructions. (when waiting for
1 1
0: CPU-E I TurnedONwhenCPU 1
~~~ ~~ ~~ ~ ~ ~
I :@I MEM-E
ERROR 1 Turned ON when there is a programiparameter abnormality or parity error. Flashes when there is an
emeraencv stoD (LSF, LSR oDerationl. servo readv error, servo end error, etc.
- 101 -
7.2.2 Programmable
controller-related
signals
When the power to the PGU is turned OFF, all data is cleared.
Detcrlptlon
- I I I I I I 1 I 1 I I I I I I
BFM
b15 b14 b13 b12 bll b10 b9 b8 b7 b6 b5 b4 b3 b2 bl bO
#O
-
Block desianation 10 to 99)
Multi. Continuous
#1 - - - - - - - axis
synch
Output Input
!;ye
transler transler Start
Mutfi-
sris
dog vakd aync Step Loop
- - - M126
-
#2 M121 M122
M120 M123 M124 M125 Y444 M127 Y442 Y441
Y443 Y440
Remain.
#3 - - - - - SET WAIT WAF Made Error in9 - iT :2k
--
M M MO ON detection
READY drwr MANUAL
wail
114 M116 M117M115 M114 M112 M111
M113 M110 - - - - M100 M101 M102 M1
#5 M codes 0 to 77 (see page 20.)
#6 Lower bit
-
C I
Current PGU value (converted to pulses)
#7 Higher bit
#8 Execution step number (0 to 1,999)
Current values, execution step numbers, and execution
-
-
+ #9 Execution block number (0 to 99)
block numbers of the PGU are automatically written to -
# I 0 Lower bit these areas. State of these areas can be monitored by
Setting value register 70
-
# I 1 Higher bit the programmable controller. -
#12 Lower bit
Setting value register 71
# I 3 Higher bit
1
# I 4 Lower bit
-+
I
# I 5 Higher bit
Setting value register 72
- 11 #30 ]Type code: 5,010 (FX.lGM's used number) This is written automatically when the power is turned ON.
1
#31 Unusable
Notes: See page 19 for BFM#l, and pages 21 and 125 for BFM#3.
(1) BFM#l, b6 = ON (Inputtransfer)
The ON/OFF states of the input terminals (A to L, X0 to X3) of the PGU are written to BFM#27.
By reading the state using the programmable controller, they can be used for input monitoring
or as extension inputs for the programmable controller.
(2) BFM#l, b7 = ON (Outputtransfer)
The ON/OFF states of BFM#26 areoutput to YO to Y6 of the PGU. Since they are already used
in the programs in the PGU, SET YO to Y6 instructions cannot be used in the PGU. Also, the
PGU's digital switch setting cannot be read.
(3) BFM#2, #4: Seepage 28.
(4) See page 134 for the applicable versions of programmable controllers.
- 102 -
7.3 Instructions
Normally-open contact
t
Start of the logical
operation
t1
0 to 6 (PGU
general-purpose Normally-closed contact
input) I
0 to 6 (PGU
general-purpose Normally-open contact
output) Connection of
series contact
440 to 444 Normally-closed contact
(from the
programmable
controller)
100 to 127
Parallel connection of a normall
Algebraic addition of ADR and &?
o en contact
- 103-
..
CJ, CJN, JMP, CALL jump destination.
0 to 255 (label
Jump to the designated label if condition logic
No. must not be is OFF.
used repeatedly)
0 to 6 pose
input
DRV * instruction,
a
440 to 444
controller
0 to 6
PGU general-pur-
After an input is turned
ON, driving is discon-
tinued and execution is
440 to 444
controller
- 104-
- 105-
7.4 Parameters
System unit
settina l o l - 2 1 -
I I
I
Number of
L
+. Invalid
65,535 PLSIREV
rotation
motor I I lto
Movement
amount for 1 or
10 motor rota- Invalid
tions
1
I I
1 mm 1 o3
0 1 dea
I 1
O PLS
I
0.1 inzh
Minimum
command
unit 1 I -..i m......
n m 0.1 mm
(max. number 1 102 0.1 deg
0.1 deg PLS
of digits: 6) 0.01 inch
(max. current
value register 0.01 mm
range 0.01 deg 2 0.01 deg
I
22,147,483,647 0.001 inch 0.001 inch
pulses)
0.001 mm 0.001 mm
0.001 deg 3 loo 3 0.001 deg
I 1
PLS
1 I
0.0001 inch 0.0001 inch
Max.
speed 123,bO,O 10 to 10to
100,000 100,000
0101
cmlmin
Manual JOG
1
speed 153,000
1 0 to 10,000
1
Bias speed 15,300 10,000
Oto PLS
65,535
Acceleration/
deceleration
time 1 50 to 5,000 msec
Timebetweenthebiasspeed
to all oDerations.
(No.6) andmax.speed NO.^), gradientiscommon
- 106-
Setting '0: B-type : PLS + SIGN (rotating direction)
Setting '1 h y p e { : Forward + reverse pulses
I
~
10
(26) Pulse
logic Setting '0' (positive logic): Low to High trigger
Setting '1 ' (negative logic): High to Low trigger
Setting of rota. Setting '0' (increase): Current value increases with a forward pulse
tion direction Setting '1' (decrease): Current value decreases with a forward pulse
Setting '0' (N0):Switch ON for error
Setting '1' (NC): Switch OFF for error
Block
designation
(27)
Position bias
~~
RDY output Setting '0': PGU RDY output valid (Y6 terminal)
Setting '1 PGU general-purpose output Y6 valid
(Y6) setting
I:
17
(27) I STOP
mode
Setting '0:: STOPcommandinvalid(duringAUTO)
Setting '1 : Temporarystop.ContinuewithSTART.
Setting '2': To the next step after STOP. (Remaining distance ignored
Setting '3': To the END step after STOP. (Remaining distance ignore d)
Home return Setting '0:: Address increase
direction Setting '1 : Address decrease
0 to 255 times
J
I
Setting '0' or '2': DOG input from OFF to ON
Setting '1 9 or '3:: DOGinputfromON to OFF count starts,
Setting '0' or '1 : Turns OFF when switched
23
(25)
Count
start
logic from AUTO to MANUAL. Home position completion M101
from AUTO
Setting'2'or'3':Nochanewhenswitched
to MANUAL.
- 107-
7.5 Error CodesChecking
- 108 -
7.5.2 Parameter checks
designation
PARA-15 Excessive compensation
MEM-E
Position 0 to 265,535 range ON
bias Other than shown at left Max. 6 5 , 5 3 5 (pulse conversion)
PARA-16 0, 1, 2 If PARA-16 is set to '0" or '2',
-
- RST Y6 and SET Y 6 are ignored.
PARA-17 0,1 , 2 , 3
PARA-18
- -
I
Home 0.1 -
return
. . .......
.. . ..... ....
I PARA-19 I .... ,
I
&
ni;g value register over.
PJEM-E
Home P s i -
tion ad-
o to 2999,999
- k . i. .. @ J ~ j
d.r e.s.s.
Beyond 2 2 , 1 4 7 , 4 8 3 , 6 4 7
.. . ,
, , ...
1 to 153,000/
PARA-20 machine system
Home 1 0 to 100,000/ Auto default to less than max.
return motor system (1) Other than shown at left value. (PARA No.4)
sDeed 1 0 to 1 oo.ooo/ (2) PARA.20 > PARA.4
I ' I composite system
- 109 -
I
svstem I comDosite I I I
PARA-22
Down
counts to Q to 255 - - -
home
.................
PARA-23
Count Q, 1, 2, 3 - & SVRDY error ERROR
Servo DRU error FLASH
start logic SVRDY signal is not ON.
Error detection signal BFM #3b6 is operated when errors (CE1 to CE20) occur. (See page 91 .)
In this case, give a STOPcommand in the MANUAL mode or TEST mode of the TP to reset the error flags.
- 110-
_ _ _ _ _ _ ~
~ ~ ~
~ ~ ~
7.6 Teaching
Panel
Operations
u
I
I
...... I
I
I
I
I
I
U
RangedOto1,999
I- Range of 0 to 1,999
Deletion of 1 instruction
U
RangedOlo1,999 Deletionof dispbyed lnstrudlon
Parameter
-111 -
..
7.6.2 CPUandCMTmodes
CPU mode
3: Current value
rewriting I I I
Note: Turn off memory protect switchof PGU during Stop in MANU,to re-write parameter or instruction.
In this case, TP and PGU are re-written simultaneously. (See page 129.)
4: Error dirolav and
rea
" II r
I
1
I
I 1
Rewritii Ihe wnent vakre regster (CLa)
CMT mode
RecordlngfromthoTPtotheCMT Playback from the CMT to the TP
Exmion Exewtion
Vnilication between the CMT and lhe TP
-112-
Reading Reference Parameters
The following two kinds of reference parameters are written to the system ROM of the F2-30TP:
Use the following key operation to read any of the parameters to the RAM of the Fz-SOTP, andmodify
them to transfer them to the FX-1GM.
o I
system
setting
Unit I 1 I 1 I system
unit
Motor
pulse
1 Pulse rate 2,000 500 PLS/REV In-
valid
2 Feed rate 2,000 2,000 pm/REV, mdeg/REV, 10” minch/REV
3 Min. setting unit 2 2 10 PLS (ADR K1OO or 1,000 PLS)
4 Max. speed 100,000 5,000 PLS/sec
5 1 Manual JOG speed 1 10,000 1 1,000 I PLA/sec
6 Bias speed 0 250 PLSisec
7 Backlash compensation 0 PLS
1
0
Acceleration/deceleration
1,000
I I
1
Current value is increased with forward
11 Rotation
direction
setting 0 0 pulse.
12 Ultimate LS logic 1 1 Normally closed
13 5,000 msec
1
Error judgment time 5,000
Block designation by the programmable
14 Block
designation 3
I I 1
3 1I controller
15 Position bias 0 0 PLS
16 1output
RDY
Setting
of I 0 I 0 I PGU output
RDY
valid
17 STOP mode 1 1 STOP command valid
18 Home return direction 1 1 Address decrease
19 Iposition
address
Home I 0 I 0 I PLS
21 1
speed
Creep 1 1,000 I 500 1 PLS/sec
22 I counts
Down to home 1 10 I loo I Times
23 1logic
Count
start I 0 I 0 I DOG input OFF - ON
Note: Reference parameters of [I] are transferred into the RAM of the F2-3OTP before shipping.
- 124 -
READY Signals and START Commands
in thePGU operate inthe following
READY signals (the wait state for START commands) generated
equivalent circuit.
[START commands are not accepted if a READY signal is not ON.]
MANUAL
Manual
operation
detection
Error
IY IY
AI AI
#3, b6
Block MANUAL b5 #3,
START in ut from the PGU
#3,bl or STARfcommandfrom a
Synchronizing wait programmable controller
i
Automatic operationstart
OFF
4
1
WAIT (M 0) START command OFF
OFF
II
#3, b 9
#3, b7 *
MANUAL
(M
WAIT 0)
Aux. devices are drivenb
the programmable controier;
the Mcode OFF command
BFM
and
OFF areb5
#1, also
OFF driven.
SET MXX
A+
# 3 , b 10
I I
bo end state.
wait
the
MANUAL input of the PGU is OFF.
bl MANUAL MANUAL
input of the
PGU is ON.
(AUTO mode)
I b2
I b 3
Synchroniz-
ing wait
- I
The wait state before execution of DRV or
DRVC instruction in multi-axis synchronizing
mode (BFM #1, b2 = ON).
I
by a START command or DOG input
ON (BFM # 1 ,b8 = ON),
I b4 Remaining
drive
wait
Temporary
remainina
drive
stop
mode
(PARA No. 17
is '1 '.) the
in by a START command,
I b7 M codeON As shown
bythe
equivalent
circuit
or WAIT MO
When an M code OFF command
(BFM # l , b5) is turned ON.
When an M code OFF command or a START
b8 WAIT M O
instruction is executed command is turned ON
b9
WAIT M When a WAIT M1 to M77 instruction is
When an M code OFF command is turned ON
I
executed
- I25 -
Supplement Related to Instructions
(1) Combinations of drive instructions and address instructions
Shortestdistance
ADR K and ADR -are regarded as ADR +.
movement drive ADR + DRV ROT ' Page 38
L I 1 4
Absolute drive
ADR (1) ADR Kand W T K are regarded as ADR +. DRV ROT
EXT * DRV ABS 2 to 9,999
Page 37
I I I I
Relative drive
ADR K (2) ADR * and W T are regarded as ADR K and
EXT K
L DRV * Page 36
EXT K respectively.
1 c c
(2)
interrupt INT X
Remaining
drive INT Page 41 Page 40 VCH Y
Multi-stage and fixed-speed
Interrupt stop
ADR K operation
c c DRV
EXT K
Page 41
ADR * c
EXT r
I I I I I I
Multi-stagespeed
positioning ADR * (1 1
+ DRVC ABS c
EXT ADR K
NOP Page 39
ADR K (2) EXT K
c DRVC t c
EXT K
t
(2) Handling of sequenceinstructions
ELK
After executing instructions such as BLK, DRV,
DRVC, CJ, and CJN,it is also possible to drive
coil instructions such as SET Y , RST Y , SET
M, and WAIT M directly without using an LD
MlOO instruction.
- 126 -
2-Axis Operations
This section following gives an example of a 2-axis operation when two FX-1 GM units are connected -
to 1 FX series programmable controller.
-
3 DRV ZRN
4 SET ~-
RAD 254
LAB 5 254 K
(1)
(1 1 ADR
ADR
DRV (2) ABS
ABS
DRV 9 (2) WAIT
10
ON
M220 1 MWAIT
10
11 I ADR I + I 100 I NOP is also
usable.
- 127 -
(Programming on the programmable controller side)
Block K0 designation
FNC M8000 79
RUN monitor
+I T O K O K O KKO 1 (Special unit No. 0)
M8000 RUN b2
monitor b3 b4 1 b5BFM#b6 b7 bl bo
PGU No. 0 and M code Multi-axis . Continue
Output Input Start
modeNo.1units Stop
AIL8
transfer transfer OFF Loop Step
4 ing
M8000
IV
I
Programmable
M207 M206 M205 M202
M203
M204 M201 M200 * 3
A' M202 controller
I
b2 b3 b4 3b5 BFM#
b6 b7 bl bo
1 1
--
M8000 Remaining -
IL M code Error READY
AI I O N 1 drive wait Sync wait jMANUAL B;:C,~
M8000 No, 0 unitto PC M217 M216 M215 M214 M213 M211
M212 M210 * 1
-+I No. 1to
unit PC M257 M256 M255 M254 M253 M252 M251 M250 * 2
W
xool stop
-+I
78 FNC M8000
BFM
No.#3 (unit 0) - (M217 to above
M210) 1
M-code read
BFM #5 (unit No. 0) - (M227 to M220)
M220 M217
Drill down
Lower Upper
I
Start
T
Stop
T
-
limit
T
-
limit
T
M-code ON M-codeOFFcommandcancel
i V
/I RST M205
M217
To controleachaxisindependently,providean
aux. relay for 8FM #1
I
COMl YO00 YO01 YO02 YO03 I 1
No. 0 No. 1
<> Drill down for X axis for Y axis
- 128-
Teaching in the Automatic Step Operation Mode
Using the signal step flag M103 (see page 28), position constants can be changed more easily when -
READY is ON while trial-running the program even during automatic operations. This feature had
been availablein theTEST mode whenMANUAL input was ON (manual operation). Use the following
procedure:
[Applicable versions: F2-30TP ROM version V1.2 (October, 1988 and after)]
(Operating examples)
First, switch the PGU to RUN and set the TP to monitor:
.....
1
- A D R
0
t 1
3
0
0
0
0
0
0
0
- Current position
JOG operation:
- A D R
0
t
3 0 3 0 position
3 0 0 0 ,
Current -
I
I
- A D R
0
t
3
3
o 3
0 3 0
o I4
4
position
I
Current
Pressing the GO key increases the step number by 1. The ADR K instruction,
to an ADR * instruction.
which is used to confirm overwriting, switches
1 0
- A D R t 1
3
0
0
0
3
0
0
0
- Current position
Hereafter, pulsing the start input will advance the program execution to the next step.
Note: Remember that this the TEST mode is while the PGU is in AUTO mode.
Hence, the outputs YO to Y6 may become ON; in addition manual DRV ZRN and fixed length
feed on the TP are invalid.
- 129 -
.. -.
M-Code Data Handling
I
PGU program Sequence program
I WAIT
M53
1
FROM I I I I
1
KO K3 K2M210 K1
I(1) Execution PGU
I(2) BFM# 3 b 7--. M217 128 64 (32) (16) 8 (4) 2 (1)
BFM#5
b7 b6 b5 b4 b3 b2 bl bO
FROM I KO K5 I K2M220
BFM# 5 --. K2M220
I
i
1 K1
.
-I]
0 1 0 1 1 1 / 0 1 1 1 0 ] 1 I ON I
128 64 (32) (16) 8 (4) 2 (1)
BFM# 3 b 7 ON
(M-code ON signal)
M353
RST I M205 I
IL
necessary, A
M-code ON M-code OFF command
- 130-
Unit Systems for Parameters
I
I 1 I I
PARA No. 0 ‘1 PARA No. 0 ‘2’ PARA No. 0 ‘0’
Motor
system units Composite system units Machine system units
I
I I
Movement amounts Movement amounts
I
1
PARA No. 3 For ADR instructions PARA No. 3 For ADR instructions
‘0‘ : 1o3 PLS ‘0’: 1 mm 1 deg 0.1inch
‘19 : lo’ pLs +- ADR K100 ‘1’ : O.lmm 0.ldeg inch 0.01
92‘ :
‘3’:
10’ PLS
100 PLS
makes 10,000 ‘2‘ : mm
0.01 0.01deg O.Ool inch 01
Unit p m . mdeg,
pLs. ‘3’: 0.001mm
0.001deg 0:0001 inch or 10‘ inch is
used inaccord-
Home position address ance with to the
Home position address selection of feed
0 to *999,999 rate B.
I
0 to *999,999
I
L
Command unit isas designated by
PARA No. 3.
1
Command unit is designatedby PARA No. 3
1
SpeedcommandsSpeedcommands
c
Speed commands
I
c
PARA No. 4 Max.speed PARA No. 4 Max.speed
Units
10 to 100,000PLSIsec *1 1 to 153,000
I
PARA No. 5 Manual JOG speed PARA No. 5 Manual JOG speed
cmlmin
10 to 100,000 PLSIsec *1 1to 153,000
04
Unit p m . mdeg,
PARA No. 6 Bias speed PARA No. 6 Bias speed or 10’ inch is
used in accord-
0 to 100,000 PLSIsec T2 0 to 15,300 ance with the
selection of feed
PARA No. 20 Home position return speed rate 0 .
10 to 100,000PLS/Sec
Command value m u s l
PARA No. 21 Creep speed . . be equal to o( 185s
than that o h & by
10 to 10,000 PLSIsec T2 1 to 15,300 t h e fdlavhg lwmuk
- 131 -
Outline of FROM/TO Instructions
Communications between an FX series programmable controller and an FX-1 GM PGU are controlled
by the FROM/TO instructions of the programmable controller. (See page134 for applicable program-
mable controllers.)
r M pro FROM I
K 2
ml
K 6 I
rn2
Dl20 I K 4 I
n
I
EFM read
-
ReadcommandReadingfromspecialunit No. 2 BFM Y6 to #9
4 word data is transferred
to programmable controllers D l 2 0 to D l 23.
ml : Specialunitnumber or blocknumber
Units such as an FX-1GM, FX-4AD, FX-2AD-PT, FX9DA, and FX-1 HC are numbered
No. 0 to No. 7, beginning with the one nearest the main unit.
m2 : Head designating number (m2= KO to K31) of BFM
m: Head element number of the destination of transfer. T, C, D, KnY, KnM, KnS, V, and
Z can be designated.
(Index registersV and Z can be used for qualificationof element numbers.)
(
n Number of transferpointsinunits of 1 wordwith16-bitinstructions.n = K1 to K32
In units of 2 words with 32-bit instructions. n = K1 to K16
r M 6 0 ' 1
TO I
rnl
K 2 I
m2
KO 1 Dl12 I
n
K 1
Notes:
(1) Puttingmakes a 32-bitinstruction,andputtingmakesapulseexecutioninstruction.
Each instruction can be used in4 combinations.
(2) When X0 10 or X0 1 I is OFF, transfer is not executed, and the data in the destination does
not change. When a pulse execution instruction is used, transfer is executed only when
the instruction drive input state is switched fromOFF to ON.
- 132 -
Responses of Each Signal
The responses of each signal of an FX-1GM are described using the programming example given
below.
(Programming example:)
0 BLK K 0
I Parameters
No. 4 Max. speed: 500 PPS
I
I
1 ADR K 10 10 pulses
output.
are No. 5 Bias speed: 500 PPS
Others
Waits for an M-code OFF
signal from the program- Used in combination with a programmable controller.
mable
controller. The SV END signal
is always kept ON.
M-code OFF
WAlr Mi command
Inputfilter BLK PDR DRV
< -
Pukeoutput
~
-
wait DRV
-1mr - ~
PuhOutpUt
- END
1m 20 ms 1ms 20 mr 1 ms
h r Ilmrlm
n
(bdh ON and OFF) 1 2 9 1 0 1 2 0 1 0
ct<2
Pulse output (FP) r
... ...
r=
PGO 1 ws
DOG 0.5 msec
I than the
Other above 1 3 msec I
- 135-
Timing for Fetching from an External Digital Switch
PARA No. 18 is used to designate the home position return direction. Thisis also used for selecting
of 8 msec/digit or 64
the timing for fetching the signals from an external digital switch. Either timing
msec/digit can be selected by using an F2-30TP (version V1.3 or after).
-
Setting '3' Current
address
decreases.
ams *I
t 4
PGU X0 to X3 (data
input) 1st digit
2nddata digit data
The same timing is used for data fetching from an external digital switch when an SPD, EXT, or
RPT instruction is used.
Usually a timing of 8 msec/digit is selected for fetching data from an external digital switch.
When output data of a programmable controllerother than the FX series is fetched through the input
channels of the PGU, as shown below, and if the response of the programmable controller is slow,
select 64 msec/digit to improve the timing of the I/O operations between the two.
(a)
- 136 -
When Making Connections Using Extension Cables
Special units and blocks such as pulse output units, analog input blocks, analog output blocks, and
high-speed counter blocks which are operated by FROMnO instructions can be connected directly
t o the main unitof an FX series programmable controlleror to the right sideof other extension blocks
or units. Up to 8 special units and blocks can be connected to 1 main unit, and they are numbered
as Numbers 0 to 7 beginning with the one nearest the main unit.
To connect an extension cableto an FX-1GM pulse output unit, open the panel cover (1) and remove
I
(by breaking the attachments) the fixed protective
cover (2) of the cable outlet on the left sideof the
FX-1GM pulse output unit. Open the connector cover (3) on the extension unit or block, and then
connect the extension cable.
I YlTSUBlSHl I
lml
Thereisaprojectionontheextensioncable
connector to ensure it is correctly inserted. Fit
this projection in the opening on the left side of
the extension connector when connecting the Opening
cable. I Extension
connector
I - I
- 137-
MEMO
REVISIONS
Owing to the very great variety in possible applications of this equipment, you
.- to its suitability for your specific application.
must satisfy yourself as
i
i
A MITSUBISHI
ELECTRIC
CORPORATION I
640.
!
HEAD OFFICE: MlTSUBlSHl DENKl BLDG MARUNOUCHI TOKYO 100 TELEX: J24532 CABLE MELCOTOKYO
HlMEJl WORKS: CHIYODA CHO, HIMEJI. JAPAN
r r
3
Effective MAR. 1993 i