Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
# core HAL config file for simulation #First load the Python user module named /user/bin/9axis_arduino with the name 'arduino' loadusr -Wn arduino /usr/bin/9axis_arduino # first load all the RT modules that will be needed # kinematics loadrt trivkins # motion controller, get name and thread periods from ini file loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES # load 6 differentiators (for velocity and accel signals loadrt ddt count=6 # load additional blocks loadrt hypot count=2 loadrt comp count=3 loadrt or2 count=1 # add motion controller functions to servo thread addf motion-command-handler servo-thread addf motion-controller servo-thread # link the differentiator functions into the code addf ddt.0 servo-thread addf ddt.1 servo-thread addf ddt.2 servo-thread addf ddt.3 servo-thread addf ddt.4 servo-thread addf ddt.5 servo-thread addf hypot.0 servo-thread addf hypot.1 servo-thread # create HAL signals for position commands from motion module # loop position commands back to motion module feedback #net Xpos axis.0.motor-pos-cmd => axis.0.motor-pos-fb ddt.0.in #net Ypos axis.1.motor-pos-cmd => axis.1.motor-pos-fb ddt.2.in #net Zpos axis.2.motor-pos-cmd => axis.2.motor-pos-fb ddt.4.in #net Xpos arduino.axis0-pos => axis.0.motor-pos-fb ddt.0.in #net Ypos arduino.axis1-pos => axis.1.motor-pos-fb ddt.2.in #net Zpos arduino.axis2-pos => axis.2.motor-pos-fb ddt.4.in net Xpos axis.0.motor-pos-cmd => arduino.axis0-cmd net Xpos-fb arduino.axis0-pos => axis.0.motor-pos-fb ddt.0.in net Ypos axis.1.motor-pos-cmd => arduino.axis1-cmd net Ypos-fb arduino.axis1-pos => axis.1.motor-pos-fb ddt.2.in net Zpos axis.2.motor-pos-cmd => arduino.axis2-cmd net Zpos-fb arduino.axis2-pos => axis.2.motor-pos-fb ddt.4.in # send the position commands thru differentiators to # generate velocity and accel signals net Xvel ddt.0.out => ddt.1.in hypot.0.in0 net Xacc <= ddt.1.out net Yvel ddt.2.out => ddt.3.in hypot.0.in1 net Yacc <= ddt.3.out net Zvel ddt.4.out => ddt.5.in hypot.1.in0 net Zacc <= ddt.5.out # Cartesian 2- and 3-axis velocities net XYvel hypot.0.out => hypot.1.in1 net XYZvel <= hypot.1.out # estop loopback net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in # Control panel switches # E-Stop #unlinkp iocontrol.0.user-enable-out #unlinkp iocontrol.0.emc-enable-in #net eStop iocontrol.0.user-enable-out => arduino.eStop #net eStop iocontrol.0.emc-enable-in <= arduino.eStop # Power #unlinkp halui.machine.is-on #unlinkp halui.machine.on #unlinkp halui.machine.off #net machstate arduino.machine-state <= halui.machine.is-on #net turnoff halui.machine.off <= arduino.switch-off #net turnon halui.machine.on <= arduino.switch-on # Start/Run #unlinkp halui.program.run #net ProgramStart arduino.start => halui.program.run # Stop #unlinkp halui.program.stop #net ProgramStop arduino.stop => halui.program.stop # Pause #unlinkp halui.program.pause #net ProgramPause arduino.pause => halui.program.pause # Resume #unlinkp halui.program.resume #net ProgramResume arduino.resume => halui.program.resume # Program step #unlinkp halui.program.step #net ProgramStep arduino.step => halui.program.step # Touch probe #unlinkp motion.probe-input #net probe arduino.probe => motion.probe-input # Spindle power #unlinkp motion.spindle-on #net spindle-On arduino.spindleEnable <= motion.spindle-on # Spindle direction #unlinkp motion.spindle-reverse #net spindle-Dir arduino.spindleDirection <= motion.spindle-reverse # Spindle at speed #unlinkp motion.spindle-at-speed #net spindle-at-speed arduino.spindleAtSpeed => motion.spindle-at-speed # Coolant flood #unlinkp iocontrol.0.coolant-flood #net flood arduino.coolantFlood <= iocontrol.0.coolant-flood # Coolant mist #unlinkp iocontrol.0.coolant-mist #net mist arduino.coolantMist <= iocontrol.0.coolant-mist # create signals for tool loading loopback net tool-prep-loop iocontrol.0.tool-prepare iocontrol.0.tool-prepared net tool-change-loop iocontrol.0.tool-change iocontrol.0.tool-changed ############################################################################### ##### Now on to the axies, if you don't have a given axis comment out the ##### ##### related section entirely. If you don't, EMC will crash on load. ##### ##### (But will give you useful debug info to guide you.) ##### ############################################################################### ##### If you just want the switches for an axis, comment out the lines ##### ##### containing the word 'motor' in them for the axies you DO have. ##### ############################################################################### ### X-axis (axis.0) ### #unlinkp axis.0.home-sw-in #net home-X arduino.xHome => axis.0.home-sw-in #unlinkp axis.0.neg-lim-sw-in net min-home-X arduino.xMinLmt => axis.0.neg-lim-sw-in axis.0.home-sw-in #net min-X arduino.xMinLmt => axis.0.neg-lim-sw-in #unlinkp axis.0.pos-lim-sw-in net max-X arduino.xMaxLmt => axis.0.pos-lim-sw-in #unlinkp axis.0.motor-pos-cmd #net Xpos-cmd axis.0.motor-pos-cmd => arduino.axis0-cmd #net Xpos => arduino.axis0-cmd ### Y-axis (axis.1) ### #unlinkp axis.1.home-sw-in #net home-Y arduino.yHome => axis.1.home-sw-in #unlinkp axis.1.neg-lim-sw-in net min-home-Y arduino.yMinLmt => axis.1.neg-lim-sw-in axis.1.home-sw-in #net min-Y arduino.yMinLmt => axis.1.neg-lim-sw-in #unlinkp axis.1.pos-lim-sw-in net max-Y arduino.yMaxLmt => axis.1.pos-lim-sw-in #unlinkp axis.1.motor-pos-cmd #net Ypos-cmd axis.1.motor-pos-cmd => arduino.axis1-cmd #net Ypos => arduino.axis1-cmd ### Z-axis (axis.2) ### #unlinkp axis.2.home-sw-in #net home-Z arduino.zHome => xis.2.home-sw-in #unlinkp axis.2.neg-lim-sw-in net min-home-Z => arduino.zMinLmt => axis.2.neg-lim-sw-in axis.2.home-sw-in #net min-Z => arduino.zMinLmt => axis.2.neg-lim-sw-in #unlinkp axis.2.pos-lim-sw-in net max-Z => arduino.zMaxLmt => axis.2.pos-lim-sw-in #unlinkp axis.2.motor-pos-cmd #net Zpos-cmd axis.2.motor-pos-cmd => arduino.axis2-cmd #net Zpos => arduino.axis2-cmd ### A-axis (axis.3) ### #unlinkp axis.3.home-sw-in #net home-A arduino.aHome => axis.3.home-sw-in #unlinkp axis.3.neg-lim-sw-in #net min-A => arduino.aMinLmt => axis.3.neg-lim-sw-in #unlinkp axis.3.pos-lim-sw-in #net max-A => arduino.aMaxLmt => axis.3.pos-lim-sw-in #unlinkp axis.3.motor-pos-cmd #net apos-cmd axis.3.motor-pos-cmd => arduino.axis3-cmd ### B-axis (axis.4) ### #unlinkp axis.4.home-sw-in #net home-B arduino.bHome => axis.4.home-sw-in #unlinkp axis.4.neg-lim-sw-in #net min-B => arduino.bMinLmt => axis.4.neg-lim-sw-in #unlinkp axis.4.pos-lim-sw-in #net max-B => arduino.bMaxLmt => axis.4.pos-lim-sw-in #unlinkp axis.4.motor-pos-cmd #net bpos-cmd axis.4.motor-pos-cmd => arduino.axis4-cmd ### C-axis (axis.5) ### #unlinkp axis.5.home-sw-in #net home-C arduino.cHome => axis.5.home-sw-in #unlinkp axis.5.neg-lim-sw-in #net min-C => arduino.cMinLmt => axis.5.neg-lim-sw-in #unlinkp axis.5.pos-lim-sw-in #net max-C => arduino.cMaxLmt => axis.5.pos-lim-sw-in #unlinkp axis.5.motor-pos-cmd #net cpos-cmd axis.5.motor-pos-cmd => arduino.axis5-cmd ### U-axis (axis.6) ### #unlinkp axis.6.home-sw-in #net home-U arduino.uHome => axis.6.home-sw-in #unlinkp axis.6.neg-lim-sw-in #net min-U => arduino.uMinLmt => axis.6.neg-lim-sw-in #unlinkp axis.6.pos-lim-sw-in #net max-U => arduino.uMaxLmt => axis.6.pos-lim-sw-in #unlinkp axis.6.motor-pos-cmd #net upos-cmd axis.6.motor-pos-cmd => arduino.axis6-cmd ### V-axis (axis.7) ### #unlinkp axis.7.home-sw-in #net home-V arduino.vHome => axis.7.home-sw-in #unlinkp axis.7.neg-lim-sw-in #net min-V => arduino.vMinLmt => axis.7.neg-lim-sw-in #unlinkp axis.7.pos-lim-sw-in #net max-V => arduino.vMaxLmt => axis.7.pos-lim-sw-in #unlinkp axis.7.motor-pos-cmd #net vpos-cmd axis.7.motor-pos-cmd => arduino.axis7-cmd ### W-axis (axis.8) ### #unlinkp axis.8.home-sw-in #net home-W arduino.wHome => axis.8.home-sw-in #unlinkp axis.8.neg-lim-sw-in #net min-W => arduino.wMinLmt => axis.8.neg-lim-sw-in #unlinkp axis.8.pos-lim-sw-in #net max-W => arduino.wMaxLmt => axis.8.pos-lim-sw-in #unlinkp axis.8.motor-pos-cmd #net wpos-cmd axis.8.motor-pos-cmd => arduino.axis8-cmd
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
work.png.txt
3 hours ago | 475.67 KB
Disable Drag and Drop Image Improved Plugin i...
PHP | 4 hours ago | 1.31 KB
SAVE
5 hours ago | 0.06 KB
ZELAH
5 hours ago | 0.01 KB
z66is_archive.zip.txt
6 hours ago | 1.53 KB
programming
7 hours ago | 0.03 KB
thought
7 hours ago | 0.14 KB
STORY ENGINE
7 hours ago | 1.14 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!