When NC Unit EnteredSD Mode from OfflineState. . . . . . . . .9. . . . . . 9.13.1. . . . . 67
When NC Unit EnteredSD Mode from OnlineState. . . . . . . . . .~. . . . . . 9.13.2. . . . . 67
When NC Unit is GfflineState (SystemNo. 6 + SD MODE). . .9. . . . . . 9.6.1. . . . . 50
When NC Unit Online State (SystemNo. 4 + SD MODE). . . . . .9. . . . . . 9.6.2. . . . . 51
Page
1. OUTLINE
1. The programmablecontroller(calledPC hereafter)for YASNACLX3/MX3standsbetween
the standardYASNACNC unit and the machine
tool .
utilizationof the sequencecontrolrequiredby
the machinetool throughthe software.
2. Sequenceprogrameditingof PC can be performedefficientlywithCRT;NC and SD
modesare easilychangedand selected.
It facilitatesthe compactand efficient
2. BLOCK
The blockdiagramof the PC systemfor YASNAC
LX31MX3is shownin Fig.2.1,
y~,s5.4cLx3/fJ~3
I ~------------‘“~cHEcIT~pE
A
Jt
rI—14
Il-lFH
IIIII~
1
Pc1/(.)SECTION
3. The PC is optionaland it is installedin the
NC unit,if selected.
4. In this manual,
(Selections1 to 8) and “Sequenceprogram
editingunit and the operatingmethodti
(Section9) havebeenexplainedso that the
usersto facilitatethe use of the abovedescribedPC.
1!pc programmingmethod”
DIAGRAM
.—— ———.
L::------
I
EDITSYSTEM
I
OPERATOR’S
STATION(NC
2
OPERATOR’SSTATION)
——— ——-_ ___
MACHINE
OPER.ATOR’S
STATION
PUNCHED TAPE
I
I
I
I
A
9
~?.LY__3
ISEQUENCE PRO- i
1GRAy5~IT UNITI
L__––-–J
.
Solid line showsthe YASNACCNCunit provid-Z.
ed with P.C.
The elementshaving1 byte(= 8 bits)information,
as shownbelow,are designatedonly by address
number ,
the meaningof above(B) and it can be taken as
the name given with respect to 1 byte data.
In thiscase,the addressnumbertakes
Element
and bit no. ) precededby the
Name
# :;.- ’.:.: :;
~lBitNo.
1
AddressNo.
Name
5.2 ADDRESSMAP
STANDARD NC
MAIN SECTIO!4
FJAMPLE
Mm
1) BATTERYBACW
ED-UP MT.MORY
07000
#~~gq~
II7101
~
~ #7Q99
(1)Addressesof InputSiqnals
(#1000 - #1061)-
These are the address numbers+ bit numbers
(# ..::.::::;::
tons,limit switch,etc.from the machineoperation panel,machinecontroller,etc.
sectionshouldbe determinedby the machine
tool builder.
(a)1 bit of the address#1000 correspondsto
1 pointof the inputsignal.
(b)The addressnumberand the bit numberare
determineddependingon the numberof the
pin and the numberof the connectorof the 1/0
boardto whichthe inputsignalis connected.
//1000
/’l- T
(IL
k
11,.
OUT
II
)
Example :
,_Bit No
;
/
/
54-21
54-36
pin N.. 10
ConnectorNo. 01
Input signalname (a~bitrary)is registered
65
AND DISPLAY SYMBOL
~
rom Machine
3
110
SECTION
NPU
lUTWT
2
t4.4CHINE
EX&+PLE
LIMIT SWITC)
1+
=’+
SOLENOID
F
I
This
1
PC SECTION
(4)
NCOKTPUT
Q1300
– 01329
c1
3
NC lNPCT
01200
- /11295
n
(9)
SEQUE!4CE
PARAMETER
//7000
- #7099
m~’
(10)(11)
m3
for inputsignalslike,pushbut-
56-5
(1)
MACHINE
lNPUT
#1000
- 81061
c1
m
khJ
(5)
lKTERNAJ.
RELAY
01400
4
54.35
54-20 54-34I54-19 5L-33
0
—
4. Register
5. Timer
#:::,:‘:”
I
II
6. Sequencer parameter
7. Keep memory
Ifote:Depending on the instruction,naming of
2 bytes #1500 and #1501 can be carriedout through
the address
name#1500.
II
L
Address No.
I
Example: PUSH #1500
Referto the 1/O listsshownin Appendix1,
2 for details.
5
5.2 ADDRESSMAP AND DISPLAY SYMBOL ( Cent’d ) ~xampl~.
(c)The inputsignalsin the orderof #10001999 are expressedby the followingsymbols.
““””@+*l%I&la,
“--+D--JH7
#lo ‘ ‘::.:
(NO
Contact)
(~) ,4ddre~~esof outputSignalsto Machine
[#lloo- #1155)
These are the
(#..
noid ,
machinecontroller,etc.
also be decidedthroughthe machinetool builder.
point of the output signal.
boardto whichthe inputsignalis connected.
etc.from the machineoperationpanel,
(a)1
bit of the address #1100 correspondsto 1
(b)“1’he addressnumberand the bit numberare
determined,dependingon the numberof the pin
and the numberof the connectorof the 1/0
Example :
addressnumbers+ bit numbers
) of outputsignalsiike,lamp,sole-
Thissectionshould
#lo ~ 1:::
Contact)
(NC
Referto “Appendix:
Xowever,theydifferfor YASNACLX3 (for
lathes)and YASNACMX3 (formachiningcenters).
So, referto the correspondinglist.
(b)The inputsignalsin the orclerof #1200 -
#1295 are expressedby the followingsymbols.
---1I‘a’
(4) Addresses(//1300- #1329)of OutputSignals
from NC Main Section
In otherwords,thesecan be termedas input
signalsto NC main sectionfrom the PC.
example ~
‘hers with respectto the EDITand MEM (memory
operation)seleetion,
The numbers‘oetween1300 and 1329 are
determinedas standardsignalsand theycan
not be changed.
—Bit No.
———————--—-—
H function BCD output
1/0 list”for details.
–=#E--
the addressnumbersand the bit num–
(b)
For
l-----
Referto the 1/0 Listsshownin Appendix1,
2 for details.
(c) The outputsignals in the order of #1100 -
#11 cl’?are expressedby the followingsymbols.
-“”e-+
(3)Addresses(#1200- #1295)of InputSignals
f~OITNCMain Section
In c]ther words,these can be termed as output
signals to the PC from
For example,
with respectto the ,M-BCDsignals.
bersin the orderof #1200 are determinedas
standardsignalsand theycan not be changed.
(a)1 bit of addressesbetween#1200 and ?/1295
correspondsto 1 pointof the inputsignal.
Output signal name (azbitrary) is registered
%;:;:.:++-
/)11 ‘“-
the NC main sect:lon.
the addressnumbers+ bit numbers
//11”..::.,
(NO Contact) (NC Contact)
-+”+
{}11. ....
Thesenum-
(a)1 bit of the addressesbetween#1300 -#1329
correspondsto 1 pointof the inputsignal.
Exampie:
Bit So.
75
I
“’300El“m [ D I T
EDIT M1310RY MANL’AL TAPE
Referto
However,theydifferfor YASNACLX3 and
YASNACMX3.
list,
(b)The outputsignalsbetween#1300 and #1329
are expressedby the followingsymbols.
output
co
“.4ppendix:1/0 list”for details.
SC:
54
I
So, referto the corresponding
3
I
I-
H4NDLE/JWRAPID
STEP
4
(5)Addresses(#1400- #1999 exceptfor #17’00 -
?/1799) for InternalRelays
Theseare the addressnumbersand bit numbers
with respectto the internalrelayswhichcan
only be usedinsidethe PC whilepreparingthe
sequenceprogram.
(a)1 bit of the addressesbetween#1400 - #1492
correspondsto 1 internalrelay,for example.
(b)Numberof usableregistersare as follows:
500 registersfrom #1400 to #1999 exceptfor
#1700 tG #1799.
(c)In a register,
pressionsymbol.The followingshowstwo
examplesof the symbols.
the addressitselfis the ex–
1/0 list example:
#15cla
4t
l-----+m-l
~Macroinstruction‘
“l’OO@iizz!?
name (arbitrary)
(b)The numberof usableinternalrelaysare as
follows .
500 bytesx
(c)The internalrelayand its contactpointare
expressedby the followingsymbol.
Internal
realy:
Contact
point:
Thereis no limit for NO and NC contactpoints
until the programmemorycapacity is exceeded.
8 bits= 4000 relays
—
–--1t--
{114L..::-
(NO Contact)
.,.
{114.....
I
i
(d)Addressesusedin internalrelaycannotbe
usedas register.
[7) Addressesof Timer(#1700 - #1799]
Theseare the addresseswith respectto the
timers.
timers.
(a)
1/0
Theyare usedin the instructionof
1 addressnumbercorrespondsto 1 timer.
list example:
#1701
Q-----–L---J
L~nsertthe name
of tile timer
(Ex.PUSH)
LInsertt!le set
value,etc.
Adressedusedin registercannotbe usedas
(d)
internalrelay.
(6) Addresses(#1400- #1999 exceptfor
#1700 - #1799)of Register
These are the address numberswith respect to
the 1 byte (= 8 bits) register for general
5.2 ADDRESSMAP AND DISPLAY SYMBOL (Cent’d ) (e)Transfer of keep relay and keep memorydata
(8)13atteryBacked-upMemory[#7000 - #7999)
(a)The aboveaddressesof #7000 to #7295 are
differentiatedfrom othersby the name “batterybacked-upmemory. ”
of #7000 to #7295 are preservedin the battery
back--upmemoryin the standardhTC main section,
So, evenif the powersupplyis turnedoff,the
data are not erased.
Thatmeans,the data
(b) ‘The sequenceprogramof PC unit can only
handleimagedata of the PC unit.The original
data from NC main sectioncan rot be handled
(reac.ingor writing).
(c) following3 typesof batterybacked-upmemo-
ry data are available,
Sequlsncerparameter:
Keep relay:
Keep memory :
#7100 - #7999
}
STiLiI)ARDNC
}L\IX SECT IOX
~[8) BATTERY
BACKED–LT
MEMORY
I
7
#7000-
~“—
#1’099
PC SECTION
(9)
-———
(10)
//7100
I
(17999
e
(
(11)
.—
to NC.
The imagedata of the PC unit keeprelayand
Ikeep memoryare sometimesread,and written,
so theyare changedin the sequenceprogram.
Consequently, it becomesnecessaryto preserve
the latestimagedata of the PC unit by transferringthem to the batterybacked-upmemory
as latestoriginaldata.
is explainedbelow.
Automaticdata transfer
:Vher, the power
an,the data of #7100 - #7999 get transferred
from, PC to NTC ‘unit.
( 9) .Addresses(#7000 – #7099)of Sequencer
Parameter
Theseare the addressnumberscorrespondingto
tb.e parameterof the sequencer.
li~t)(lo – #’7099 can be
supplyof the unit is keptturned
\vrltingoperation .
And this procedure
The data of
changedthroughthe normal
These data can be used in a
sequenceprogramin the following two procedures:
2Using as 1 bit data and~
data.
(a)Usingas 1 bit data
1/0 list exampie:
Bit No.
,l,ooofi-~:413i~’
i
L—–—
Writedata name
Using as 1 byte
o
‘r
-—~~. LARGECAPACIWL
(d)‘;’ransferto sequencerparameterdata to PC
In additionto the powersupp]yturningon , the
sequencerparameterdata is transferredto PC
from !he NC main unit underthe following
conditions.
operation, evenif a singlesequencerparameter
data is modified,
meterdata are transferred.
the imagedata of the PC are alwayslatestdata.
The sequencerparameterdatacan onlybe read
in the sequenceprogramand they must not be
modified .
Throughthe parameterwriting
thenall the sequencerpara–
Consequentl~;, all
Symbolexpressionis carriedout [n the follow-
ing way.
Data “l” = Closed
Data “O” =
Sitscannotbe set to “!3” or “l[! from the
keyboard.Set the bit desiredto “ 1“ or “O”
usingthe key-inoperationof decimal(O - 127) .
ODeI)
Data “l”= Open
I)ata “O”= Closed
(b) Using as 1 byte data
listexample:
1,/0
,,
“7000
?7001
i
d.—......——..–—
-.
.+_______
II
~Insertparameterdata name
1
The symbolexpressionis the addressnumber.
The exampleof usingin timer is shownin the
followingfigure.
Example:
(a) 1 addressnumberbeyond#7100 corresponds
one keepmemoryof 1 byte(8 bits) .
1/0 list example:
to
~Variabletimer
instruction
L Timer setting
by parameter
(10)Addresses(#7100- #7999)of Keep Relay
Theseare the addressnumbersand bit numbers
of the keeprelaysusedin the PC.
(a)1 bit of #7100 - #7999 correspondsto 1 keep
relay.
1/0 list example:
Bit No.
r
76.54~2~O
LWritethe name of the keep relay
(b)The numberof usablekeeprelaysis as
follows.
900 bytesx 8 bits = 7200
(c)The keep relaysand theircontactpoints
are
expressedby the followingsymbols.
Contact
point
—--it----~
#71 :::::.
(NO Contact)
//71::;[:
(NC Contact)
(11 ) Addresses[#7100- #7999)
Theseare the addressescorrespondingto the 1
bytememorywhichcan be preservedevenafter
turningoff the powersupply.
formanceis limitedonly to the preservationof
data,the keepmemorycan be usedin the same
way as that of a register.
keepmemorycan also be usedas an objectof
registerinstructionor as supplementarydata
of macro instruction.
preparinga sequencepr~gramfor memoryrandom
typeATC,
this keepmeinorybecomesnecessary.
Especially,when
If the per-
Consequently,the
#7105 I
#7106
%
(b)The numberof usablekeepmemoryis as
follows :
900 memoriesfrom #7113(1to #7999
(c)The addressnumberitselfstandsfor the
.,
symbol
MOV:
of the keepmemory.
t
Transferthe contentsof register#1500
Writethe name of the
keep memory
I
to keep memory#71 c;:.:
(12)
WritingInitialValuesof
Keep Relays and
Keep Memories
When preparinga sequenceprogramby using
the keeprelaysand keepmemories,it becomes
necessaryto set the initialvaluespriorto
the execution.
(a)Set the systemnumberswitchof NC unit at
Ml!! and then turnon the power
(b)DepresstheI DGNI functionkey.
Input /outputsignalON /OFF statewill be
displayedon the CRTscreen.
(c)Afterkeving-inin the orderof!fl ~10 ~r:
if the cursor-kc-y is depressed,then the following
displaywill be obtained.
DIAGNOSIS
76543210—--—
I71OOOOOOOOOOo
O:
OPEN 1:
00001000
Cursor
-,y7101
#710200000000o
‘77103OOOOO1O15
#710411111111
I7108OOOOOOOO
#71090001100024
00000 NOOOO
CLOSE
SIIFWIYo
8
255
o
~
RDY
Bit Ko.
Decimal
display
,
9
5.2 ADDRESSMAP AND DISPLAYSYMBOL ( Cent’d )
(d) Adjust addresses#7105 to #72$14 for initial
condition setting by depressingthe cursor.
(e) ~f the \ INSRT1 (insert) key is depressed,
the cursor will move in the right hand direction,
and will move to the 7th bit position of the
address.
(f) Keep on pressing the cursor key until it
becomesadjusted to the position of the decimal
display.
(g) Key-in the desired ~ralues
tlng initialconditioriand then
key , The decimal display v-ill
the presently keyed in value .
—-——
(h)If the~ lNSFiT ~k
ey is depressed,the cursor
will move to the left hand position #.Thereby,
the setting of one address numberis conlpleted.
Wi)
or (ii),
[Hereafter Fig. (i) is to be called 2-digit display,
while Fig. (ii)is to be called 4--digitdisplay. ]
-POT NO. TITLE
-POT NO.
-KEEP MEMORY
. (i) #6022 D2=0#6355=3602 #6356=8604
Note :
chargedO z
If a particular bit is desired to be
1, carry out following operations
after the operation of item 5 ). Depressthe
cursor key and adjust the cursor to the bit
desired to be changed,then depress
0=
change will be obtained.
1
i :0 change will be obtained if the
~~key.
~~key
is depressedagain.
(13)Vlt-itingof Keep RelayNumericalInput
(opt onal only for MX3)
Writing to
normallyexecuteclfrom O to 255, however,4–digit
writingis also possiblewith numbers#8600 -
#8999,
to each otheras shownin the figurebelc]w,
is alteredby writingand alterationof #8601.
Note :
from sequence,
keepmemory(#7100 - #7999)can be
#7100 - #7499 and #8600 - #8999 correspond
#7101
Whenkeep memoryis referred
use #7100 - #7499,
not j#860”0 – #8999,
~1
48600
=S601
=89991 +—
—4
— .—
l—
-– POT NO. TITI
~z86041 002
1$186051
;Z8606:
I
1
!28609!-–––––––––___--. –— ___
(ii)
Fig.
For Fig.(ii) , evenand unevennumberkeepmemoriesare usedin pairs , 0 to 9999 are available
by expressingthe higher2 digitsof the decimal
4 digitswithevenNo.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
<ii) show how #6355 and #6356 are set for #7402
and #8604,respectively.
(b)Writingto keepmemory
TurnsystemNo.switchto “1“ .
Llse pagecursorkeys‘~,and ~ ~to move the
cursorto keep memoryNo. to be changed.
new figureand depressWR key.
tionedaboveenables#8600 - #8999 rangedata to
be changedznci set.
#6022 D2=1#6355 =’8602#6356=8604
Cljojl
,
,0000<
L-—J
– KEEP hiEh40RY
keepmemorynumbersare
7
L
Proceduremen-
Input
10
Notes:
.
The same memoryis usedfor #8600 - #8999 and
#7100 - #7499:
that of #7102 is changedto the same value.
.
When the displaycan be extendedup to 9999, as
in Fig.(ii),the evennumberkeepmemorydata
are changedto one lowernumberand cursor
movesthereby writingwhen the cursoris at an
unevenkeepmemorynumber.
.
If #6355 and #6356 are set conversally,pot No.
title and pot No. are not normallydisplayed.
However,if #6355 and #6356 havekeepmemory
No,on the same page,pot No. title is displayed.
[Referto Fig.(iii).]
.
If unevennum’beris set by mistakefor #6355
when4–digitdisplay(#6022 D2=1) , pot No. is
displayedfrom the evennumberkeepmemoryNo.
whichis one numberhigherthan the pot No.
%8600
#8601
#8602
#8603
#8604
K8605
#8606
if a valueof #8602 is changed,
---POT NO.
01
TITLE
02
03
04
05
06
07
DIAGNOSIS
P-No
ti8600(010)
#8601(011)
#8602(012)
Fig.(v)#6022 D2=0#6355=7391
. When pot numberis not displayed,set O for
#6355 and #6356.
o In 2-digitdisplay(#6022 D2=O) , writing-in
morethan a 3–digitnumberis not accepted.
(14)
AddressSettingof 1/0Board
1/0 boardhas a shortingplugfor address
setting.
to the tablebelow,
For shoringplug(SW1)settingand 1/0 module
No. . referto the tablebelow.
SM’1
1
2
3 a
4
5
6
7
8
16 ----
~j-––-
~4––-_
13––– 12––– ll––– -
4
lo–––-
~–––_
41061
NO moduleselected
ModuleNo.1
I ispareI
11
5.2 ADDRESSMAP AND DISPLAYSYMBOL(Confd )
CRTPanelBuilt-in1/0 Board
‘\.,
\t
Input
Area
No. i
SP 20-02
Input
r
output
\ 1-1 !*1I3O)-Z1OO7‘$lloo-#llo3
For shortingplug(SW2)settingand I/oareaNo.
referto the table below.
16––
~j––
l!––
13––
~2––
~1––
lo––
9––
?:.,%,,.No, selected
.AreaNo.1-I
AreaNo.1-2I
m
5.3I/0LIST AND SEQUENCELADDER
The data listof the address map is called the
1/0 lists. The [/0 lists for LX3(for lathes)
MX3(for machiningcenters) are shownin the
Appendixesat the end of this manual.
(1) For preparingthe sequence ladder, first of
all, carry out the assignment of the 1/0 signals
(#~000 and #1100)
machinetool.
(2)Afterthe completionof the assignmentof the
1/0 signals,referto the 1/0 list as a list for
data and freely:preparesequenceladderthrough
the commandsymbolsof the PC,In thiscase,
it is convenientto use the abbreviatednames
like SW7,SOL A, etc.for elementnames.
(3)Completethe assignmentof the address
numbersfor each element:internalrelay,
register,timer,etc.
checkedsequenceladder.Thereby,the com-
pletesequenceladderand a complete1/0 list
is obtained.
betweenthe PC and the
for the completedand
6. SEQUENCECONTROLMETHOD
Sequencecontrolthroughthe PC is carriedout
successivelythroughthe software,so the operationsare quitedifferentfrom that of the simultaneousprocessingin the case of normalrelay
circluit.So, it is necessaryto haveclearunderstanciingof this pointpriorto programming.
6.1
DIFFERENCESIN OPERATION
Relay
sequence:
PC Sequence:
Example:
1A
~.-+
;/10001
‘
1A
**fi?z-lToo2.~
~-–~
I
Each element is simultaneously
processedwith regard to time.
Each element is successively
processed.
The ladder is repeatedly processedat a constant period.
This period is
called scanningtime.
(Scanning time Ex .: 8 msec
x n times)
I
—’P
J#llool,
B
+
I
@Conditionof contactpoint.A is read.
@AND logicis takenfrom the NC contact
pointof relayB.
@The result‘1s outputto internalrelayD.
Due to thissuccessiveprocessing, the internal
relayD is not turnedon.On the otherhand,if
the aboveladderis executedb y the relay
sequence,
and therebyone shot operationis beingcarried
out.
rememberedthat the processingin the PC is
carriedout successivelyand then programming
shouldbe completed.
above mentioned
accordingto PC
followingform.
the relayD is turnedon for a moment
As discussedabove,it shouldalwaysbe
For reference,if the
PC sequenceladderis coded
commandu’ords,it takesthe
i~.~’-–
I
/-\
LD ;I1OOO1
1
I
-.
The abovePC sequenceladderis operatedin
followingsequence.
nevercarriedout.
@(~onditionof contactpointA is :read.
This is outputto internalrelayB as it is.
z
Simultaneousprocessing
12
the
is
~
Example of coded
sequence program
{called list)
—
6.2 SCANNINGTIME( PROCESSINGTIME)
The executiontime from the startto the end of
a sequenceprogramis calledthe scanningtime.
The scanningtime for this PC is as foHows.
Highspeedscanningtime:
Low speedscanningtime:
That means,in this PC,the sequenceprogram
can be processedby dividingit into the high
speedprocessingpartand the low speedpro-
cessingpart.
as follows.
I LD {i
m—-
In thiscase,writethe program
Partof sequenceprogram
~forhighspeed processing
I
J
8 msec
8 msec x n
End command for high
speed processing
instruction
tr
L’
-II
_~Partof sequenceprogram
for low speed processing
End instruction for
P–+-‘equenceprogram
The first part of the write sequenceprogram
highspeedprocessing.
needs
(2)Precautionsfor High Speed Processing
SequenceProgram
In this program,only the portionwherehigh
speedresponsessuchas countingof ON/OFF
are necessary,is handled.
least possiblesize of the sequenceprogram,
Limit it within100 stepswhenconvertedinto
contactpointinstruction.
(3)Precautions
SequenceProgram
(a) The scanning time for low speed processing
differs dependingon the capacity of the total
sequence program(8 msec x ‘Jntl).
of programthat can be executed within 8 msec
is approximately3000 steps whenconverted into
contact point instruction.However,this amount
of steps is the combination of high speed and
low speed processing.)
Sincedivision processing is carried out
(b)
during the execution of the low speed processing sequenceprogram,the input condition
changes.
used throughthe low speed processing
sequence programneed to be received
through the internal relays at the top of
the low speed processing sequenceprogram.
Then,use the contact point of the receiving
relay in place of the input.
for Low SpeedProcessing
Consequently,all inputs to be
So limit it to the
(The amount
(1) RelationshipbetweenHigh SpeedProcessing
and Low SpeedProcessing
—–-––—
(a) From the beginningof the sequenceto the
RTHcommand,
(high speed Seq.), as shownin the above figure,
is sureiy executed once with.in 8 msec.
the execution of this high speed sequence, the
input condition does not change.
(b) The low speed sequenceprogram(low speed
Secl.) after RTHcommandis divided into “n” items
and one of them is executed in the remaining time
of 8 msec.
sequenceprogramis executed in 8 msec x “n”
times time.
dependson the capacity of the whole programand
the length of the high speed sequenceprogram.
Since the low speed programis divided into many
parts, so the input condition changes in the
middle.
this :section.
(c) lit the first part of the 8 msec section, all
the input conditions (#1000 and #lZOO) are taken
in the PC at a time,
(d) At the last part of 8 msec section, allthe
output conditions (#1100 and #1300) are output
at a time.
8 msec
RTH
the high speed sequenceprogram
That means,the whole low speed
Consequently,the value of “n”
So, be sure to take PJOTE of item 3 of
8 msec
~8msec
During
tIigh speed~:
sequence
RTH
I
‘
\
LOW speed
sequence
Throughthe above operations, the input con–
ditions may be kept unchangedduring 1 cycle
of execution of the low speed processing
sequence program.
(c) If the output of the high speed processing
sequence programis to be used in the low speed
processing sequence program,the processing
like (b) needs to be carried out.
(d) The output signals which are not desired
to be output until the end of the execution of
low speed processing sequence program,once
received outputs them throughthe internal relays
without outputting them to the addresses of out–
put of the PC unit.
same to the address of the external output at
the tailof the low speed processing sequence
program.
~
Receive the input of
low speed processing
through the internal
relay
Then,do not connect the
13
6.2 SCANNINGTIME( PROCESSING
TIME)
(Cent’d)
I’Jo.
DivisionBytes ~Convension ~PROMs
~flstep
I
iNO, of
PROMLocation
on PC Board
.JANCD-MM20
Write the
afterone
low speed
desired output
cycle of the
processing
sequence
6.3MIEMORYCAPACITYOF SEQUENCE
PROGRAM
The sequenceprogramis finallywrittento the
EPROM(ErasableProgramRem)and thenused.
The capacityof one PROMis 256K bits(= 32K
bytes ) .
The capacityof the programmemoryof
this PC can be used according to the following
distribution.
7. PC INSTRUCTIONS
This chapter eXpklnSthe 61 type basic instructions and 11 type macro instructionsthatcan be
used with this PC while describing their functions, display symbols and coded lists.
7.1 PRE LIMI NARY KNOWLEDGE
(Registers to store intermediate resuits during
logical cperation)
(1 ) PC is provideclwith a registerto store inter
mediateresultsof logicaloperationof sequence
programs,
shown below.
and it consists of 1 bit + 16 bits, as
(Usually, relay instruction is of 3-7 bytes and
other commandsare of 1-25 bytes range. ) For
the memorystoring the sequenceprogram
(O or 1) can be set into RR by the LD instruction,
or the RR contents can be OUtp Ut to the relay
address by the C}LTT instruction.
of the stat’k register contents to RR(after oper–
ation) ‘by the STi?.or .4ND– STRinstruction is
possible.
(3) Stack Register (Stack, STO - ST15)
Intermediate operation resulting from long logical
operation can be saved into the stack register
sequentially up to 16 bits.
Data in RR is shifted to STCI by the STRor
ST R-NOTinstruction, and data in the stack
register is shifted by 1 bit toward right.
Also data in STO and RR is operated by the As 11STRor OR– STRinstruction , set into RR , and
data in the stack register is shifted by 1 bit
toward left.
STI.5 is cleared to “O.“ If the
numberof STRor ST R–h”OT instructions cioes
not equal to the numberof AN D-STRor OP.–STR
instructions used in a series of long logical
operations until the final result
results in an error.In other words,the number
of times that data is saved in the stack and the
numberof times that data is fetched out must be
equal.
The contact status
Also ,
is obtained, It
l-bit shift
14
7.2 TYPES OF INSTRUCTIONSAND LISTS
(1)
InstructionTypes
Thereare the followingtypesin the instructions
usedwith PC.
Basicinstructions(61 types)
Instructionsfor relay:
a)
Instructionsfor registers:37 types
a
(2)
List of instructionsfor relay
13 types
@
Instructionsfor timers:
Q
Controlinstructions:
Total
Macroinstructions
( 1) Macroinstructions:
(2)Auxiliaryinstructions:
2 types
9 types
61 types
11 types
4 types
No.Instruction*Meaning
L
~
3AND1Sets ANDof contact and RR to RR
3=
4AND-NOT~ 1
5OR~ 1 ~ Sets OR of signal and RR to RR (OR) .
6OR-NOT
‘7XOR
g’
8XNR~ 1Sets coincidence between signal and RR to RR
9
F
10ST R-NOT
11AN D-STR
12
130 LiT
—
~z-~+-
Note:
1. The * column shows the executiontimeconvertedto the contactinstruction
(1 = One contactinstruction)
2. The ; mark shows that the RR contentschange afterinstructionsare operated.
The — mark shows that no change occurs.
LD
LD-NOT1
ST-R11,
OR-STR
11Reads signal status (O or 1) and sets it to RR.
Reads inversion signal status and sets itto RR~
Sets AND of inversionsignal and RR to RR
I (Reverse AND)
‘ Sets OR of inversion signal and RR to RR
(Reverse OR)
1
Sets uncoincidence between signal and RR to RR
Loads RR contents to stack and executes LD
; instruction.
: Loads RR contents to stack and executes L12 NOTi
1 ~ instruction
1 ~ Sets ANDof RR and stack to RR.
1 ~ Sets OR of RR and stack to RR.
1 \Urite~Omeration results (RR) to relay (address)
11
—
—.
11
—~
(AND).
—~‘
-4i
RR after
operation
I
I
I
!
i
I
I
1
I
I
!
I
I
i
I
I
!
Page
16
16
17
18
18
18
—
18
18
19
List of instructionsfor Timers
(3)
I 10I Timer processing (Variable timer)
k[eaning
~ Timer processing (Fixed timer)time ul> = 1
—
RR after
Opel-ation
~ time u[) = 1
~~:,gc
1()
]c)
7.2 TYPESOF INSTRUCTIONSAND LISTS (Cent’d)
(4] List of instructionsfor Registers
[
IN R
1
2DCR!3~Adds - 1 to register contents.
3CLR
-+’
-7
---+i
‘+
—
=:;
-:+
——~——
4
ClvlR3
;IADI~
6
7
8
9
10
11 \
12
13
14
15ADD
16SUB
17
19
20
SBI
AN- I
0J31
—~—,–
XRI
DEC3!Coincidenceof registercontentsand numeric.]
CO I~ 4 i Coincidence of register contents and numeric.
CMP:3’Comparisonof registercontentsand numeric .
CPI~
MVI
ANR.
ORR
XRR
CPR5
‘-i~‘ ~S.. he,S.in R!+
–+—~——
I
22
-fi~?;~
24
-1
25 i
MOV
—y
DIN
ADG
‘
3~ Adds+ 1 to registercontents.
z~
3! Additionof registercontentsand numeric.
3I Subtractionof
3AND
3 ~ OR of registercontentsand numeric.
3~ xOR of register
4 \ Comparisonof registercontentsand numeric.
i3~
~ 4~inR2,
i 4 ~~.R2.
*“
-1
~1~
I
!Ji
4 ~
4
~“
~
Clears the register contents .
~ Invertsthe registercontents .
register contents and numeric
of register contents and numeric.
contentsand numeric
Load numericto a register.
Adds registersIll and R2 and storesthe result,
SubtractsRI from R2 and storesthe result
Takes
In R2.
Takes OR of RI and R2and stores the result
in R2.
Takes XORof RI and R2 and stores the result
in R2.
Checksthe result o.fcom arisen Of RI with Rz,I
~
and stores the result in . 2.
Checkscoincidence bet~veen RI and R2, and
TransfersR1 contentsto R2.
Transfers AiND of RI contents and numeric to
R2.
;
Data extraction
Double Iengih addition
AND-(>f R1 and R2 and stores the result
. .
-~
+:~;
,
-T
–-I 20
!
I
~‘-
I
—-
I
--I
“’x
,*
f
i;
I
I
I
1
—-
—-
—-
4
$
--
I*
f
-
11 23
I
“~~+
\
—-
—.
!-+
14!
i
i
4
z
-y
I
I 21
21
1-
I 21
I 22
22
22
22
22
22
i 74
1-
—
16
List of Instructionsfor Registers(Cent’d)
No.[nstructiol
26ADDW
27
28
2915
30
32CLRW3Clearsdoublelengthregistercontents.
33
——
34
35
36
375
SUBW
MUI.W
DIVW
lNR.W
DCRW
CMRW2Invertsdoublelengthregistercontents.
CORW
CPRW
MVI:W
——
DSTW
*
Addsdoublelengthregisters(WR2 and WR1)and
4
SubtractsWR1 from WR2 and storesthe resultin
4
:::’heres”’tin’~l+
Multipliesdoublelengthregister( wR2)with re gis–
10
ter (Rl)and storesthe resultin WR2.
Divide
s doublelengthregister(WR2)
(Rl)and storesth= restitin WR2.
3Adds+ 1 to doublelengthregistercontents.
3Adds- 1 to doublelengthregistercontents.
coincidenceresultof doublelengthregisters
Sets
3
(WR2 and WR1)to RR.
Sets comparisonresultof doublelengthregisters
3
(WR2 and WR1) to RR.
Loads numeric to double length register.
3
TransfersAND of doublelengthregister(WR1)
contentsand numericto doublelengthregister
(WR2) .
Meaning
by register
RR after
operation
RR is set to
,1Ill when
overflow(-
------
o
l—
l–
l–
l—
1
I
l—
I
i
I
C)ccl
Page
s.
25
26
26
26
26
26
26
26
27
25
(5)
List of ControlInstructions
No.nstruction
——
——
NOP
MCR
END
RET
RTI
SET
RTH
JIUIP
ADR
1
—.
2Start of master control relay.
*
1
.
No-operation.
1
1End of mastercontrclrelay.27
Sequenceprogramtermination.
1
RR is set to “1” and RET instruction is executed.
1
1
RR to “l. “
Sets
High speedprocessingsequenceprogram
termination.
Jumps to the location shown by ADR.
Indicates the location to be jumped by JMP.
Meaning
++
RR after
o~eration
l–
l–
I
Page
I 27
I 27
27
_
27
r
I 28
28
17
7.2 TYPES OF INSTRUCTIONSAND LISTS(Cent’d )
(6)List of MacroInstructions
No.
Instruction
1SUBPO03
2SUBPO04
SUBPO05
3
SUBPO06
4
5
SUBPO07
5[jBpoo9
6
SIJBPO1l
7
8
S(!BP017!
9
10
SUBP018
SUBP023I
——.
.
.Appl-ox
*
--—–—
100
————
I
~—
IMessage display (Option).
(7)List of AuxiliaryMacroInstructions
Meaning
Rise signal detection.
Fall signal detection.
.—.-.—-t.
Counter.
Rotation (for control of rotating object).
Code converter.
.-
——-——
Pattern clearance.
Parity check.
Data conversion (Binary _-13CD. )
——–——-—
Data search.
-.–—
Index data transfer.
RR after
operation
I
I
1
~
I
1
I
I
1
I
I
1
I
J
I
I
I
I
I
!
Page
29
29
29
32
33
34
35
35
36
37
38
—
NO.
Instruction=
I
Denigration of numeric used by SUBP,
Desigr. ation of addresscf re@sterused
by
SUBP.
Designation of adciress of register used
by SLBP.
Denigration of Table No. of PC table used ~
by SUBP.
7.3 1NSTRUCTIONSFOR RELAYS
(1)1.D (Load)RR afteroperation{RR $ ]
‘-’ Format~LD#xxxxx
Example:
~Readscontactstatus( 1 or O) and sets the
resultsto RR.
@Normally
tact A (
————
4
Internalsignalname
#loloo
#14312
this
instruction is applied to Con-
++)
[2) LD-NOT[LoadNot)
mFormat
‘w,’
Example:
LD-No’I# x x x x x
Internalsignalname
j#~oloo
{#14321
!—128
—.—
i 28
I
28
—
~ 28
!:RRtl
d
Read inversioncontactstatus(1 or O) and
sets the resultto RR.
Normallythis instructionis appliedto Contact B ( -~~~).
#14040
#14352
I
LD-NOT
AND-NOT#14123
OUT
Format
TakesAND of contactand RR and loads
the resultto RR (AND).
1+
I
(4)
AND-NOT
Format
TakesAND of inversioncontactand RR
and loadsthe resultto RR (ReverseAND).
AND#xxxxx
Internalsignalname
kidwhi+---l
LD
AND
AND
OUT
AND-NOT
Internal
#loolo
#llo12
I
#loo12
#14352
#14132
#14040
!
signalname
//11012 I
{/14040 I
E“’oo”04
I
(6)
OR-NOT
@Format
@TakenOR of inversioncontactpointand
RR and loadsthe resultto RR (ReverseOR) .
-#loo12
#)
(7)
XOR (ExclusiveOR)
Format
Loadsdissidencebetweencontactand RR
to RR.
#14132
LD
OR
OR
OUT
OR-NOT#xxxxx
Internalsignalname
1}
41
#14352
1}
-f
1#14132
XOR#xxxxx
4I
1
LD-NOT#10012
OR-NOT#14352
OR-NOT#14132
OUT
Internalsignalname
#loo12
#14352
#14132
#14040
{RR$)
I
#14040
#14040
(RR$)
t
‘
I
I
LD-NOT#10012
AND-NOT#14352
AND-NOT#14132
OUT
(5)OR
@Format
@)TakesOR of contactpointand RR and
loacis the resultto RR (OR).
OR#xxxxx
Internalsignalname
#14040
{RR$]
//14040 I
19
INSTRUCTIONSFOR RELAYS(Cent’d )
XNR (ExclusiveNR)
Fc,rmat
Leadscoincidencebetweencontractand RR
to RR.
L12
AND
ST R- NOT#10012
AND-NOT#14352
OF.-STR
OIJT
[9)
STR(Store)
FormatSTR
@
@LaadsRR contentsto stack.
XNR#xxxxx
Internalsignalname
#loo12
#14352
J
II
f
D
]-i
#140 40
J
#xx
———
Internalsignalname
4
{RR$)
LD
XNR#14352
OUT#14040
xxx
#loo12
{RR$I
EIiiElz’1I “2 i-b’”]:::e
E
llp to 16.
I
“.J4’G-’J”J‘---+
Then,executesthe LD instructions.
@Normally,this instructionis usedfor signal
of ContactA ( ~&) .
A
c
W**
I‘i,,,,o#
LD-NOT
OR-NOT
~T~L-NO’T#10013
OR-NOT
ANI)-STR
o UT
[11 )
AN D-STR(AND-Store)
@FormatA.ND-STR
~~~xec~tesANDof RR and stack(s To)and
loadsthe resultto RR.The stackshifts
by one each towardleft.
~T~~l
f/‘e’~tiu~“o’r
.AND’
I
A
~k,,wtl
1
I +} /)14001 -
LD
OR
ST R-NOT#1001?
OR-NOT
AND-STR
OUT
[12GR-STR[OR-Store)
#loo12
#14001
#14002
#14041
{RR$}
-
I
I
E
-c_
//14041
RR;!
c
#loo131
D
II
‘f{
#14002
#loo12
#14001
#14002
#14041
LD
OR
STR
OR
A.ND-STR
OUT#14041
(10)ST R-NOT(StoreNOT)
‘~Format
@LoadsRR contents
ecutesthe LD NOTinstruction.
#loo12
#14001
#loo13
#14002
ST R-NOT# X x X x X
20
IRR$;
into stackand then ex—
Format
ExecutesOR of RR and stack(S TO) and
loadsthe resultto RR.
OIR-STR
~
L]>#loo12
AND
S’rx#loo] 3
.AND
!QR–~TR
C)LT
El
?#i4001
#~4002
314041
E
(13)OUT
{RR–I
(2) TMR(VariableTimer){RR time up = 1]
@FormatOtJT#xxxxx
I
Internalsignalname
@Writesoperationresult(RR)to relay.
LD
AN.D
OUT
#loo12
#14001
#14041
7.4 INSTRUCTIC)NSFOR TIMERS
(1 )
TIM(FixedTimer)[ RR time
Format
The timer countsup in the state that the
ST contactis ON(RP = 1) , and sets TM
on afterthe set time.
ST contactbeingOFF(RR = O) , TM is
clearedand the timer is reset.
@The timerset valueis in the rangeof O -
255 (decimalnotation ) .
su”re to writethis in a hexadecimalnotation
(NOTE1).
hexadecimalnotation.
TIM#xxxx,xxH
~-—
#1700 - !+1799
In the stateof the
TheCRTdisplayis also in a
Up=l}
‘~merset time
~(hexadecimal)
However,make
@Format
TMR#xxxx,#xxxx
f
#7000 - #7294
I
#1700 - #1799 q
The timer countsup in the stateof the ST
contactbeingON (RR = 1) , and TM is set
on afterthe set time,
is OFF(RR= O) , TM is clearedand the timer
is reset.
The timer set valueis in the rangeof O 127 (decimalnotation).
Set the aforementionedtimer valuethrough
the NC keyboardin the proceduresof
I!parameterWriteOperation.“
the writecan be in a decimalnotation,and
the CRTdisplayis also in a decimalnotation.
W’hen the ST contact is C)N (RR = 1), - ] is
added to the register contents.
tion is not executed whenthe ST contact is
OFF(RR = 0).
u:~changed.
TheST contactmust be made beforethe
D(;R instruction.
LD
DCFt #1505
The RR contentsremain
#loo12
@W!~en the ST contact is ON,-1is added to
the register cclntents in every 8 x “n” msec.
/RR–j
This instruc-
Invertsthe registercontentswhenthe STO
contactis ON (RR= 1) .Thisinstructionis
not executedwhenthe contactis OFF(RR =
The ST contactmust be made beforethe
CMR instruction.
‘I’he RFL contentsremainunchanged.
o).
ST
I
LD
CMR#1505
The
registercontentsare inverted
8x
AD I
Format
msec. whenthe ST contact
“n”
(AddedImmediate)
AD:[#xxxx,xxH
#14001
_.~---
#1500 - #1599
#1800 - #1899
—I
IRR–;
N’umeric
r
(hexadecimal)
in every
is ON.
#1900 - #1999
(register number)
Addsthe registercontentsand numericand
loadsthe resultto the ~egisterwhenthe ST
contactis ON (RR= 1) .This instruction
is not executedwhenthe contactis OFF
(R=O).
The RR contentsremainunchanged.
(3’ICLF{ (Clea)
F2r.mat
r
>/
CLR#xxxx
{RR– \
i
#1500 - #1599
#1800 - #1899
#1900 - #1999
(register number)
~Clears the register contents whenthe ST
cor.tact is ON(RR = 1).
This instruction
is aot executed whenthe contact is OFF
The RR contents remain
(RI?.=
o).
unchanged
LD
CL]?.#1505
(4) CMR (ComplementRegister)
@FormatCMR
#loo12
#xXxx
{
RR- \
A
#1500 - ?/1599
#1800 - #1899
#1900 - #199~
(register number)
The
ST contactmust be macle beforethe
ADI
instruction.
ADI instructionis executedin every
The
msec when the ST contactis ON.
“n”
8X
ST
r
~D-;
1
AD I ~ #1505,
{/10012‘
LD
#loo12
‘=+
ADI#1505,iOH
(
S3!(Subtract[mmediate)
FormatSBI#xxxx,xXH
_-i—-–--1---
#i500 - #1599
#~80() - #1899
RR- j
— Numeric
(hexadecimal)
#1900 - #1999
(register numi>er)
Subtractsthe registercontentsand numeric
and loadsthe resultto the registerwhen
the ST contactis ON (RR= i) .
the instructionis not executed.
contentsremainunchanged.
If it is OFF,
The RR
The ST contact must be made before the
!5BI instruction.
22
H===--+
LD#loo12
AD I
The SB1 instructionis executedin every
8 x “n” msec whenthe ST contactis ON.
AN I (AndImmediate)
Format
ANDof the registercontentsand numericis
takenand loadedin the registerwhenthe
ST contactis ON (RR= 1) .If the contact
is OFF(RR = O) , the instructionis not ex–
ecuted.
The ST contact must be made beforethe
AN I instruction
#1505, 20 H
I
RR-/
ANI#xxxx,xxH
Numeric
t
#1500 - #1599
#1800 - #1899
#1900 - #1999
(register number)
The RR contentsremainunchanged.
t
(hexadecimal)
XRI(Exclusiveor [mmediate)
(9)
Everythingis the same as in the ORI instruc-
@
(10)DEC (Decode)
with an exceptionof the followingtable.
tion,
D7 Dfj D5 D4 D3 D2 D1 DO
Register
Numeric
Result
Format
RR is one whenthe data and numericof
the 8 bitsof the registerand contactset
are equal.
RR of the inputside.
No contactcan be addedbeforethe DEC instruction.Use the CO I instructionwhena
contactmust be added.
o011 0011
o1 01 01 01
o1100110
{RR$I
DE C#xxxx,xxH
-~~:,,,,cimal)
Registerand contactset
Thiswill occurirrelevantto
Hd==--l
LD#10012
ANI#1505, 55H
D7 D6 D5 D4 D3 D2 D1 Do
Register
Numeric
Result
OR I (OrImmediate)
FormatORI#xxxx,xxH
01{ of the registercontentsand numericis
takenand loadedin the registerwhenthe
ST contactis ON (RR= 1) .If the contact
is OFF(RR = O) , the instructionis not executed.
\
“-=..
Register
Numerico1 01 01 01
Resulto1110111
o01
o101 0101
o001 0001
#1500 - #1599
#1800 - #1899
#1900 - #1999
TheRR contentsremainunchanged.
DJ D(5 D5 D4 D3 D2 D1 Do
o ‘o11 ‘oo11
1 0011
{
RR– ;
I
L-
Numeric
( hexadecimal)
b
For example,if the M functionoutputis
#1222,to set ori/offMllwithan Mllsignal,
the followingmust be given.
(11 )
CO I (CoincideImmediate)
Format
RR is set to 11111when the data and numeric
of the register or contact set coincide when
the ST contact is ON(RR= 1) .
tact is OFF(RR = O) , the COI instruction
is not executed.
DEC{/1505, 10H
DEC#1505, 10H
OUT#14020
DEC #1222, OBH
OUT#14100 (relayfor Mll)
{RR$!
COI#xxxx,xxH
“-~._T
Numeric
Register and contact set
If the con-
RR is cleared.
ST
+
~CO1l#1220, 10H;‘
;!14016
LD
COI
OUT#14010
#14016
#1220, 10H
~v
6t
I
#14010
23
7.5INSTRUCTIONSFOR REGISTERS( Cent’d )
(12)CMP (Compare)
Format
@
@If the comparisonresultof the 8-bitdata
and numericof the registerand contactset
is that the register(contactset)is equalor
greaterthan the numeric,RR is set to ‘i1. ‘1
If the register( contactset)is smallerthan
the numeric,“RR is cleared.
ed irrelevantto RR of the inputside,
@No contactcan be addedbeforethe CMP in-
struction.
contactmust be added.
CMP#xxxx,xxH
Use the CPIinstructionwhena
+-.+fF,#1230,li)H~---j
I
#1230 2 10H
#1230 <
10H
CMP
OIJT
[13) CPI (CompareImmediate)
~Format
RR is set to
of the data and numericof the registeror
contactset is that the register(contact
set)is greateror equalto the numeric
whenthe ST contactis ON (RR= 1) .
When the ST contactis OFF(RR = 1) , the
!CPI instructionis not executed.
cleared.
CPI#xxxx,xxH
‘~---~N~eric
{RR$;
~7
Registerand contactset
~-. Numeric
(hexadecimal)
Thisis execut-
/)14500I
+Z1=ON
+21= OFF
#1230,IOH
#14500
{
RR$)
(hexadecimal)
Re@sterand contactset
I!l!! if the comparisonresuit
RR is
Thisinstructiontransfersthe numericto
@
the registerwhen the ST contactis ON
(RR = 1).
the MVI instructionis not (executed.
RR is not affectedby the MVI instruction.
3
If the ST
‘a
If the contactis OFF(RR= O) ,
LD
#14002
MVI#1505, 15H
cc,ntactis ON, the MV1 instruction
is executed in every 8 x “n !!msec.
(15:
ADD (ADDRegister){ P.R– j
‘3
Format
ADD#xxxx,#xxx
TT
Operatingregister(Rl )
Registerto be
operated(R2)
When the ST contact is OIi (RR = 1) , the
register(R2)contentsand register(Rl)
are addedand the resultis loadedin
register(R2) ,
remainunchanged.
remainunchanged.
not executedwhenthe ST contactis OFF
(RR =
0).
The R1 registercontents
The RR contentsalso
The ADDinstructions
j—sr~~mm=i+:
LD
//14012
AD12 #1501, #1502
Note:
underflowis not performed.
resultless than255 (FFH) ; withSUB,do not
make RI >R2.
#1501 ~ #1502 . . . Z1 is set.
#1501 2 #1502 “~. Z1 k cleared.
CPR #1501, /}1502
LD
CPR#1501, #1502
OUT#14123
#14012
ST
COR #1501, #1502
p~~
#14012
LD
COR#1501, #1502
OUT#14123
#1501 = #1502 . . . Z1 is set.
#1501 = #1502 . . . Z1 is cleared.
@The data of R1 and R2 remainsunchanged
whenthe CORinstructionis executed.
(22)
MOV (MoveRegister)
@Format
@TheR1 registercontentsare transferred
to RegisterR2 whenthe ST contactis ON
(RR = 1).The RegisterR1 contentsremain
unchanged.
(t
l.;~__._l
@RR is not affectedby the MOV instruction.
(23)
DST(DataStore){RR-]
#14012
MOV#xxxx,#xxxx
_l_–T.
Register(Rl)Register(Rz)
LD
MOV#1501, #1502
#14012
zl
//14123
{RR-I
@The data in R1 and R2 remainunchanged
whenthe CPR instructionis executed.
Note:
in
8 x nms when tbe ST contactis on.
structionsADD, SUB and XRR willchange their
The instructions for registers described
(16)through (20)executetheircommands by
The in-
registercontentsby 8 x rims.
(21 ) COR (CoirlcideRegister)
@Format
CO R#xxxx,#xxxx
—-T---~-–.
{RR$}
Registeror
contactset (R2)
Register or contact set (Rl)
@Whenthe ST contact is ON(RR = 1):
If R1 is equalto R2,Z1 is set.
If R1 is not equalto R2,Z1 is cleared,
When the ST contactis OFF(RR = 0) , the
COR instructionis not executed,and the
RR contentsremainunchanged.
@FormatDST#xxxx,#xxxx,xxH
~~he-:)
I
Register(Rl)
~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 DSTinstructionis not executed.
I
Al
//14012
DST #1501, #1502, OFH1
LD
DST
#14012
#1501, #1502, OFH
Register(R2)
,
D7 D6 D5 D4 D3 D2D1DO
RI
Reg.
Numeric
Reg. R2o000B
B BBB BB
o 0c o1
B B
1 1 1
B BB
B:
11111 or 1! 01!
25
7.5INSTRUCTIONSFOR REGISTERS (Cent’d )
@’ RR is not affected by execution of the DST
instruction.
DIN (Data Insert)
(24)
‘~ ’FormatDIN#xxxx,#xxxx,xxH
~> When the ST contact is ON(RR = 1), the
F.1 data and numeric are ANDedand the
result is ORedwith the Ah’D of the R2 data
and the numeric complement .
stored in R2 (data extraction) .
ST contact is OFF(RR = 1) , the DIN in-
struction is not executed.
ST
~-—-.}—DIN#l~ol, 7}1502,OFH
~.–r-–----
Register or contact set (Rl)
{R R-I
Nurne~ic-
(hexadecimal)
Register or
contact set (R2)
The result is
Whenthe
1
//14012I
LD
DIN
RIAAAAA
R2
n
Result
#14012
#1501, #1502, OFH
D7 Dfj D5 D4 D3
B- BBBB
0000’ 1
BBBB A
D2 D, Do
1A
AA
B BB
111
A A A
PR
n
~———
LI!2!!2
@RR must be clearedto executethe ADCin-
struction.
(26)
ADDW(AddWord Register)
@Format
,-
Whenthe ST contact is ON(RR = 1), the
2’
‘.J’
contents of ciou’blelength registers , WR2
and WR1,are addedand the result is
stored in WR2.
(WR2) + (WR1) + (WR2) . The RR contents
do not change by the operation.
ST contact is OFF(RR = O) , the ADDWinstruction is not executed.
is judged without code.
3
AD D#xxxx,#xxxx
Low side c,f doublelength
register(WR1)
WR1 remains unchanged.
~~]
{ RR– \
side of
Low
doublelength
register(WR2)
Whenthe
The numeric
t+j-1500, //1502 ~;
A, B:
(25)ADC(AddwithCarry)
~Format
~~ llegisterR1 ,
result stored in Register R2.
tO “l” when a carry occurs.
!-–+~z)c~#lSol, #,502
I1OO12
LD NOT
ADC
ADC#1500, /41503
Data is “l” or “O.”
‘Dc!..+..X“# x ~x-.x‘_
Register or contact set (Rl)
R2 and RR are added,and the
-.—_+zEIzEzE3
++10012
#1501, +l~o~
26
{RR I
Register or
contact set (R2)
R.R is set
LD
ADDW#1500, #1502
#14012
(WR2)
.
Loading...
+ 84 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.