CONPROSYS FANUC CNC model - contecforum.com€¦ · Overview of FANUC CNC model 2. OPC UA...
Transcript of CONPROSYS FANUC CNC model - contecforum.com€¦ · Overview of FANUC CNC model 2. OPC UA...
CONPROSYS FANUC CNC model
CONTEC Americas Inc
06/11/2019
Index
1. Overview of FANUC CNC model
2. OPC UA specification
3. Modbus TCP specification
4. MTConnect specification
Appendix
2
1. Overview of FANUC CNC model
3
4
1-1. Overview- Add ethernet communication way to legacy CNC
- Collect ON/OFF status of signal tower, motor current and output message from CNC, then
transfer data to the upper system (such as MT-LINKi).
- OPC UA, Modbus TCP or MTConnect can be used for communication with upper system.
Digital Input
(4 Channels)
Analog Input
(2 Channels)
CT Sensor
Ethernet
Operation monitoring software (FANUC MT-LINKi etc.)
・OPC UA Server・Modbus TCP Slave・MTConnect Adapter
Serial Communication
(1 RS-232C port)
Machine
ToolsFANUC CNC
OPC UA/Modbus/MTConnect
・OPC UA Client・Modbus TCP Master・MTConnect Agent / Client
5
1-2. Communication detail
O0004;G10 L50;G11;POPEN;DPRNT[PN BOLT_001];DPRNT[PC 1200];DPRNT[VA01 777];DPRNT[SR01 O0004];PCLOS;N21 R1;G11;M30;%
Red = 0Yellow = 0Green = 1Axis1 = 800Axis2 = 950
ProductName = BOLT_001ProductResultNumber = 1200value01 = 777string01 = O0004
CNC DPRNT message
Monitoring software
Serial
OPC UAModbus
MTConnect
I/O
ON/OFF dataCurrent data
Red
Yellow
Green
Axis1
Axis2
DPRNT ID Tag name
Message log PrintOutput
PN ProductName
PC ProductResultNumber
VA01~10 value01~10
SR01~10 string01~10
Physical signal Tag name
Digital Input DI00 ~ DI03
Digital Output DO00 ~ DO01
Analog Input AI00 ~ AI01
Counter Input CNT00 ~ CNT01
6
1-3. DPRNT identifier list
Item DPRNTID
OPC UA node Datatype
Comment
Message log none PrintOutput String Store multiple string data concatenated with commas
Product name PN ProductName String Stores the machine part name
Total number of produced parts
PC ProductResultNumber Int32 Stores the total number of machined parts
General-purpose numeric 1~10
VA01~VA10
value01~value10 Double General purpose node for storing numeric data
General-purpose string 1~10
SR01~SR10
string01~string10 String General purpose node for storing string data
1-4. FANUC CNC supported list
◼ FANUC Series 15
◼ FANUC Series 16/18/20/21
◼ FANUC Power Mate -D/F/H
◼ FANUC Series 16i/18i/21i
◼ FANUC Power Mate i
◼ FANUC Series 15i
◼ FANUC Series 0i
◼ FANUC Series 30i/31i/32i
7
8
1-5. Serial setting for CONPROSYS
Select “FANUC CNC”
Set parameters for serial communication corresponding to CNC
Following serial setting is necessary for communication with FANUC CNC.
9
1-6. HMI for diagnosing I/O communication
You can confirm I/O communication by showing I/O tabfrom “Monitoring View” from WEB menu.
10
1-7. HMI for diagnosing CNC communication
You can confirm CNC communication by showing “CNC” tab from “Monitoring View” from WEB menu.
2. OPC UA specification
11
2-1. OPC UA overall specification
12
Item Specification
Endpoint URLServer URL opc.tcp://10.1.1.101
Access type Data Access (Synchronous I/O, Event notification)Profile Embedded UA Server Profile
Transfer protocol UA TCP BinaryDefault port 4840
Security policy
NoneBasic128Rsa15Basic256Basic256Sha256
Security modeAnonymousUsername/PasswordCertificate/Private Key
Node tree structure
CONTEC|____CPS-MC341-ADSC1
|____SubFolder|____Node1|____Node2
Tag editing Disable (Fixed)Number of simultaneously
connectable clients 2
2-2. OPC UA node specification1
13
Category Subfolder Node name Data type Access Data range
Digital input・Bit0・Bit1・Bit2・Bit3
Digital_Input
DI00DI01DI02DI03
BooleanBooleanBooleanBoolean
ReadReadReadRead
0, 10, 10, 10, 1
Digital output・Bit0・Bit1
Digital_OutputDO00DO01
BooleanBoolean
Read / WriteRead / Write
0, 10, 1
Analog input・Channel0・Channel1
Analog_InputAI00AI01
UInt32Uint32
ReadRead
0~40950~4095
Counter input・Channel0・Channel1
CounterCNT00CNT01
UInt32Uint32
ReadRead
0~167772150~16777215
Counter clear・Channel0・Channel1
Counter_ClearCNT00_CLRCNT01_CLR
BooleanBoolean
Read / WriteRead / Write
0, 10, 1
Other・Battery life
System Battery Boolean Read0 (Enable)1 (Disable)
2-3. OPC UA node specification2
14
Category Subfolder Node name Data type Access
FUNUC CNC・Message log・Product name・Total number of
produced parts・General-purpose
numeric 01~10・General-purpose
string01~10
COM
PrintOutputProductNameProductResultNumberstring01~10value01~10
StringStringInt32StringDouble
Read
Modbus・Input register Modbus EX0000~EX0999 UInt32
Read / Write
VTC Tag・Integer・Floating point・String
TAGDTAGSTAG
TAG00~TAG99DTAG00~DTAG99STAG00~STAG99
UInt32DoubleString
Read / Write
15
2-4. OPC UA setting for CONPROSYS
OPC UA configuration can be done from “OPC UA” menu.
You can download server certificateIf UA client requires it.
You can specify TCP port.Default port is 4840.
You need to upload and register client certificateto UA server when security mode is set to Username/Password Or Certificate/Private key.
2-5. Example of OPC UA client software
16
UA Server endpoint information UA Server address space
Example of UA Expert
3. Modbus TCP specification
17
3-1. Modbus register mapping
18
Address (H) Category
0000~1FFF I/O
2000~4FFF PLC
5000~5FFF SYSTEM
6000~6FFF FANUC CNC
Address (H) Item Data type Size (WORD)
6000~607F ProductName String 128
6080~6081 ProductResultNumber Int32 2
6400~6427 value01-10 Double 4×10
6500~69FF string01-10 String 128×10
6A00~6AFF PrintOutput String 256
6B00~6FFF Not used 1280
Address space for overall Input Register
Detail
3-2. Rule for Strings data type
19
Address (H) Data Strings
6000 0x4845 HE
6001 0x4C4C LL
6002 0x4F20 O␣
6003 0x434E CN
6004 0x4300 C
・
607E 0x0000
607F 0x0000
Strings is ASCII format and 2 strings are stored in 1WORD.Null (0x0000) is added at the end of strings.
ex:ProductName = “HELLO␣CNC”
3-3. Rule for Int32 data type
20
Address (H) Data(HEX)
6080 0xFC18
6081 0xFFFF
Int32 has a range of -2147483648~2147483647 and stored as little endian format.
ex:ProductResultNumber = -1000-1000(DEC) = 0xFFFFFC18(HEX)
3-4. Rule for Double data type
21
Address (H) Data(HEX)
6400 0x0000
6401 0x0000
6402 0x8000
6403 0xC024
Double data type is stored as little endian format.
ex:value01 = -10.25-10.25(DEC) = 0xC024800000000000 (HEX)
3-5. Example of Modbus client software
22
Example of InTouch
4. MTConnect specification
23
2
4-1. MTConnect overview- Manufacturing standard to retrieve process information from CNC machine tools
- Governed by MTConnect Institute
- Read only standard
- Freely available, Open standard
- XML format, HTTP protocol
CNC machine tool
without rich communication protocol
Ethernet
Server PCTablet/Smartphone
? CONPROSYS Connection UnitMTConnect Adapter + Agent
MTConnect Client MTConnect Client
4-2. MTConnect Inside
25
- Adapter
retrieve data from machines and transfer it to Agent
CONPROSYS has Adapter and Agent inside device
Client
AgentAdapter
TCP Port 5000
Application A
ClientAgent
Adapter
TCP Port 7878
Application B
3 modules that consists MTConnect
- Agent
Agent is a HTTP server which gives responses to Client
Convert data to XML format
- Client
Application that analyzes or monitors data from Agent
General browser like IE and Chrome can be used as Client
4-3. MTConnect overall specification
26
Item Detail Specification
MTConnect version v1.3
Adapter specification
TCP port 7878(Configurable from WEB menu)
Transmission protocol SHDR Ver1.2.0
Device identification <Device id=“Device serial number”>
Cycle time 100msec
Agent specification
TCP port 5000(Configurable from WEB menu)
AllowPut true
ReconnectInterval 10000msec
BufferSize 131072
SchemaVersion 1.3
4-4. MTConnect DataItem specification1
27
CategoryName
attributeId attribute Data range
Digital input・Bit0・Bit1・Bit2・Bit3
DI00DI01DI02DI03
(Serial Number)_DI00(Serial Number)_DI01(Serial Number)_DI02(Serial Number)_DI03
0, 10, 10, 10, 1
Digital output・Bit0・Bit1
DO00DO01
(Serial Number)_DO00(Serial Number)_DO01
0, 10, 1
Analog input・Channel0・Channel1
AI00AI01
(Serial Number)_AI00(Serial Number)_AI01
0~40950~4095
Counter input・Channel0・Channel1
CNT00CNT01
(Serial Number)_CNT00(Serial Number)_CNT01
0~167772150~16777215
Counter clear・Channel0・Channel1
CNT00_CLRCNT01_CLR
(Serial Number)_CNT00_CLR(Serial Number)CNT00_CLR
0, 10, 1
Other・Battery life
Battery (Serial Number)_Battery0(Enable)1(Disable)
4-4. MTConnect DataItem specification2
28
Category Name attribute Id attribute
FUNUC CNC・Message log・Product name・Total number of
produced parts・General-purpose
numeric 01~10・General-purpose
string01~10
PrintOutputProductNameProductResultNumbervalue01~value10string01~string10
(Serial Number)_PrintOutput(Serial Number)_ProductName(Serial Number)_ProductResultNumber(Serial Number)_value01~value10(Serial Number)_string01~string10
29
4-4. MTConnect setting for CONPROSYS
You can upload device definition file thatIs used by Agent (Up to 5 files)
MTConnect configuration can be done from “MTConnect” menu.
Select device definition file that is used by Agent.You can also delete unnecessary files.sample.xml is a sample definition file that is attached as factory setting. You can download this file but can’t delete it.
You can specify TCP port for Adapter and Agent.
4-5. Client example1 (Chrome)
30
- probe command -
4-5. Client example2 (Chrome)
31
- sample command -
4-5. Client example3 (Chrome)
32
- current command -
33
Appendix1 : DPRNT description rule
◼ FormatPOPEN;DPRNT[ID*Data];PCLOS;
◼ ExamplePOPEN;DPRNT[PN*ABC];PCLOS;
◼ OPC UA client outputNode name ValueProductName ABC
Appendix2 : FANUC CNC device list
34
Category Model Type Protocol
M2M Controller
CPS-MC341-ADSC1-931 Integrate type
Standard model
OPC UA
Modbus TCP
MTConnect
CPS-MCS341-DS1-131 Configurable type
Standard model
CPS-MCS341G-DS1-130 Configurable type
3G cellular model
CPS-MCS341Q-DS1-131 Configurable type
920MHz model
M2M Gateway
CPS-MG341-ADSC1-931 Integrate type
Standard model
CPS-MG341G-ADSC1-930 Integrate type
3G cellular model
Appendix3 : Protocol correspondence list
35
Protocol Item CPS-MC341-ADSC1-931CPS-MG341-ADSC1-931
CPS-MG341G-ADSC1-930
CPS-MCS341-DS1-131CPS-MCS341G-DS1-130CPS-MCS341Q-DS1-130
OPC UA
I/O ○ ○ ○
TAG(Int) ○ ○ ○
DTAG(Double) ○ ○ ○
STAG ○ ○ ○
PLC(EX) - ○ -
SYSTEM × × ×
FANUC CNC ○ ○ ○
MTConnect
I/O ○ ○ ○
TAG(Int) × × ×
DTAG(Double) × × ×
STAG ○ (private) ○ (private) ○ (private)
PLC(EX) - × -
SYSTEM × × ×
FANUC CNC ○ ○ ○
Modbus
I/O ○ ○ ○
TAG(Int) × × ×
DTAG(Double) × × ×
STAG × × ×
PLC(EX) - ○ -
SYSTEM ○ ○ ○
FANUC CNC ○ ○ ○