Skip to content

Commit

Permalink
Merge pull request #430 from ZhouBox/master
Browse files Browse the repository at this point in the history
1.add heidenhain cnc doc 2. update fins 3.update focas
  • Loading branch information
QQDQ authored Jan 31, 2024
2 parents 4cf4867 + 6e13e30 commit 4387501
Show file tree
Hide file tree
Showing 9 changed files with 497 additions and 280 deletions.
8 changes: 8 additions & 0 deletions directory.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@
{
"title": "GE SRTP",
"path": "configuration/south-devices/srtp/srtp"
},
{
"title": "HEIDENHAIN CNC",
"path": "configuration/south-devices/heidenhain-cnc/heidenhain-cnc"
}
]
},
Expand Down Expand Up @@ -976,6 +980,10 @@
{
"title": "GE SRTP",
"path": "configuration/south-devices/srtp/srtp"
},
{
"title": "HEIDENHAIN CNC",
"path": "configuration/south-devices/heidenhain-cnc/heidenhain-cnc"
}
]
},
Expand Down
80 changes: 46 additions & 34 deletions en_US/configuration/south-devices/fanuc-focas/fanuc-focas.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,45 @@

## CNC Data

| tag address | description | data type | parameter |
| -------------- | -------------------------------------------- | ------------ | ------------------ |
| actf | actual feed rate | int64/uint64 | - |
| absolute | absolute position data of axis | int64/uint64 | axis number(.n) |
| machine | machine position data of axis | int64/uint64 | axis number(.n) |
| relative | relative position data of axis | int64/uint64 | axis number(.n) |
| distance | distance to go of axis | int64/uint64 | axis number(.n) |
| acts | actual rotational speed of the spindle | int64/uint64 | - |
| skip | skipped position of axis | int64/uint64 | axis number(.n) |
| srvdelay | servo delay amount of axis | int64/uint64 | axis number(.n) |
| accdecdly | acceleration/deceration delay amount of axis | int64/uint64 | axis number(.n) |
| spcss_srpm | converted spindle speed | int64/uint64 | - |
| spcss_sspm | specified surface speed | int64/uint64 | - |
| spcss_smax | clamp of maxmum spindle speed | int64/uint64 | - |
| movrlap_input | input overlapped motion value | int64/uint64 | axis number(.n) |
| movrlap_output | output overlapped motion value | int64/uint64 | axis number(.n) |
| spload | load information of the serial spindle | int32/uint32 | spindle number(.n) |
| spmaxrpm | maximum r.p.m ratio of serial spindle | int32/uint32 | spindle number(.n) |
| spgear | gear ratio of the serial spindle | int32/uint32 | spindle number(.n) |
| tag address | description | data type | parameter |
| ------------- | -------------------------------------------- | ------------ | ----------------------------------------------------------------- |
| actf | actual feed rate | int64/uint64 | - |
| absolute | absolute position data of axis | int64/uint64 | axis number(.n) |
| machine | machine position data of axis | int64/uint64 | axis number(.n) |
| relative | relative position data of axis | int64/uint64 | axis number(.n) |
| distance | distance to go of axis | int64/uint64 | axis number(.n) |
| acts | actual rotational speed of the spindle | int64/uint64 | - |
| skip | skipped position of axis | int64/uint64 | axis number(.n) |
| srvdelay | servo delay amount of axis | int64/uint64 | axis number(.n) |
| accdecdly | acceleration/deceration delay amount of axis | int64/uint64 | axis number(.n) |
| spcss_srpm | converted spindle speed | int64/uint64 | - |
| spcss_sspm | specified surface speed | int64/uint64 | - |
| spcss_smax | clamp of maxmum spindle speed | int64/uint64 | - |
| spload | load information of the serial spindle | int32/uint32 | spindle number(.n) |
| spmaxrpm | maximum r.p.m ratio of serial spindle | int32/uint32 | spindle number(.n) |
| spgear | gear ratio of the serial spindle | int32/uint32 | spindle number(.n) |
| runState | run state | int32/uint32 | 1:EMG 2:Running 3:IDLE |
| controlMode | control mode | int32/uint32 | 0:MID 1:AUTO 3:EDIT 5:JOB 8:INC feed 9:REFerence 10:ReMoTe |
| programMain | exec program | string | - |
| mainProgramNo | main program no | int16/uint16 | - |
| subProgramNo | sub program no | int16/uint16 | - |
| alarm | alarm ID | int32/uint32 | 0:WS 1:PW 2:IO 3:PS |
| alarmMsg | alarm message | string | alarmMsg.(1~16) |
| param | parameter | int32/uint32 | param.(number).(.n) |

*CNC address example*

| address | description |
| ---------- | ----------------------------------------- |
| actf | read actual feed rate |
| absolute.1 | read absolute position of no.1 axis |
| machine.3 | read machine position of no.3 axis |
| spload.1 | read load information of no.1 spindle |
| spmaxrpm.3 | read maximum r.p.m ratio of no.3 spindle |
| address | description |
| ------------ | ----------------------------------------- |
| actf | read actual feed rate |
| absolute.1 | read absolute position of no.1 axis |
| machine.3 | read machine position of no.3 axis |
| spload.1 | read load information of no.1 spindle |
| spmaxrpm.3 | read maximum r.p.m ratio of no.3 spindle |
| param.6712.0 | parts total |
| param.6711.0 | parts count |
| param.6750.0 | power on time |
| param.6753.0 | cutting on time |

## PMC Data

