> From: andy pugh [mailto:bodge...@gmail.com]
> 
> On Mon, 13 Sept 2021 at 21:49, John Dammeyer <jo...@autoartisans.com> wrote:
> 
> > If I add print() statements where would they show up?  Or would they at all?
> 
> In the terminal, if you start  LinuxCNC from the command line.
> Otherwise I fear that they might simply get lost.
> 
Thanks Andy,
>From the desktop I can enable the start from terminal and leave it active but 
>it's really hard to cut and paste information from that.
Starting the same command line as the desktop icon but from a terminal gives he 
ability to copy to the clipboard.
I then edited the serial-relay.py to remove a comment from in front of a print 
statement, re-ran it, and indeed there are the CAN messages.  I've attached a 
bit of that if anyone is interested they can see how it's part of the output 
that occurs when LCNC doesn't start up correctly.

Is by chance this information already being logged to some other file somewhere 
when not started as a terminal session?

John



pi@linuxcnc:~ $ /usr/bin/linuxcnc 
'/home/pi/linuxcnc/configs/G3616-Pi4/G3616-Pi4.ini'
LINUXCNC - 2.8.2
Machine configuration directory is '/home/pi/linuxcnc/configs/G3616-Pi4'
Machine configuration file is 'G3616-Pi4.ini.expanded'
Starting LinuxCNC...
Found file(REL): ./G3616-Pi4.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 192.168.1.121: INFO: Hardware address (MAC): 00:60:1b:12:07:93
hm2_eth: discovered 7I92
hm2/hm2_7i92.0: Low Level init 0.15
hm2/hm2_7i92.0: 34 I/O Pins used:
hm2/hm2_7i92.0:     IO Pin 000 (P2-01): IOPort
hm2/hm2_7i92.0:     IO Pin 001 (P2-14): StepGen #5, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 002 (P2-02): StepGen #0, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 003 (P2-15): IOPort
hm2/hm2_7i92.0:     IO Pin 004 (P2-03): StepGen #0, pin Direction (Output)
hm2/hm2_7i92.0:     IO Pin 005 (P2-16): StepGen #5, pin Direction (Output)
hm2/hm2_7i92.0:     IO Pin 006 (P2-04): StepGen #1, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 007 (P2-17): StepGen #4, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 008 (P2-05): StepGen #1, pin Direction (Output)
hm2/hm2_7i92.0:     IO Pin 009 (P2-06): StepGen #2, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 010 (P2-07): StepGen #2, pin Direction (Output)
hm2/hm2_7i92.0:     IO Pin 011 (P2-08): StepGen #3, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 012 (P2-09): StepGen #3, pin Direction (Output)
hm2/hm2_7i92.0:     IO Pin 013 (P2-10): IOPort
hm2/hm2_7i92.0:     IO Pin 014 (P2-11): IOPort
hm2/hm2_7i92.0:     IO Pin 015 (P2-12): IOPort
hm2/hm2_7i92.0:     IO Pin 016 (P2-13): IOPort
hm2/hm2_7i92.0:     IO Pin 017 (P1-01): IOPort
hm2/hm2_7i92.0:     IO Pin 018 (P1-14): IOPort
hm2/hm2_7i92.0:     IO Pin 019 (P1-02): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i92.0:     IO Pin 020 (P1-15): IOPort
hm2/hm2_7i92.0:     IO Pin 021 (P1-03): IOPort
hm2/hm2_7i92.0:     IO Pin 022 (P1-16): IOPort
hm2/hm2_7i92.0:     IO Pin 023 (P1-04): IOPort
hm2/hm2_7i92.0:     IO Pin 024 (P1-17): IOPort
hm2/hm2_7i92.0:     IO Pin 025 (P1-05): IOPort
hm2/hm2_7i92.0:     IO Pin 026 (P1-06): IOPort
hm2/hm2_7i92.0:     IO Pin 027 (P1-07): IOPort
hm2/hm2_7i92.0:     IO Pin 028 (P1-08): IOPort
hm2/hm2_7i92.0:     IO Pin 029 (P1-09): IOPort
hm2/hm2_7i92.0:     IO Pin 030 (P1-10): IOPort
hm2/hm2_7i92.0:     IO Pin 031 (P1-11): IOPort
hm2/hm2_7i92.0:     IO Pin 032 (P1-12): IOPort
hm2/hm2_7i92.0:     IO Pin 033 (P1-13): IOPort
hm2/hm2_7i92.0: registered
Found file(REL): ./custom.hal
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
note: MAXV     max: 3.000 units/sec 180.000 units/min
note: LJOG     max: 3.000 units/sec 180.000 units/min
note: LJOG default: 1.000 units/sec 60.000 units/min
note: AJOG     max: 180.000 units/sec 10800.000 units/min
note: AJOG default: 90.000 units/sec 5400.000 units/min
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
note: jog_order='XYZA'
note: jog_invert=set([])
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 718105
Received CANopen Msg = 298700000000010000
Received CANopen Msg = 298700000000010000
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to