⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 grinder8a_m_mu.pmc

📁 基于PMAC运动控制卡的八轴数控磨床PLC运动控制程序
💻 PMC
字号:
/**************** G-Code Definition Motion Program *********************

This MOTION Program executes various G-codes commanded from either
a part program or via MDI mode.

File: mill.g - Standard G codes for MILL

This file provides real time buffering to the rotary buffer.
The buffer may be many lines long, and the time period from when
the code was/**************** M-Code Definition Motion Program *********************

File: mill.m - Generic mill example 'M' code program.


This MOTION Program executes various M-codes commanded from either
a part program or via MDI mode.

This file is to provide real time buffering to the rotary buffer.
The buffer may be many lines long, and the time period from when
the code was entered into the buffer and when the code is actually
operated upon is unknown to the PC.
The PMAC's auto gosub functions for 'M' codes will cause these
functions to be operated upon at the time encountered in the rotary
buffer.

This file must match the current plc's installed in PMAC.

************************************************************************/

#include "address.h"
#include "oemm.h"
#include "oem.h"
#include "TSODICK1.h"
#include "TSODICK2.h"
#include "TSODICK3.h"

OPEN PROG 1001 CLEAR
;RET

 
    
    // End of Program M30
    N30000
    DWELL0
    DWELL100
    ; @SET_OFF(OUT_2_M,START_LED)
    ; @SET_OFF(OUT_2_M,HOLD_LED)
    ; @SET_ON(ES_ERR_MSG_M,PROG_STOP_ALARM)
    ; @SET_ON(CS_COMMAND4_M,CS_PROG_STOP)
    M30_STOP_FLG_M=1 ;/* M30 FINISH FOR API */
    LINEAR
    DWELL0
    RETURN
    
    
    // 调用子程序 M98
    N98000
    RETURN
    
    // 从子程序返回 M99
    N99000
    
    RETURN
    
CLOSE































⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -