plc:plc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plc:plc [2018/09/25 17:36] – skirillov | plc:plc [2019/10/18 11:50] – ivan | ||
---|---|---|---|
Line 32: | Line 32: | ||
=== PLC Language === | === PLC Language === | ||
- | * PLC operates with 32 bits integer values only. Floating point operations don't work in PLC. | + | * PLC operates with 32 bits integer values only. Floating point operations don't work in PLC (typically need to use coefficient conversions to allow for more granular control). |
* There is no need to declare variables. There is very limited space of 32 elements for variables. | * There is no need to declare variables. There is very limited space of 32 elements for variables. | ||
* There a number of pre-defined variables in the PLC | * There a number of pre-defined variables in the PLC | ||
- | * eparam - External Parameter variable. | + | * eparam - External Parameter variable. |
- | L=eparam>> | + | |
* **proc** - variable is used to identify a process running in the PLC. \\ The value is sent to the CNC control software and can be used to display Current PLC state (like Idle, Ignition (for plasma cutting), preheat (gas cutting), Tool change, Probing etc) | * **proc** - variable is used to identify a process running in the PLC. \\ The value is sent to the CNC control software and can be used to display Current PLC state (like Idle, Ignition (for plasma cutting), preheat (gas cutting), Tool change, Probing etc) | ||
* **timer** - value can be used as time counter inside PLC procedure | * **timer** - value can be used as time counter inside PLC procedure | ||
Line 71: | Line 70: | ||
| < | | < | ||
| < | | < | ||
- | | < | + | | < |
- | | < | + | | < |
- | | < | + | | < |
* PLC functions | * PLC functions | ||
Line 423: | Line 422: | ||
| GVAR_CURRENT_PROGRAM_POSITION | 5041, 5042, 5043, 5044, 5045, 5046 | | | | GVAR_CURRENT_PROGRAM_POSITION | 5041, 5042, 5043, 5044, 5045, 5046 | | | ||
| GVAR_ENCODER_Z_EVENT | | | | | GVAR_ENCODER_Z_EVENT | | | | ||
- | | --- | 17000 | Return Current PROGRAM X Position in PLC units (0.01mm) | | + | | --- | 17001 | Return Current PROGRAM X Position in PLC units (0.01mm) | |
- | | --- | 17001 | Return Current PROGRAM Y Position in PLC units (0.01mm) | | + | | --- | 17002 | Return Current PROGRAM Y Position in PLC units (0.01mm) | |
- | | --- | 17002 | Return Current PROGRAM Z Position in PLC units (0.01mm) | | + | | --- | 17003 | Return Current PROGRAM Z Position in PLC units (0.01mm) | |
- | | --- | 17003 | Return Current PROGRAM A Position in PLC units (0.01degree) | | + | | --- | 17004 | Return Current PROGRAM A Position in PLC units (0.01degree) | |
- | | --- | 17004 | Return Current PROGRAM B Position in PLC units (0.01degree) | | + | | --- | 17005 | Return Current PROGRAM B Position in PLC units (0.01degree) | |
- | | --- | 17005 | Return Current PROGRAM C Position in PLC units (0.01degree) | | + | | --- | 17006 | Return Current PROGRAM C Position in PLC units (0.01degree) | |
- | | --- | 17006 | Return Current PROGRAM U Position in PLC units (0.01mm) | | + | | --- | 17007 | Return Current PROGRAM U Position in PLC units (0.01mm) | |
- | | --- | 17007 | Return Current PROGRAM V Position in PLC units (0.01mm) | | + | | --- | 17008 | Return Current PROGRAM V Position in PLC units (0.01mm) | |
- | | --- | 17008 | Return Current PROGRAM W Position in PLC units (0.01mm) | | + | | --- | 17009 | Return Current PROGRAM W Position in PLC units (0.01mm) | |
- | | --- | 17020 | Return Current MACHINE X Position in PLC units (0.01mm) | | + | | --- | 17021 | Return Current MACHINE X Position in PLC units (0.01mm) | |
- | | --- | 17021 | Return Current MACHINE Y Position in PLC units (0.01mm) | | + | | --- | 17022 | Return Current MACHINE Y Position in PLC units (0.01mm) | |
- | | --- | 17022 | Return Current MACHINE Z Position in PLC units (0.01mm) | | + | | --- | 17023 | Return Current MACHINE Z Position in PLC units (0.01mm) | |
- | | --- | 17023 | Return Current MACHINE A Position in PLC units (0.01degree) | | + | | --- | 17024 | Return Current MACHINE A Position in PLC units (0.01degree) | |
- | | --- | 17024 | Return Current MACHINE B Position in PLC units (0.01degree) | | + | | --- | 17025 | Return Current MACHINE B Position in PLC units (0.01degree) | |
- | | --- | 17025 | Return Current MACHINE C Position in PLC units (0.01degree) | | + | | --- | 17026 | Return Current MACHINE C Position in PLC units (0.01degree) | |
- | | --- | 17026 | Return Current MACHINE U Position in PLC units (0.01mm) | | + | | --- | 17027 | Return Current MACHINE U Position in PLC units (0.01mm) | |
- | | --- | 17027 | Return Current MACHINE V Position in PLC units (0.01mm) | | + | | --- | 17028 | Return Current MACHINE V Position in PLC units (0.01mm) | |
- | | --- | 17028 | Return Current MACHINE W Position in PLC units (0.01mm) | | + | | --- | 17029 | Return Current MACHINE W Position in PLC units (0.01mm) | |
plc/plc.txt · Last modified: 2022/11/07 16:03 by ivan