TTYPES OF INSTRUCTIONS AND LISTS . 0 . . . . . . . . . . . .
W When NC Unit Entered SD Mode from Offline State. . . . .
When NC Unit Entered SD Mode from Online State. . . . .
When NC Unit is in Offline State (System No.6 + SD MODE)c , . . 9 . . . . . 9.6.1. . . ~ 49
When NC Unit is in Online State (System No.4 + SD MODE). . . . 9 . . . . . 9,6.2. . . . 49
ChapterSection
. . . . . .. . . . .
. . . . . .. . . . .
. . . . . .. . . . .
. . . . . .. . . . .
. . . . . .. . . . .
. . . . . .
. . . . . .. . . . .
. . . . . .
. . . . . .. . . . .
. . . . . .. . . . .
. . . . . .. . . . .
. . . . . .. . . . .
. . . .
. . . . . .
. . . . . .. . . . .
. . . . . .
. . . . . .
. . . . . .. . . . .
. . . . . .
. . . . . .. . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .. . . . .
. . . . . .. . . . .
. . . . . .. . . . .
9
9
8
9
9
. . . . . . . . . .
7
7
4 . . . . . . . . . . .
3
9
9
6
. .10.....10.5.1. ...72
6...’ . . . . . . ..”13
9
10..............67
9..............45
9
. . . . . . . . . . . . . .
8
8
8 . . ...8.1. ...43
10 . . ...10.2. ...68
10 . ...10.2.2. ...68
3 ., . . . . . . . . ...2
7
9
9
9.7.3
9.9
8.2
9.10
9.11
7.1
3.2
9.11.2 .. . 62
9.13..64
6.2. ...13
9.7.1“ . . . 50
9.2. ...46
8.3. ...43
7.2. ..15
9.13.1 . . . . 64
9.13.2 . . . . 64
. . . .
. . . .
. . .
. . .
. . . .
. . . .
. . . .
. . . .
. . . .
Page
53
57
. 43
. 59
62
15
15
4
2
43
...
111
1. OUTLINE
1. The programmable controller (called PC hereafter) for
YASNAC J50L/J50Mstands between the standard
YASNAC NC unit and the machine tool. It facilitates
the compact and efficient utilization of the sequence
control required by the machine tool through the software.
2. Sequence program editing of PC can be performed efficiently with CRT”; NC and JSD modes are easily
changed and selected.
2. BLOCKDIAGRAM
The blockdiagramof the PC systemfor YASNAC
J50L/J50M is shown in Fig. 2.1.
YASNAC J50L/J50M
——_ ______ _/
RS232C
INTERFACE
CPU UNIT
n-”-”-----‘,
DATA 1/0 lNTER FAcE (OPTION)
3. The PC is optional and it is installed in the NC unit, if
selected.
4. In this manual, “PC programming method” (Selections
1 to 8) and “Sequence program editing unit and the
operatingmethod” (Sections 9 and 10) have been
explained so that the users to facilitate the use of the
above described PC.
~–———–7
,--4
~=::j
——-—
- +’ %;~HERj*f5~23
L_____J
r:D’= ~y~TEM
● c5’’$~-3
_~_(SeeNOTE 1.)
1
I
1/0 MODULE
r
-k----n
Solid line shows
ed with P.C.
Brokenline shows the sequenceprogramedit
sYstern temporarilyused by incorporatingthe
sequenceprogramedit system(JDUO1) in
YASNAC.
Note:
1. When the control is used as sequence program
edit system, the operator’spanel with CRT
display changes to the sequence program edit
panel.
the YASNACCNC unit provid-
‘M~CHINE
OPERATOR’S
STATION
—————
J
Fig. 2.1 Block Diagram of PC System
For YASNAC-J50L/J50M
Sequence program edit system (JDUO1) can be
2.
mounted on the CPU rack.
P-ROM writer which is commercially available
3.
may be used.
sequence edited and checked into P-ROM.
4.
Tape reader is used to load List Tape in
which sequence ladder is coded or P-ROM
Format Tape consisting of machine language
into sequence edit system.
5,
Tape puncher punches out the completed
sequence edited and checked in the form of
List Tape or P-ROM Format Tape.
It is used to write the completed
3. SPECIFICATIONS
3.1 FUNDAMENTAL
Controlmethod:
(1)
(2) Processingtime:
Approx.2.7 l.i seclstep
qighspeedscanningtime - 8 msec
Low speedscanningtime - 8 msec x n (n is
determinedby the capacityof the total
program.)
(3) Program memory capacity :
Memory element :
Basic – 64 k bytes (1 EPROM)
(64 k bytes corresponds to approximately 16000 steps
Note:
2 bytes #1500 and #1501 can be carried out through
the address name #1500, Example:
I
~A&essNo,
PUSH #1500
Referto the 1/0 listsshown in Appendix1,
2 for details.
(c)The input signalsin the orderof #1000-
1999 are expressedby the followingsymbols.
5
5.2ADDRESSMAP AND DISPLAYSYMBOL
(Cent’d)
(2) Addressesof Output Signals to Machine
(#1100- #1162)
Theseare the addressnumbers+ bit numbers
(# rfi[~d[.~) of outputsignalslike,lamp, solenoid,etc.
machinecontroller,etc.
from the machine operationpanel,
This sectionshould
also be decidedthroughthe machine tool builder,
(a)1 bit of the address#1100 correspondsto 1
point of the outputsignal.
(b)The addressnumberand the bit numberare
determined,dependingon the number of the pin
and the numberof the connectorof the 1/0
boardto which the inputsignalis connected.
Example:
-BitNo.
?6543210
#llw
01-5101-6101-7101-8101-41 101-27101-26101-25
~PinNo.s
ConnectorNo.01
Lk
Outputsignalname(arbitrary)is registered
Referto the I /O Lists shown in Appendix1,
2 for details.
(c)The outputsignalsin the orderof #1100 #1199 are expressedby the followingsymbols.
Refer to “Appendix:1/0 list” for details.
However, they differ for YASNAC J50L (for lathes) and
YASNAC J50M (for machining centers).
So, refer to the corresponding list.
(b)The inputsignalsin the orderof #1200 #1295 are expressedby the followingsymbols.
_’+fl—(a)
(4)Addresses(#1300- #1338)of Output Signals
from NC Main Section
In otherwords,these can be termedas input
signalsto NC main sectionfrom the PC.
For
example,the addressnumbersand the bit numbers with respectto the EDITand MEM (memory
oPeration)Selection.
The numbersbetween1300 and 1329 are
determinedas standardsignalsand theycan
not be changed.
(a)1 bit of the addressesbetween#1300 -#1329
correspondsto 1 pointof the input signal.
Example:
~Bit No.
21
H/SJ
RANDLE/ JOC
STEP
#1300
65
7
EDTMEM
ME210RYMANUAL TAPE
EDIT
43
T
D
Refer to “Appendix : 1/0 list” for details.
However,they differ for YASNAC J50L and YASNAC
J50M. So, refer to the corresponding list.
0
RT
RAPID
(3) Addresses(#1200- #1295)of InputSignals
from NC Main Section
ln otherwords,these can be termedas output
signalsto the PC from the NC main section.
For example,the addressnumbers+ bit numbers
with respectto the M-BCDsignals.
Thesenum-
bers in the orderof #1200 are determinedas
standardsignalsand they can not be changed.
(a)1 bit of addressesbetween#1200 and #1295
correspondsto 1 point of the inputsignal.
Example:
Bit No.
#lZoo
7
M28
6
M24
43
5
M21
U22
v
functionBCD output
M
M18
210
)412Ml 1
M14
I
6
(b)The outputsignalsbetween#1300 and #1329
are expressedby the followingsymbols.
(5) Addresses(#1400- #1999 exceptfor #1700 -
#1799)for InternalRelays
Theseare the addressnumbersand bit numbers
with respectto the internalrelayswhich can
only be used insidethe PC while preparingthe
sequenceprogram.
1/
(a)1 bit of the addressesbetween#1400 - $1492
correspondsto 1
internalrelay,for example.
1/0 list example:
(c)In a register,
.
pressionsymbol.
examplesof the symbols.
the addressitselfis the ex-
The followingshows two
“l400-
(b)The number of usableinternalrelaysare as
follows .
500 bytes
(c)The internalrelayand its contact
expressedby the followingsymbol.
Thereis no limit for NO and NC contactDoints
until the programmemorycapacityis exceeded.
(d)Adressedused in registercannot be used as
internalrelay.
(6] Addresses(#1400- #1999 exceptfor
#1700 - #1799)of Register
Theseare the addressnumberswith respectto
the 1 byte(= 8 bits)registerfor general
purposeuse.
..
registerinstructionor for the workingaddresses
of macro instructions.
(a)1 addressnumber
of 1 byte.
1/0 list example:
//1500
#1501
~Writethe internalrelay
name (arbitrary)
x 8 bits = 4000 relays
pointare
Theseregistersare used for
correspondsto 1 register
4
Insertthe name (arbitrary)
of the register
t-+l?l
b
(d)Addressesused in internalrelaycannot be
used as register.
(7) Addressesof Timer(#1700- #1799)
Theseare the addresseswith respectto the
timers.Theyare used in the instructionof
timers.
(a)1 addressnumbercorrespondsto 1 timer,
1/0 list example:
#1700
//1701
(b)The time unit and the numberof usable timers
are shown in the followingtable.
Address No.
#1700-#1709, #1’760-#1769
#1710-#1729, #1790-#1799
#1730-#1749, #1780-#1789
#1750-#1759
#1770-#1773
The range of set valuesis O- 255.
(O-127 for variabletimer.)
(c)The symbol exampleof timers is givenbelow.
Example:
[fl
!
Insertthe nameInsertthe set
of the timer
#15cJn
#15ncl
No. of
timers
I
!
I
20
3,0
30
10
4
<i
,t
J
value,etc.
Time unit
1 = 8 msec
1 = 100msec
1 = 50
msec
l=lsec
l=lmin
(b)Numberof usableregistersare as follows:
500 registersfrom #1400 to #1999 exceptfor
#1700 tG #1799.
l-w1
LTimerinstr~c-L set value of
tion(2 types)
#17Kln,DnH
I
timer(Hexadecimal)
7
5.2 ADDRESSMAP AND DISPLAYSYMBOL
(Cent’d)
(8)BatteryBacked-upMemory(#7OOO - #7999)
(a) The aboveaddressesof #7ooO to #7295 are
differentiatedfrom othersby the name “bat-
tery backed-upmemory. ”
of #7000 to #7295 are preservedin the battery
back-upmemory in the standardNC main section.
So, evenif the powersupplyis turnedoff,the
data are not erased.
(b)The sequenceprogramof PC unit can only
handleimage data of the PC unit.
data from NC main sectioncan not be handled
(readingor writing).
(c)Following3 typesof batterybacked-upmemo-
ry data are available.
Sequencerparameter:#7000 - #7099
Keep relay:
Keep memory:J
STANDARD NC
MAIN SECTION
) BATTERY
BACKED-UP
MEMORY
IF
+-----------1
L
#7100-#7999
1
{/7000
#7;99
1
I
That means,the data
The original
PC SECTION
F
SEQUENCE
PARAMETER
#7000
P
&
KEEPMEMORY
#7100
H
(9)
(lo)
(11)
I-J
(e)Transferof keeprelayand keepmemory data
to NC.
The image data of the PC unit keeprelayand
keep memoryare sometimesread and written,
so theyare changedin the sequenceprogram.
Consequently,it becomesnecessaryto preserve
the latestimage data of the PC unit by transferringthem to the batterybacked-upmemory
as latestoriginaldata.
is explainedbelow.
Automaticdata transfer
When the powersupply
on, the data of #7100 from PC to NC unit.
(9)Addresses(#7000-
Parameter
Theseare the addressnumberscorrespondingto
the parameterof the sequencer.
#7000 - #7099 can be changedthroughthe normal
writingoperation.
sequenceprogram
a~ Usingas 1 bit
data.
(a)Using as 1 bit
1/0 list example:
r‘it
76543210
#7000
Symbol expressionis carriedout in the follow-
ing way.
dtl
~Writedata name
Andthis procedure
of the unit is kept turned
#7999 get transferred
#7099) of Sequencer
The data of
Thesedata can be used in a
in the followingtwo procedures:
data and (~,
data
No.
Using as 1 byte
I
(d)Transferto sequencerparameterdata to PC
In additionto the powersupplyturningon, the
sequencerparameterdata is transferredto PC
from the NC main unit underthe following
conditions.Throughthe parameterwriting
operation,even if a singlesequencerparameter
data is modified,then all the sequencerparameter data are transferred.
the imagedata of the pC are alwayslatestdata.
The sequencerparameterdata can only be read
in the sequenceprogramand theymust not be
modified.
8
Consequently,all
Data “l”= Closed
Data “O” = Open
(b)Usingas 1 bytedata
1/0 listexample:
/7000
1A
UI~sertparameterdata name
Data “l”=
Data “O” = Closed
Open
Thesymbol expressionis the addressnumber.
The exampleof usingin timer is shown in the
followingfigure,
Example:
l177il,#70 ::7::
t+y~
Variabletimer
instruct ion
Timer setting
by parameter
‘
I addressnumber beyond#7100 correspondsto
(a)
one
keep memory of 1 byte(8 bits).
list example:
1/0
//71061~
~Writethe name of the
keep memory
I
(10) Addresses(#7100- #7999)of Keep Relay
Theseare the addressnumbersand bit numbers
of the keep relaysused in the PC.
(a) I bit of #7100 - #7999 correspondsto 1 keep
relay.
1/0 list example:
➤Bit No.
76543210
“7100P==@===
‘Writethe name of the keep relay
(b)The numberof usablekeep relays
follows .
900 bytes
(c)The keep relaysand theircontact
are
expressedby the followingsymbols.
CRTscreenhas displayas shown in eitherFig.(i)
or (ii) .
[HereafterFig.(i) is to be called2-digitdisplay,
while Fig.(ii)is to be called4-digitdisplay.]
DIAGNOSIS._-_____= ._~OOOO ‘0000
‘L--~:N-O____-_____!-??: ‘--–---”
.--_:#8600:
:#8601:
1
;r--l
,#860211(001)1
h8693j(O02)~
;#86041fiO03)~:05;
I -~-J1
;#86051 ‘loo;_______
;#8606 ;
1
I
L--------—-1
I
r-l
1o11
1
!02:
;03;
,04;
la SET T~
DIGIT
Fig.(i)#6022 D2=0#6355=8602
- POT NO, TITLE
.-POT NO.
- KEEP MEMORY
#6356=8604
Note:
If a particularbit is desiredto be
changedO Z1, carryout followingoperations
afterthe operationof item 5) .
Depressthe
cursorkey and adjustthe cursorto the bit
desiredto be changed,then depress~key.
0=
1 changewill be obtained.
1:
0 changewill be obtainedif the~key
is depressedagain.
(13)Writing of Keep Relay NumericalInput
(Optionalonly for J50M)
Writingto keep memory(#7100 - #7999)
can be
normallvexecutedfrom O to 255, however,4-digit
writing’is also possiblewith numbers#860”0 --
#8999.
to each otheras shown in the figurebelow.
#7100 - #7499 and #8600 - #8999 correspond
#7101
is alteredby writingand alterationof #8601.
I’iote:When keep memory is referred
from sequence,use #7100 - #7499,
not #8600 – #8999.
Z8600
*71OO
I
$8601
37101
I
I
aa999
L
:
IT7499
DIAGNOSIS
[:-:N]::__ _ ___ __T_-w.r - ‘- ‘- - -
----l#8600[
[#86011
1#8602~(001)
I#8603;
;#8604; (002)
j#86051
:#8606;
I
----- --- .-— ~
I
ltiNio91_____–________ –--.___!-.
Fig.(ii)#6022 D2=1#6355=8602
00000 NOooo
----
,,
!02011
I
II
I
,0403+SET T4
DIGIT
!,
t
I
II
105051
II
1;
,
100001
L-—J
POT NO. TITLE
-KEEP MEMORY NO.
#6356=8604
For Fig.(ii) , evenand unevennumberkeep memories are used in pairs,O
to 9999 are available
by expressingthe higher2 digitsof the decimal
4 digitswith evenNo. keepmemory,and lower2
digitswith unevenNo. keepmemory.
Pot No, display[Figs.(i) , (ii)]
When the max. and min.
set to parameters
#6355 and #6356, Figs.(i) and
keep memory numbersare
(ii)show how #6355 and #6356 are set for #7402
#8604, respectively.
and
(b)Writingto keepmemory
TurnsystemNo. switchto “ 1“ .
Use pagecursorkeys~and~to move the
cursorto keepmemory No. to be changed.Input
new figureand depressWR key.
on
Procedurementionedaboveenables#8600 - #8999 rangedata to
be changedand set.
10
Notes:
.
The same memory is used for #8600 - #8999 and
#7100 - #7499:if a valueof #8602 is changed,
that of #7102 is changedto the same value.
.
When the displaycan be extendedup to 9999,
as in Fig.(ii),the even numberkeep memory
dataare changedto one lowernumberand
cursormoves there by writingwhen the cursor
is at an unevenkeepmemory number.
.
If #6355 and #6356 are set conversally,pot No.
title and pot No.’ are not normallydisplayed.
However,if #6355 and #6356 have keepmemory
No. on the same page,pot No. title is displayed,
[Referto Fig.(iii).]
.
If unevennumberis set by mistakefor #6355
when 4-digitdisplay(#6022 D2=1),pot No. is
displayedfrom the even numberkeep memory
No. which is one number higherthan the pot
No.
DIAGNOSIS00000 NOOOO
@~::____-____ T-_ N@+---
#8600
#8601
#8602
#8603
# 8604
#8605
#8606
#8609
Fig
. (iii)#6022 D2=0#6355=8604#6356=8602
-. ---— ------ .
01
02
03
04
05
06
07
09
-.
POT NO.
TITLE
r DIAGNOSIS
P-NO
?$8600(010)
?48601(011)
#8602 (012)
L
Fig.
(V)#6022 D2=0#6355=7391
. When pot
#6355 and
● In 2-digitdisplay(#6022 D2=O),writing-in
numberis not displayed,set O for
#6356.
00000NOOOO
T-No
01
02
03
4
1
morethan a 3-digitnumberis not accepted.
(14)AddressSettingof 1/0Board
1/0 board has a rotary switch for address setting.For
rotary switch and address, refer to the table below.
(a) Standard 1/0 Board
‘C660
FC810
1/0AreaNo.
1
2
Input
#1000
#1813
#1016
to
#1029
#1032
#1:45
3utput
#lloo
to
#1111
#1116
to
#1127
#1132
to
#1143
1/0
AreaNo.
1-1
1-2
2-1
2-2
FC861
Input
#1000 #lloo
to
#
1007#1106
$1008
to
#lo15
#1016#1116
to
#
1023#1122
#1024
to
#lo31
#1032
output
to
#1108
to
#1114
to
#1124
to
#l130
#1132
DIAGNOSIS
P-NO
#8600
#8601
#8602
#8603
#8604 (001)
#8605
#8606 (002)
#8609
00000Noooo
T-NO
0201
0403
0805
0807
Fig.(iv)#6022 D2=1#6355=8603#6356=8606
.
If a number lowerthan that for #6355 is set for
#8600, pot numberfrom #8600 is lowerthan the
numberalreadyset to display.[Referto Fig.
(v). ]
#1046
#1061
#1148
to
to
#1159
For rotary switch (SW1) setting and 1/0 area No., refer to
the table below.
Swl
o
I
1
2
3
4
I
5
—
I
63-2
7
8
Q
:0
F
I
1/0Area No.
FC861
Nosetting
1-1
1-2
2-12
2-2
3-1
4-1
4-2
No setting
FC8lo/Fc860
Nosetting
1
setting
No
setting
No
3
No setting
4
No setting
11
5.2 ADDRESSMAP AND DISPLAYSYMBOL
~Cont’d)
(b) CRT Panel Buik-in I/O Board
SP50
Area No.
1/0
1-1#looo to #loo7
1-2
2-1
2-2
3-1
3-2
4-1
4-2
I
,
I
InDut
#1008 to #1015
#1016 to #1023
#1024to #1031
#1032 to #1039
#lo40 to #lo47
#1048 to #1055
#1056to #1063
For rotary switch (SW1) setting and 1/0 area No., refer to
the table below.
lists.
machining centers) are shown in the Appendixesat
the end of this manual.
(1)For preparingthe sequenceladder,firstof
all,carryout the assignment
(#1000 and #1100) betweenthe PC and the
machine tool.
(2) Afterthe completionof the assignmentof the
1/0 signals,referto the 1/0 list as a list for
data and freelypreparesequenceladderthrough
the command symbolsof the PC.
it is convenientto use the abbreviatednames
like SW7, SOL A, etc.for elementnames.
successivelythroughthe software,so the operations are quitedifferentfrom that of the simultaneousprocessingin the case of normal relay
circuit.
standingof this point priorto programming.
6.1
Relaysequence:Each elementis simultaneously
PC sequence:Each elementis successively
Example:
r::~
The abovePC sequenceladderis operatedin the
followingsequence.Simultaneousprocessingis
nevercarriedout.
So, it is necessaryto have clear under-
DIFFERENCESIN OPERATION
processedwithregardto time.
processed.The ladderis repeatedlyprocessedat a con-
stant period.
calledscanningtime.
(Scanningtime Ex, :8 msec
X n times)
A
//10001
B
$
/}10001/}11001
Conditionof contactpointA is read.
This is outputto internalrelayB as it is.
Conditionof contactpointA is read.
AND logic is taken from the NC contact
point of relayB.
The resultis outputto internalrelayD.
This periodis
B
#llool
D
#lloo2
LD //10001
OUT I11OO1
LD #10001
AND NOT #11001
OUT #11002
Exampleof coded
sequenceprogram
(calledlist)
6.2 SCANNINGTIME(PR~EssINGTIME)
The executiontime from the start to the end of
a sequenceprogramis calledthe scanningtime.
The scanningtime for this PC is as follows.
High speedscanningtime:8 msec
Low speedscanningtime:8 msec
That means,in this PC,the sequenceprogram
can be processedby dividingit into the high
speedprocessingpart and the low speedprocessingpart.
as follows.
71
@
:-IT
+!
In this case,write the program
Part of sequence program
for high speed processing
jEndcomnand forhigh
speed processing
instruct ion
Part of sequence program
for low speed processing
End instructionfor
x n
E-.II#-‘equence program
Due to this successiveprocessing,the internal
relayD is not turnedon.
the aboveladderis executedby the relay
sequence,the relayD is turnedon for a moment
and therebyone shot operationis beingcarried
out .
rememberedthat the processingin the PC is
carriedout successivelyand then programming
should be completed.
abovementionedPC sequenceladderis coded
accordingto PC command words,it takesthe
As discussedabove,it shouldalways be
followingform.
On the otherhand,if
For reference,if the
The firstpart of the writesequenceprogramneeds
high speedprocessing.“--
(1)RelationshipbetweenHigh SpeedProcessing
and Low SpeedProcessing
i-
m~=
RTH
8 msec
1-
8 msec
1-
8 msec
13
6.2 SCANNINGTIME (PROCESSINGTIME) (Cent’d)
(a)Fromthe beginningof the sequenceto the
RTHcommand,
(highspeedSeq.),
is surelyexecutedonce within 8 msec.
the executionof this high speedsequence,the
input conditiondoes not change.
(b)The low speedsequenceprogram(low speed
Sea.)afterRTH command is dividedinto “n” items
and one of them is executedin the remainingtime
of 8 msec.
sequenceprogramis executedin 8 msec
times time.Consequently,the valueof “n”
dependson the capacityof the whole programand
the lengthof the high speedsequenceprogram.
Since the low speedprogramis dividedinto many
parts,sotheI/Oconditionchangesin the middle. So,be
sure totake NOTE ofitem3 ofthis section.
(c)At the firstpart of the 8 msec section,all
the input conditions(#1000 and #1200) aye taken
in the PC at a time.
(d)At the last part of 8 msec section,all the
outputconditions(#1100 and #1300) are output
at a time.
(2) Precautionsfor High SpeedProcessing
SequenceProgram
In this program,only the portionwherehigh
speed responsessuch as countingof ON/OFF
are necessary,is handled.So limit it to the
least possiblesize of the sequenceprogram.
Limit it within100 steps when convertedinto
to be outputuntil the end of the executionof
low speedprocessingsequenceprogram,once
receivedoutputsthem throughthe internalrelays
withoutoutputtingthem to the addressesof output of the PC unit.
same to the addressof the externaloutputat
the tail of the low speed processingsequence
program.
RTH
1’
I
Receivethe input of
low speed processing
– through the internal
relay
Then,do not connectthe
(3)Precautionsfor Low SpeedProcessing
SequenceProgram
(a) The scanningtime for low speed processing
differsdependingon the capacityof the total
sequenceprogram(8 msec
of programthat can be executedwithin8 msec
is approximately3000 steps when convertedinto
contactpoint instruction.
of stepsis the combinationof high speedand
low speedprocessing.)
(b)Since divisionprocessingis carriedout
duringthe executionof the low speed processingsequenceprogram,the input condition
changes.
used throughthe low speed processing
sequenceprogramneed to be received
throughthe internalrelaysat the top of
the low speedprocessingsequenceprogram.
Then,use the contactpoint of the receiving
relayin place of the input.
Consequently,all inputsto be
x “n”).
However,this amount
(Theamount
Writethe desiredoutput
after one cycle of the
low speed processing
sequence
6.3MEMORYCAPACITYOF SEQUENCE
PROGRAM
The sequence program is finally written to the EPROM
(Erasable Program Rem) and then used.
The capacity of the program memory of this PC can be
used according to the following distribution.
Division No. of Bytes c~nven~i~n pROMS
132 kbytes
(Usually,relayinstructionis of 3-7 bytesand
othercommands are of 1-25 bytesrange. )For
the memorystoringthe sequenceprogramof 16K
bytes,4000 steps(16 K/4 = 4K (4000 steps)is
required,if approximately4 bytesis used for
one step.
Step
Approx.
8000steps
No.of
PROM Location
1
on
PCBoard
JANCD-CP50
30
14
7.PC INSTRUCTIONS
This chapterexplainsthe 61 type basic instructions and 11 typemacro instructionsthat can be
used with this PC while describingtheirfunctions,
displaysymbolsand codedlists.
7.1PRELIMINARYKNOWLEDGE
(Registersto store intermediateresultsduring
logical operation )
(1)PC is providedwith a registerto storeintermediateresultsof logical operationof sequence
programs,
and it consistsof 1 bit + 16 bits,as
shown below.
~-
Th. T.SU1, .f operationcurrencly executed is stored (0 or 1)
L I.str.ctIon such .S AND-STRor OR-STR
i’
[- lns,rucrfonsuch ., STR ., STR.NOT
(2)RR (ResultRegister)
l-bitregisterto which the resultof operation
currentlyexecutedis stored.The contactstatus
(O or 1) can be set into RR by the LD instruction
or the RR contentscan be outputto the relay
addressby the OUT instruction.
Also,l-bitshift
of the stack registercontentsto RR (afteroper–
ation)by the STR or AN D–STRinstructionis
possible.
7.2TYPESOF INSTRUCTIONSAND LISTS
(1)InstructionTypes
Thereare the followingtypesin the instructions
used with PC.
Basic instructions(61 types)
@)Instructionsfor relay:
13 types
@Instructionsfor registers:37 types
@)Instructionsfor timers:
@Controlinstructions:
Total
2 types
7 types
59 types
Macro instructions
(1)
Macro instructions:
(2)
Auxiliaryinstructions:
9 types
4 types
(3) StackRegister(Stack,STO - ST15)
Intermediateoperationresultingfromlong logical
operationcan be savedinto the stack register
sequentiallyup to 16 bits,
Data in RR is shiftedto STO by the STR or
STR-NOTinstruction,and data in the stack
registeris shiftedby 1 bit towardright .
Also data in STO and RR is operatedby the ANDSTR or OR-STRinstruction,set into RR,and
data in the stack registeris shiftedby 1 bit
towardleft.ST15 is clearedto “O. “
If the
numberof STR or ST R-NOTinstructionsdoes
not equal to the numberof AN D–STRor OP.-STR
instructionsused in a seriesof long logical
operationsuntil the final resultis obtained,it
resultsin an error.In otherwords , the number
of times that data is savedin the stack and the
numberof times that data is fetchedout mustbe
equal.
15
7.2TYPESOF INSTRUCTIONSAND LISTS(Cent’d )
(2)List of instructionsfor relay
=7===
-+--b=-
+-+=
5
6
7IXOR
8IXNR
9
10ST R-NOT
11AN D-STR
12
=+=
13I
Note:
1. The * column shows the execution time convertedto the contact instruction
2, The $ mark shows that the RR contents change after instructionsare operated.
OR
I
OR-NOT
I
STR
I
OR-STR
OUT
(1 = One contact instruction)
The — mark shows that no change occurs.
*
1
Readssignal status(0 or 1) and sets it to RR
I
Readsinversionsignalstatusand setsit to RR
1
I
1Sets
1
I
1
I
1
I
1
I
1
I
1
I
1
1
1
1
AND of contactand RR to RR (AND)
Sets AND of inversionsignaland RR to RR
(ReverseAND)
Sets OR of signaland RR to RR (OR).
Sets OR of inversionsignaland RR to RR
(ReverseOR) .
Setsuncoincidencebetweensignaland RR to RR .
Sets coincidencebetweensignal and RRto RR.
LoadsRR contentsto stackand executesLD
instruction.
LoadsRR contentsto stackand executesLD NOT
instruction.
I
Sets ANDof RR and stackto RR.
I
Sets OR of RR and stackto RR.
Writesoperationresults(RR)to relay(address).
,
Meaning
RR after
operation
I1
I
I
I1I
I
I
I1I
III
I
I
I
I
I1I
1
—
t,
I
I
I
I
I
I
I
Page
19
19
20
20
20
20
20
20
21
21
21
21
21
(3)List of Instructionsfor Timers
Instruction*Meaning
No.
10Timerprocessing(Fixedtimer)
10
Timer processing(Variabletimer)
16
1
2
TIM
TlvfR
RR after
operation
time up = 122
time up = 122
Page
(4)List of Instructionsfor Registers
No.Instruction*
IN R
1
I
DCR
21
CLR\2I Clearsthe registercontents.
31
CMRI3 I Invertsthe registercontents.
41
51
61
71
10DEC3Coincidenceof registercontentsand numeric.
11
12
13
14
15ADD4
16
17AN R
18
19XRR
20
21
22 IMOV
23DST
24 I
ADI
SBI
‘N’I3IANISO
8OR1
9
XRI
COI
I
CMP
I
CPI
I
MVI
SUB
I
ORR
1I1
CPR
COR
DIN1, 7I Data extraction
I
Adds + 1 to registercontents.
3
I
I
I 3I Adds -1to registercontents.
I3 I Additionof registercontentsand numeric.
]3I Subtractionof registercontentsand numeric.I–
f registercontentsand numeric,
3OR of registercontentsand numeric.
3XOR of register.contentsand numeric.
4
I
I
I
I
[,
I 4I TransfersR1 contentsto R2.
I
Coincidenceof registercontentsand numeric.
I
3IComparisonof registercontentsand numeric.
4IComparisonof registercontentsand numeric.
3Load numericto a register.
Adds registersR1 and R2 and stores the result
in R2.
SubtractsR1 from R2 and storesthe result
4
in R2.
I
TakesAND of R1 and R2 and storesthe result
4
in R2.
TakesOR of R1 and R2and stores the result
4
in R2.
TakesXOR of R1 and R2 and storesthe result
4
in R2.
Checks
5
I and stores the result in I?2.
CheckscoincidencebetweenR1 and R2, and
5
sets the resultin RR.
TransfersAND of R1 contentsand numeric to
5
R2.
the result of com arisen of R1 with R2,
Meaning
RR after
oDeration
I
—
I
l–
I–
l–
l–
I–H“
—
—
1
I1
I
I
I
1
I
—
—
—
—
—
—
I
Page
22
I
I 22
123
I 23
I 23
I 23
24
24
24
24
I
25
I
I
I
t
25
2!5
25
25
25
26
I
I
l—
I
—
–127
I26
25
26
26
26
25
ADC
I
4IDouble lengthaddition
I
17
7.2TYPESOF INSTRUCTIONSAND LISTS( Cent’d )
No.
:nstructio]
26
27
28
29
30lNRW
31
32
34
35
36
37
ADDW
SUBW
MULW
DIVW
DCRW
CLRW
CORW
CPRW
MVIW
DSTW
*
Adds double length registers(wR2 and WR1) and
4
stores the result in WR2.
SubtractsWR1 from WR2 and stores the result in
4
WR2,
Multipliesdouble length register(WR2) with regis-
10
ter (Rl)and stores the result in WR2.
Dividesdoublelength re ister(WR2) by register
15
(Rl)and stores the resu t in WR2.
3 I Adds + 1 to double lengthregistercontents.
Adds - 1 to doublelength registercontents.
3
Clears double length registercontents.
3
233CMRW
Invertsdouble length registercontents.
1
Sets coincidenceresultof double length registers
3
(WR2 and WR1) to RR.
Sets comparisonresultof double length registers
3
(WR2 and WR1) to RR.
Loadsnumericto doublelengthregister.
3
TransfersAND of double lengthregister(WR1)
5
contentsand numeric to doub–le len~th register
(WR2) .
Meaning
?
RR after
operation
H-
1s set to
RR “
“ 1“ when
overflowoccurs.
*
—
I
—
1
I
I
I
1
I
Page
I
I
I
129
27
28
29
29
29
29
29
29
30
(5)List of ControlInstructions
No.nstruction
1
2
3
4
5
6
7
NOP
MCRI 1I Start of master control relay.
END1
RET
RTI
SET
RTH
*
1No-operation.
1I
1I Sequenceprogramtermination.
r m is set tO
1
I
1
1
‘-””1”
Meaning
End of master controlrelay.
and RET instructionis executed.
“ 1”
Sets RR to “ 1. “
High speed processingsequenceprogram
ST contactis ON (RR = 1).This instruction is not executedwhen the ST contact
is OFF (RR = O).
The ST contactmust be made beforethe
INR instruction.
theST contactis ON,+ 1 is addedto
When
the registercontentsin every8 x “n”msec.
ST
INR
#1505
LD#10012
INR#1505
Cannot use
(,
this method
DCR (DecrementRegister)
FormatDCR# x x x x
4
{RR -~
I
#1500 - #1599
#1800 - #1899
#1900 - #1999
(registernumber)
4I
......n-
when the S1’ contactis
addedto the registercontents.
tion is not executedwhenthe STcontactis
OFF(RR= o).TheRRcontentsremain
unchanged.
The ST contactmust be made beforethe
DCR instruction.
ST
DCR
b~‘-
When theST contactis ON,- 1 is addedto
the registercontentsin every8 x ‘In!! msec.
CLR (Clea)
Format
Clearsthe registercontentswhentheST
contactis ON (RR= 1).Thisinstruction
is not executedwhenthecontactis OFF
(RR=
unchanged
//10012
LD#10012
DCR #1505
{RR-j
CLR#xxxx
#1500 - #1599
#1800 - #1899
#1900 - #1999
(registernumber)
o).
The RR contentsremain
LD
CLR#1505
#loo12
CMR (ComplementRegister)
Format
Invertsthe registercontentswhen the STO
contactis ON (RR = 1) .This instructionis
not executedwhen the contactis OFF (RR =
o).The RR contentsremain unchanged.
The ST contactmust be made beforethe
CMR instruction.
P+ml
CMR#xxxx
ST
//14001
LD
CMR#1505
‘7
#1500 - #1599
#1800 - #1899
#1900 - #1999
(registernumber)
#14001
-..,—-..
UN(KK= 1) , - 1 is
#1505
!
{RR-~
#1505
+--i
This instruc-
<1
@The registercontentsare invertedin everv
8 x “n’~ msec when the ST contactis ON. ‘
AD I (AddedImmediate)
FormatADI#xxxx,xxH
X5~;meric
#1800 - #1899
#1900 - #1999
(registernumber)
Addsthe registercontentsand numericand
loads the resultto the registerwhen the ST
contactis ON (RR = 1) .This instruction
is not executedwhen the contactis OFF
(R=O).The RR contentsremain unchanged.
The ST contactmust be made beforethe
AD I instruction.
The ADI instructionis executedin every
8 x “n” msec when the ST contact is ON.
ST
ADI #1505, 10H
1-~f
SBI (SubtractImmediate)
FormatSBI#xxxx,xxH
Subtractsthe registercontentsand numeric
and loads the resultto the registerwhen
the ST contactis ON (RR = 1) .If it is OFF,
the instructionis not executed.
contentsremain unchanged.
The ST contactmust be made beforethe
SBI instruction.
t-+---+1-1
rhe SBI instructionis executedin every
) x “n” msec when the ST contactis ON,
#loo12
LD
AD1#1505, 10H
_l–.-—
#1500 - #1599
#1800 - #1899
#1900 - #1999
(registernumber)
ST
)10012
AD I
SB1 #1505, 20H
LD
#loo12
#1505, 20 H
#loo12
1
{RR-;
(hexadecimal)
( RR-;
~...-
L~umeric
(hexadecimal)
The RR
~
A
I
23
7.5INSTRUCTIONSFOR REGISTERS
Cent’d )
(9)
XRI (Exclusiveor Immediate)
AN I (AndImmediate)
Format
ANI#xxxx,xxH
——
t
#1500 - #1599(hexadecimal)
#1800 - #1899
#1900 - #1999
(registernumber)
of the registercontentsand numericis
AND
takenand load~d in the registerwhen the
ST contactis ON (RR = 1).If the contact
is OFF (RR = O) , the instructionis not ex-
ecuted.
The ST contactmust be made beforethe
ANI instruction
t-----1
Re~istero01
Numeric1011 !01110111011
Result
ORI
Format
The RR contentsremain unchanged.
ST
WI
#loo12
LD#10012
ANI#1505, 55H
D7 D6 D5 n). ln~ ln~ Inf Inn
00010O1o11
I
(Or Immediate)
ORI#xxxx,xxH
——
1
#1500 - #1599
#1800 - #1899
{RR-]
L.umeric
/}1505,55H
t
tmT-tw-
IRR-1
!-
Numeric
(hexadecimal)
#1900 “ #1999
OR of the registercontentsand numericis
taken and loadedin the registerwhen the
ST contactis ON (RR = 1).If the contact
is OFF (RR = O) , the instructionis not ex–
ecuted.
-..
The RR contentsremain unchanged.
‘.
D7 D6 D5
D4 D3 D2
D1 D()
@Everythingis the same as in the ORI instruc-
tion,with an exceptionof the followingtable.
D7 D6 D5 D4 D3 D2
Registero011 0011
Numerico1 01 01 01
Resulto1
(10)DEC (Decode)
Format
d1
RR is one when the data and numericof
the 8 bits of the registerand contactset
are equal.
RR of the input side.
No contactcan be added beforethe DEC instruction.
contactmust be added.
For example,if the M functionoutputis
#1222, to set on/offMll with an Mllsignal,
the followingmust be given.
(11 ) CO I (CoincideImmediate){RR$ ~
@Format
DEC#xxxx,xxH
This will occur irrelevantto
Use the COI instructionwhen a
DEC#1505, 10H
OUT#14020
DEC #1222, OBH
OUT #14100 (relayfor Mll)
COI#xxxx,xxH
1 0011 0
[RR$;
T~:::::cimal)
Registerand contact set
T
Registerand contactset
D1 DO
‘r
Numeric
24
Registero01
Nuneric
Result
o1 0
o111 0111
1 0011
1 01
01
@RR is set to
of the registeror contactset coincidewhen
the ST contactis ON(RR= 1).If the contact is OFF (RR = O) , the COI instruction
is not executed.
It111when the data and numeric
RR is cleared.
t--i--,+=l=l=l
LD#14016
COI
OUT#14010
#1220, 10H
(12)CMP (Compare)
Format
If the comparisonresultof the 8-bitdata
and numeric of the registerand contactset
is that the register(contactset)is equal or
greaterthan the numeric,RR is set to “1.1’
If the register(contactset)is smaller than
the numeric,RR is cleared.This is executed irrelevantto RR of the inputside.
No contactcan be addedbeforethe CMP instruction.
contactmust be added.
CMP
Use the CPI instructionwhen a
cm
I
#1230 2 10H
#1230 < 10H
CMP
OUT
CPI (CompareImmediate)
(13)
Format
CPI#xxxx,xxH
{RR$;
#xxXX,XXH
——
L
Numeric
!
Registerand contact set
#1230, 10H
~Zl=ON
~21 = OFF
#1230, 10H
#14500
(hexadecimal)
Z1
#14500I
{RR$I
This instructiontransfersthe numeric to
@
the registerwhen the ST contactis ON
(RR = 1).If the contactis OFF (RR = O),
the MVI instructionis not executed.
ST
MVI#1505, 15H
k~~
RR is not affectedby the MVI instruction.
@
If the ST contactis ON,the MV1 instruction
CD
is executedin every8 x “n” msec.
(15)
Format
When the ST contactis ON (RR = 1) , the
register(R2)contentsand register(Rl)
are addedand the resultis loadedin
register(R2) .
remain unchanged.The RR contentsalso
remain unchanged.The ADD instructions
not executedwhen the ST contactis OFF
(RR = o).
#14002
LD#14002
MVI#1505, 15H
ADD (ADDRegister)
ADD#xxxx,#xxx
T
The R1 registercontents
RR-;
{
~ti5ter
operated
Operatingregister(Rl )
4
to be
(R2)
T
Numeric
T“
Registerand contactset
RR is set to “ 1“ if the comparisonresult
of the data and numericof the registeror
contactset is that the register(contact
set ) is greateror equal to the numeric
when the ST contactis ON (RR = 1).
When the ST contactis OFF (RR = 1) , the
CPI instructionis not executed.RR is
cleared.
(hexadecimal])
t-+~~-=---l
LD
CPI
OUT
(14) MVI(MoveImmediate)
Format
@
h4VI#Xxxx,xxH
#14002
#1230, 10H
#14500
——
I
Register
{ RR- )
!
Numeric
(hexadecimal)
ST
b}+‘-
Note:
underflowis not performed.
resultless than 255 (FFH) ; With SUB,do not
make R 1 >R2.
(16)SUB (SubRegister)
@Everythingis the same as the ADD in-
struction,
subtraction(R2-R1-R2) .
(17) ANR(And
@Everythingis the same as the ADI) in-
struction,
AND,(RZ AND R1 ~R2)
(18) ORR(OrRegister)
@Everythingis the same
struction,
OR.(R2 OR R1 -+R2)
#14012
LD#14012
ADD #1501, #1502
In ADD or SUB,detectionof overflowor
ADD #1501, {/1502
With ADD,make the
[ RR-j
excepthere the operationis
(
Register)
excepthere the operationis
excepthere the operationis
RR-)
( RR- )
as the ADD in-
a
25
7.5INSTRUCTIONSFOR REGISTERS( Cent’d )
(19)XRR(Excluseor Register)
@Everythingis the same as the ADD in-
struction,
XOR.
(20)CPR (CompareRegister)
@Format
@When the ST contactis ON (RR = 1), the
differencebetweenR1 and R2 is taken,and;
RR is clearedif R is smallerthan R2,
and RR is set to “ 1“ if R1 is greaterthan
or equalto R2.
CPR is not executedwhen the ST contact
is OFF (RR = O).
unchanged.
ST
l++I
I
#14012
#1501 c #1502 0.. 21 is set.
#1501 2 #1502 . . . 21 is cleared.
@) The
when the CPR instructionis executed,
Note:The instructionsfor registersdescribed
in ( 16) through (20) execute their commands by
8 x nms when the ST contact is on.The instructions ADD, SUB and XRR will change their
registercontents by 8 x rims.
(21 ) COR (CoincideRegister)
@Format
@When the ST contactis ON (RR = 1):
If RI is equalto R2, Z1 is set.
If R1 is not equal to R2, Z1 is
When the ST contactis OFF (RR
COR instructionis not executed,
RR contentsremain unchanged.
excepthere the operationis
(R2 XOR RI-+ R2)
CPR#xxxx,#xxxx
T’
Registeror contactset (R 1)
The RR contentsremain
CPR #1501,#1502
LD
CPR#1501, #1502
OUT#14123
data in R1 and R2 remain unchanged
COR#xxxx,#xxxx
#14012
T’
Registeror contact set (R 1)
{RR- I
{RR$j
Registeror
contactset (R2)
Z1
{RRI]
Registeror
contact set (R2)
cleared.
= O), the
and the
26
STZ1
COR #1501, #1502
t+1
#14012
LD#14012
COR#1501, #1502
OUT#14123
#1501 = #1502 ,..21 is set.
#1501 = #1502 . ““ Z1 is cleared.
@) The data of R1 and R2 remainsunchanged
when the COR instructionis executed.-
{RR- I
{RR-)
D2 D1 DO
B B B
111
,I
(R2)
4I
(22) MOV
@Format
@The R1 registercontentsare transferred
to RegisterR2 when the ST contactis ON
(RR = 1).
unchanged.
I
I
r’
@RR is not affectedby the MOV instruction.
(23)DST (DataStore)
@FormatDST#xxxx,#xxxx,xxH
@When the ST contactsin ON (RR = 1);
RegisterR1 and the numericare ANDed,
an~ the resultis transferredto R2,
RegisterR1 remainsunchanged.
When the ST contactis OFF (RR = O);
The DST instructionis not executed.
P’11
(Move Register)
MOV#xxxx,#xxxx
77
Register(Rl)Register
The RegisterR1 contentsremain
~TI
-.
MOV #1501, #1502
#14012
LD
MOV#1501, #1502
ST
#14012
LD
DST
Reg. RIB B B B B
Numeric
Reg.R2
l!~!t or !!0!!
B:
#14012
~“G,*)
Register(Rl)
DST #1501, //1502, OFH
#14012
#1501, #1502, OFH
D6 D5 D4 D3
DT
o0co1
o000BB B B
Loading...
+ 98 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.