beautypg.com

KEYENCE KV-D20 User Manual

Page 56

background image

3. Examples of Ladder Programs

3

56

5. Customized lamp 1 illuminates during the positioning control operation.

6. Assign DM1480 to the device displayed on the first line (specify "#31480" in

DM1580), and set the attributes so that the number of spaces at the right end is
"3" ($0030) (DM1680 = $0030).
Assign DM1481 to the device displayed on the second line (specify "#31481" in
DM1581), and set the attributes so that the number of spaces at the right end is
"3" ($0030) (DM1681 = $0030).
Assign DM1482 to the device displayed on the third line (specify "#31482" in
DM1582), and set the attributes so that the number of spaces at the right end is
"3" ($0030) (DM1682 = $0030).
Assign DM1484 to the device displayed on the fourth line (specify "#31484" in
DM1583), and set the attributes so that the number of spaces at the right end is
"3" ($0030) and the number of bits is "32 bits" (Bit 1: ON) (DM1683 = $0430).

7. When any error codes are input to DM1486 (DM for positioning control error

code) (DM1486 is not "0"), the contact comment stored in the temporary
memory corresponding to the error code is displayed as a user message.
When the user message is displayed, DM1486 is cleared (set to "0").

8. A beep sounds while the user message is displayed.

Comment

Relay

Data memory

Temporary

memory

2500

2501

2502

2504

DM1480

DM1481

DM1482

DM1484

TM11

TM12

TM13

TM14

TM15

TM16

TM17

Device

No.

Comment 1

~ S T A R T F R E Q U E N C Y S E T E R R O R ! !

S T A R T

S L O W D O W N S T O P

E M E R G E N C Y

S T O P

P O S I T I O N I N G

S T A R T U P

S P D : H z

R U N S P D : H z

A C C E L / D E C E L

S P D : m s

M O V E : P L S

~ R U N F R E Q U E N C Y S E T E R R O R ! !
~ S E T F R E Q U E N C Y O U T O F R A N G E ! !
~ S T A R T > R U N F R E Q U E N C Y E R R O R ! !
~ A C C E L / D E C E L T I M E O U T O F R AN G E ! !
~ S Y S T E M E R R O R
~ A C C E L / D E C E L T I M E P U L S E S E T E R R O R ! !

kv_d20_manual.p65

08.3.10, 6:09 PM

56