machine data collection - ngc - haas automation inc. - cnc ... · machine data collection (mdc)...

8
LAST UPDATED: 01/22/2020

Upload: others

Post on 06-May-2020

44 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Machine Data Collection - NGC - Haas Automation Inc. - CNC ... · Machine Data Collection (MDC) lets you use Q and E commands to extract data from the control through the Ethernet

LAST UPDATED: 01/22/2020

Machine Data Collection - NGC

IntroductionThis procedure will show you different ways you can collect machine data from a NGC Control.

Machine Data Collection - NGC

Page 1 of 8 pages

Page 2: Machine Data Collection - NGC - Haas Automation Inc. - CNC ... · Machine Data Collection (MDC) lets you use Q and E commands to extract data from the control through the Ethernet

MDC - Ethernet Q Commands

Machine Data Collection - NGC

Page 2 of 8 pages

Page 3: Machine Data Collection - NGC - Haas Automation Inc. - CNC ... · Machine Data Collection (MDC) lets you use Q and E commands to extract data from the control through the Ethernet

Machine Data Collection (MDC) lets you use Q and E commands to extract data from the control through the Ethernetport or the Wireless Networking option. Setting 143 both enables the feature and specifies the data port that thecontrol uses to communicate.

The Haas control uses a TCP server to communicate over networks. On the remote computer, you can use anyterminal program that supports TCP; this example uses PuTTY.

Note: The Putty program can handle up to (2) simultaneous connections. Output requested by one connection issent to all connections.

Note: To use MDC in this example the machine must already be connected to the network.

Machine Data Collection - NGC

Page 3 of 8 pages

Page 4: Machine Data Collection - NGC - Haas Automation Inc. - CNC ... · Machine Data Collection (MDC) lets you use Q and E commands to extract data from the control through the Ethernet

1Make sure the machine is connected to thenetwork.

2Set Setting 143 Machine Data Collect portto 5051.

Note: Do not use ports 8082 and 9090 - 9999because they are already used by the Haas CNCcontrol for other purposes. Check with yoursystem adminstrator to make sure the port youwant to used is not being use by another devicein the network.

3Go to Settings/Network tab and write down the IPAddress of the machine.

Note: Make sure the Status is showing UP, if itshows DOWN the connection is not active, makesure the networking option is working correctly.

4In the Host Name (or IP address) field. Set themachine's IP Address [1].

5In the Port field. Set the Port number youspecified in Setting 143, for this example it willbe 5051 [2].

6Set the Connection type to Telnet [3].

7Click on Connection and check the box for EnableTCP keepalives (SO_KEEPALIVE option).

8In Save Sessions type in Machine Data Collect.This will save the settings, next time you open thePuTTY program.

91. Run the PuTTY program. Click on the

Session Category.

Machine Data Collection - NGC

Page 4 of 8 pages

Page 5: Machine Data Collection - NGC - Haas Automation Inc. - CNC ... · Machine Data Collection (MDC) lets you use Q and E commands to extract data from the control through the Ethernet

Query Format

The correct query format is ?Q###, where ### is the query number, terminated with a new line.

Response Format

Responses from the control begin with > and end with /r/n. Successful queries return the name of the query, then therequested information, separated by commas. For example, a query of ?Q102 returns MODEL, XXX, where XXX is themachine model. The comma lets you treat the output as comma-separated variable (CSV) data.

An unrecognized command returns a question mark followed by the unrecognized command; forexample, ?Q105 returns ?, ?Q105.

Data Collection Queries and Commands Table

10Select Open to start the connection.

11Turn the Caps Lock on your keybord.

12Type ?Q100 .

Important: The letters must be uppercase. Ifthe connection is active, the machine controlresponds with SERIAL NUMBER, XXXXXX, whereXXXXXX is the machine’s actual serial number. Forthe initial connection, ?Q100 may have to beentered twice.

13Refer to the next section for more Queries andCommands.

Machine Data Collection - NGC

Page 5 of 8 pages

Page 6: Machine Data Collection - NGC - Haas Automation Inc. - CNC ... · Machine Data Collection (MDC) lets you use Q and E commands to extract data from the control through the Ethernet

Command Definition Example Response

