EasyManua.ls Logo

Fagor CNC 8035 - Page 420

Fagor CNC 8035
470 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...

Installation manual
CNC 8035
13.
PLC PROGRAMMING EXAMPLE
Main module.
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·420·
DFU I-SIMULA = SET M120 = ERA M121 126
Whenever the operator requests the simulation (I-SIMULA), marks M120 through M126 must be
activated....
= MOV PLCKEY KEYBOARD = CNCWR (KEYBOARD, KEYSRC, M100)
.. indicate to the CNC that, from now on, the keys will be coming from the PLC (PLCKEY)
= MOV MAINMENU KEYCODE = SET SENDKEY
... and send the code for the "MAIN MENU" key.
M120 AND SENTOK = RES M120 = RES SENTOK = SET M121
If the previous key was sent out successfully (SENTOK), flags M120 and SENTOK will be turned
off, the flag for the next stage (M121) is activated ....
= MOV SIMULATE KEYCODE = SET SENDKEY
... and the code for the SIMULATE key (F2) is sent out.
M121 AND SENTOK = RES M121 = RES SENTOK = SET M122
If the previous key was sent out successfully (SENTOK), flags M121 and SENTOK will be turned
off, the flag for the next stage (M122) is activated ....
= MOV KEY1 KEYCODE = SET SENDKEY
... ...and the code for the "1" key is sent out.
M122 AND SENTOK = RES M122 = RES SENTOK = SET M123
If the previous key was sent out successfully (SENTOK), flags M122 and SENTOK will be turned
off, the flag for the next stage (M123) is activated ....
= MOV KEY2 KEYCODE = SET SENDKEY
... ...and the code for the "2" key is sent out.
M123 AND SENTOK = RES M123 = RES SENTOK = SET M124
If the previous key was sent out successfully (SENTOK), flags M123 and SENTOK will be turned
off, the flag for the next stage (M124) is activated ....
= MOV ENTER KEYCODE = SET SENDKEY
... ...and the code for the "ENTER" key is sent out.
M124 AND SENTOK = RES M124 = RES SENTOK = SET M125
If the previous key was sent out successfully (SENTOK), flags M124 and SENTOK will be turned
off, the flag for the next stage (M125) is activated ....
= MOV THEOPATH KEYCODE = SET SENDKEY
... and the code for the "THEORETICAL PATH" (F1) is sent out.
M125 AND SENTOK = RES M125 = RES SENTOK = SET M126
If the previous key was sent out successfully (SENTOK), flags M125 and SENTOK will be turned
off, the flag for the next stage (M126) is activated ....
= MOV START KEYCODE = SET SENDKEY
... and the code for the START key is sent out.
M126 AND SENTOK = RES M126 = RES SENTOK
If the last key was sent out successfully (SENTOK), flags M126 and SENTOK will be turned off....

Table of Contents

Related product manuals