Valid

GB/T 40328-2021Electrical equipment and system of industrial machines—Programing language of processing procedures for NC system (English PDF)

工业机械电气设备及系统 数控加工程序编程语言

Preview PDF

This is a limited preview

Buy now to download the full PDF (26 pages)

Need quotation for your management?

Get a formal quotation for GB/T 40328-2021 in 30 minutes.

Issued by

SAMR; SAC

Level / Type

National · Recommended

Issue date

August 20, 2021

Implementation date

March 1, 2022

Scope

GB/T 40328-2021 is the English-translated version of 工业机械电气设备及系统 数控加工程序编程语言.

GB/T 40328-2021 defines a programming language for machining programs in the numerical control systems of industrial machine electrical equipment.

It extends GB/T 8870.1-2012 and covers macro programs, with the form of macro variables, the program format and IF and WHILE jumps and loops, together with built-in functions for arithmetic, tool information, system parameters, coordinate systems, human-computer interaction, file and channel operations.

It also sets out motion control G code instructions and motion control function blocks such as MC_MOVEABSOLUTE, MC_MOVERELATIVE, MC_HOME and MC_READPARAMETER, with annexes giving macro program examples and a user macro command table.

The aim is that programs can be exchanged between comparable CNC machine tools. It was issued on 20 August 2021 and has applied since 1 March 2022.

Found what you need?

Document preview — GB/T 40328-2021

National Standard of the People's Republic of China

ICS
25.040.20
Classification
J 07

Issued by: State Administration for Market Regulation; Standardization Administration of the PRC

Contents

  • Foreword
  • Introduction
  • 1 Scope
  • 2 Normative references
  • 3 Terms and definitions
  • 4 Macro
  • 4.1 Overview
  • 4.2 Macro variable form
  • 5 Macro program format
  • 5.1 Macro program format
  • 5.2 Conditional judgment and loop jump
  • 6 Built-in functions of macro program
  • 6.1 Overview
  • 6.2 Arithmetic function
  • 6.3 Tool information access function
  • 6.4 System parameter access function
  • 6.5 Coordinate system and coordinate operation functions
  • 6.6 Human-computer interaction functions
  • 6.7 File Operation Function (WRFE)
  • 6.8 Channel operation function
  • 7 Motion control G code instructions
  • 7.1 Movement control
  • 7.2 Motion control code instructions
  • 8 Motion control function block
  • 8.1 Overview
  • 8.2 MC_MOVEABSOLUTE(FB)
  • 8.3 MC_MOVERELATIVE(FB)
  • 8.4 MC_MOVEADDITIVE(FB)
  • 8.5 MC_MOVEVELOCITY(FB)
  • 8.6 MC_HOME(FB)
  • 8.7 MC_READAXISERROR(FB)
  • 8.8 MC_READPARAMETER(FB)
  • 8.9 MC_WRITEPARAMETER(FB)
  • Appendix A (informative) Macro program example
  • Appendix B (Informative) User Macro Command Table

Foreword

This document is in accordance with the provisions of GB/T 1.1-2020 "Guidelines for Standardization Work Part 1: Structure and Drafting Rules of Standardization Documents" Drafting.

Introduction

This document is an extension of GB/T 8870.1-2012. The CNC system supports the programming format defined in this document and GB/T 8870.1- The programming format defined in 2012 is mixed programming.

Standardize the macro program and G code instruction format in the industrial machinery CNC, which helps to coordinate the system design, calculation and human-computer interaction requirements, from And to promote the unification of programming technology, and make it between the same classification of CNC machine tools such as model, processing technology, function, size and accuracy. The input program is interchangeable.

Determine a simple and uniform format for programming operations of CNC machine tools. For more complex machinery, only the systematic Further extension.

1 Scope

This document specifies the relevant macro program, G code and motion in the programming language of the CNC machining program of the electrical equipment and system of industrial machinery. Function block requirements.

This document applies to the numerical control system of industrial machinery electrical equipment and systems.

2 Normative references

The contents of the following documents constitute the indispensable clauses of this document through normative references in the text. Among them, dated quotations Only the version corresponding to that date is applicable to this document; for undated reference documents, the latest version (including all amendments) is applicable to this document.

GB/T 8870.1-2012 Automation System and Integrated Machine Tool Numerical Control Program Format and Address Word Definition Part 1: Data format of point position, linear motion and contour control system

3 Terms and definitions

The following terms and definitions defined in GB/T 8870.1-2012 apply to this document.

3.1 Macro-program

A numerical control system (NC) programming language that can perform expression calculations and conditional jumps. A special program written by the user, available as specified As the code name.

3.2 Macro-variable

The variables that temporarily save data provided to the user in the macro program can directly participate in calculations and G code programming.

3.3 Expression

It is composed of numbers, operators, number grouping symbols (parentheses), free variables and constraint variables, etc., in order to obtain numerical and meaningful rankings. A combination of column methods.

3.4 IF conditional jump

A way to judge whether the expression after IF is true in the current situation, if it is true, then the expression is followed by the expression, if it is not true, it is not executed The macro program of the expression followed by THEN.

3.5 WHILE loop

A way to determine whether the expression followed by WHILE is true in the current situation, if it is true, execute DO followed by the expression, and loop until WHILE is followed by a macro program whose expression is not true to jump out of the loop.

......
This preview omits tables, figures, formulas and parts of the technical clauses. The complete document — 26 pages — is available in the English PDF.

Referenced standards

Similar standards

How to Download GB/T 40328-2021

  1. 1

    Add to cart

    Click "Download PDF" on this page and choose "Buy this standard". You can add more standards before checkout.

  2. 2

    Checkout

    Enter your email and billing details. Payment is processed securely by Stripe (cards or bank transfer). Prefer bank details? Request a quotation (min. order $300).

  3. 3

    Instant delivery (0–9 sec)

    Delivery is automatic: within seconds of payment you'll receive an email with a secure download link. The link stays valid for 72 hours.

  4. 4

    Invoice included

    A tax invoice is attached to the confirmation email. Need a custom invoice? Contact us.

Related Standards

English PDF
26 pages
Instant delivery (0–9 sec)
Invoice included
View Cart

Secure payment via Stripe

Payments accepted

VisaMastercardAmerican ExpressApple PayGoogle PayStripe

GB/T 40328-2021

$420.00