Mitsubishi MELSEC-K Instruction Manual page 77

Hide thumbs Also See for MELSEC-K:
Table of Contents

Advertisement

1 1 - 3 - 3
E x a m p l e o f a
p r e s e t d a t a e n t r y program
T h i s p r o g r a m h a s b e e n c o n s t r u c t e d u n d e r t h e f o l l o w i n g c o n d i -
D a t a r e g i s t e r
number D 1
D Z
D 3
L > 4
D 5
D 6
D 7
D 8
D 9
- . I - . -
I
-
-
I
1
D a t a
I
t y p e
1
2 1
3
4
5
6 :
7
8
9
c
I
t i o n s :
( 1 )
D a t a r e g i s t e r s c , o r r e s p o n d i n g t o d a t a t y p e s h a v e b e e n a l -
l o c a t e d a s , s h o w n b e l o w ,
a u t o m a t i c a l l y a d d i n g t h e d a t a t y p e s
l i s t e d b e l o w t o t h e p r o g r a m .
r e g 3 s t e r
D O
i s u s e d a s a t r a n s f e r c o u n t e r f o r t r a n s f e r ' o r d e r
c o n k r o l ,
( 3 )
T e m p o r a r y memory
M O
i s made i n t o
a p u l s e and used f o r t r a n s -
f e r ' d e m a n d s i g n a l ,
( 4 )
A f t e r s e t t i n g t h e
p r e s e t d a t a i n D I - D I ? ,
and d e s i g n a t i n g
t h e a x i s a n d e i t h e r p a r a m e t e r z e r o p o i n t , r e t u r n - d a t a , o r p o s i -
t i o n i n g d a t a ,
s e t t h e t r a n s f e r demand s i c j n a l
M O
t o
O N ,
( 5 )
P r o g r a m e x a m p l e
( 1 ) i s a n e x a m p l e o f l a p r o g r a m w h i c h c a n
e n t e r e i t h e r parameters, z e r o p o i n t returln data, or p o s i -
t i o n i n g d a t a .
( 6 )
I n
p r o g r a m e x a m p l e
( 2 ) ,
o n c e t h e t o r ' q u e r e s t r i c t i o n ,
d w e l l
t i m e ,
a n d p o s i t i o n p a t t e r n
( o f t h e p a r a m e t e r s ,
z e r o p o i n t r e t u r n
d a t a ,
a n d p o s i t i o n i n g d a t a ) h a v e b e e n w r i t t e n i n
b y
t h e
K D 7 1 T U
a n d a r e i n t h e
entry
completion
stabus,
d a t a numbers a r e desig-
n a t e l d , a n d t h e p o s i t i o n i n g a d d r e s s a n d s p e e d o n l y a r e w r i t t e n i n .
-73-

Advertisement

Table of Contents
loading

Table of Contents