Expand All @@ -77,11 +87,13 @@

*PMC address example*

| address | data type | descrption |
| ------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
| A0 | uint8/int8/uint16/int16/uint32/int32/int64/uint64/float/double | PMC **message demand**,address 0 |
| A0.1 | bit | PMC **message demand** ,no.1 bit of address 0 |
| A0.0 | bit | PMC **message demand** ,no.0 bit of address 0 |
| A0.2 | string | PMC **message demand** ,address 0 starts with a string of length 2 |
| D0.2 | string | PMC **data table** ,address 0 starts with a string of length 2 |
| D0.7 | bit | PMC **data table** ,no.7 bit of address 0 |
| address | data type | descrption |
| ------- | -------------------------------------------------------------- | ------------------------------------------------------------------------ |
| A0 | uint8/int8/uint16/int16/uint32/int32/int64/uint64/float/double | PMC **message demand**,address 0 |
| A0.1 | bit | PMC **message demand** ,no.1 bit of address 0 |
| A0.0 | bit | PMC **message demand** ,no.0 bit of address 0 |
| A0.2 | string | PMC **message demand** ,address 0 starts with a string of length 2 |
| D0.2 | string | PMC **data table** ,address 0 starts with a string of length 2 |
| D0.7 | bit | PMC **data table** ,no.7 bit of address 0 |
| G12 | uint8 | PMC **signal to PMC -> CNC** ,address 12, 255-(G12),feedrate overriden |
| G30 | uint16 | PMC **signal to PMC -> CNC** ,address 30, spindle overriden |
90 changes: 90 additions & 0 deletions en_US/configuration/south-devices/heidenhain-cnc/heidenhain-cnc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Overview

The Heidenhain CNC drive accesses Heidenhain TNC640, iTNC530 and other series of machine tools and machining centers through the LSV2 protocol, and can collect real-time operating data from multiple devices, including program names, spindle override , runing status, spindle tools, PLC points, and more.


## Parameter Configuration

| Parameter | Description |
| --------- | ---------------------------------- |
| host | device ip address |
| port | device port, default 19000 |
| timeout | connection timeout, default 5000ms |


## Support Data Type

* uint8
* int8
* uint16
* int16
* uint32
* int32
* uint64
* int64
* float
* double
* bool
* string

## CNC Data

| tag address | description | data type | parameter | note |
| ----------------- | ----------------------- | --------- | -------------- | --------------------------------------------------------------------------------------------------- |
| runState | run state | int16 | - | 0:STARTED 1:STOPPED 2:FINISHED 3:CANCELLED 4:INTERRUPTED 5:ERROR 6:ERROR_CLEARED 7:IDLE 8:UNDEFINED |
| programMain | main program | string | - | - |
| programCurrent | current program | string | - | - |
| programLineNo | current program line no | int32 | - | - |
| controlMode | control mode | int16 | - | 0:MANUAL 1:MDI 2:PASS_REFERENCES 3:SINGLE_STEP 4:AUTOMATIC 5:UNDEFINED |
| spindleToolNumber | spindle tool number | int32 | - | - |
| spindleToolLength | spindle tool length | double | - | - |
| spindleToolRadius | spindle tool radius | double | - | - |
| feedOverride | feed override | int32 | - | - |
| spindleOverride | spindle override | int32 | - | - |
| rapidOverride | rapid override | int32 | - | - |
| machinePosition | machine position | double | .X .Y .Z .A .C | - |
| parameter | cnc setting parameter | string | .(name) | - |


*CNC address example*

| address | description |
| --------------------------------------- | ---------------------------------- |
| ProgramMain | read the main program |
| machinePosition.X | read x asix of machine position |
| parameter.CfgDisplayLanguage.ncLanguage | TNC640 read/write language setting |


### PLC Data

| tag address | description | data type | r/w |
| ----------- | ----------- | -------------------------------------------------------------- | ---- |
| M | MARKER | bool | read |
| I | INPUT | bool | read |
| O | OUTPUT | bool | read |
| T | TIMER | bool | read |
| C | COUNTER | bool | read |
| B | BYTE | uint8/int8/int16/uint16/int32/uint32/int64/uint64/float/double | read |
| W | WORD | int16/uint16/int32/uint32/int64/uint64/float/double | read |
| D | DWORD | int32/uint32/int64/uint64/float/double | read |
| N | INPUT WORD | int16/uint16/int32/uint32/int64/uint64/float/double | read |
| U | OUTPUT WORD | int16/uint16/int32/uint32/int64/uint64/float/double | read |
| S | STRING | string | read |

*PLC Common Address*

| address | data type | descrption |
| ------- | --------- | --------------------------------------------- |
| M0 | bool | PLC Marker area,address 0 |
| I10 | bool | PLC Input area,address 10 |
| O20 | bool | PLC Output area,address 20 |
| C30 | bool | PLC Counter area,address 30 |
| T40 | bool | PLC Timer area,address 40 |
| B0 | int8 | PLC Byte area,address 0 |
| B20 | int16 | PLC Byte area,address 20 |
| B40 | double | PLC Byte area,address 40 |
| W2 | int16 | PLC Word area,address 2 |
| D4 | int32 | PLC Word area,address 2 |
| N2 | int16 | PLC Input Word area,address 2 |
| U2 | int16 | PLC OutPut Word area,address 2 |
| S0.128 | string | PLC String area,address 0,string length 128 |
Loading

0 comments on commit 4387501

Please sign in to comment.