?Q100 Machine Serial Number SERIAL NUMBER, 1234567

?Q101 Control Software Version SOFTWARE VERSION, 100.17.000.2037

?Q102 Machine Model Number MODEL, CSMD-G2

?Q104 Mode (LIST PROG, MDI, etc.) MODE, ZERO

?Q200 Tool Changes (total) TOOL CHANGES, 35

?Q201 Tool Number in use USING TOOL, 4

?Q300 Power-on Time (total) P.O. TIME, 06282:17:13

?Q301 Motion Time (total) C.S. TIME, 00098:18:29

?Q303 Last Cycle Time LAST CYCLE, 00000:00:13

?Q304 Previous Cycle Time PREV CYCLE, 00000:00:01

?Q402 M30 Parts Counter #1 (resettable at control) M30 #1, 380

?Q403 M30 Parts Counter #2 (resettable at control) M30 #2, 380

?Q500 Three-in-one (PROGRAM, Oxxxxx, STATUS, PARTS, xxxxx PROGRAM, MDI, IDLE, PARTS, 380

?Q600 Read a Macro or system variable MACRO, 0.0

?Exxxx yyyyy.yyyyy Write to Macro or system variable. See E Commands section

Q600 Command (Read Variable)

You can request the contents of any macro or system variable with the ?Q600 command; for example, ?Q600 xxxx.This shows the contents of macro variable xxxx on the remote computer.

E Command (Write to Variable)

You can use an E command to write to macro variables #1-33 and #10000-#10999.

Note: Macro variables #10550-#10580 are unavailable if the mill has a probing system. See the Operator's Manualfor a list of available system variables.

The correct E Command format is ?Exxxx yyyyyy.yyyyyy where xxxx is the macro variable and yyyyyy.yyyyyy is the newvalue.

Note: When you write to a global variable, make sure that no other programs on the machine use that variable.

Caution: Use extreme caution when you write to a system variable. Incorrect values for a system variable cancause damage to the machine.

Machine Data Collection - NGC

Page 6 of 8 pages

Page 7: Machine Data Collection - NGC - Haas Automation Inc. - CNC ... · Machine Data Collection (MDC) lets you use Q and E commands to extract data from the control through the Ethernet

MDC - 8M Option Status Relays

Machine Data Collection - NGC

Page 7 of 8 pages

Page 8: Machine Data Collection - NGC - Haas Automation Inc. - CNC ... · Machine Data Collection (MDC) lets you use Q and E commands to extract data from the control through the Ethernet

The NGC control has the ability to communicate the status of the control using the 8M PCB relays. The status of 8MPCB relays (outputs 90 - 97 ) will change state depending on the condition of the machine.

Note: To monitor the Power On or E-stop state an extra contactor will need to be added to the Power On andEmergency Stop button.

To use this feature you will need to have a 8M option installed and a service key.

Note: If the machine is equipped with a non-servo autodoor option it will have the 8M PCB installed you cannotuse this 8M PCB. In this case you need to install a secondary 8M PCB, refer to 8M OPTION - INSTALLATION.

To enable the feature go into service mode and change Factory Setting:

• 315.26 [315:26] STATUS RELAYS = TRUE

Machine Status / 8M PCB Relay Status Table

The following table shows you which relays will be turned on, when the machine is at a certain mode.

Machine Status 8M PCB Output Relay

Control is In-Cycle (Running) 90 (M21)

MEM Mode - No Alarms (Auto Mode) 91 (M22), 92 (M23)

MDI Mode - No Alarms (Manual Mode) 91 (M22)

Single Block Mode 92 (M23)

Feed Hold Stop 93 (M24), 94 (M25)

M00 or M01 Stop 93 (M24)

M02 or M30 Stop 94 (M25)

Feed Rate Override is not at 100% 95 (M26)

Spindle Speed Override is not at 100% 96 (M27)

Edit Mode 97 (M28)

Other Modes (Zero, DNC, JOG, List Prog, etc) All relays are turned OFF.

To see the outputs of the 8M PCB status relays onthe control:

Press the [DIAGNOSTIC] button.

Go to the I/O tab.

Type in: 8M and press the [F1] button.

Machine Data Collection - NGC

Page 8 of 8 pages