You are not logged in.

#1 2018-02-12 11:28:46

craftfactory
Member
Registered: 2018-02-05
Posts: 3

Problem with SyscallResult

Hello,

We have employed a laser distance measuring sensor to check the resin level after flash from the DLP for each layer. We use a python script to send specific value through syscall and use this in the Gcode in our algorithm as shown below:

[[Delay 3.0]]
G1 Z{(abs[[SyscallResult]] >= 0.01)*[[SyscallResult]]+0} F100
G1 Y{(abs[[SyscallResult]] >= 0.01)*[[SyscallResult]]+0} F5000
G1 Z-[[LayerThickness]] F100
G1 Z-3 F100


The location of python code in syscall box is 'python /home/pi/sensor.py'


However, when we run the code for a print, we see the following result in the nanodlp terminal:

G1 Z{(abs >= 0.01)*+0} F100
G1 Y{(abs >= 0.01)*+0} F5000
G1 Z-0.1 F100
G1 Z-3 F100
Error:No Line Number with checksum, Last Line: 0
Error:No Line Number with checksum, Last Line: 0
ok
ok


We checked the python code on raspberry terminal and it gives the result on the terminal. So, we think the Gcode in nanodlp doesn't get this value.
Can you please help us figure out the problem and how to incorporate the result form the python code?

Thank you very much.

Offline

#2 2018-02-12 20:28:21

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Problem with SyscallResult

Try use syscall before cure. Also checkout dashboard's activity log to see what really happening

Offline

#3 2018-02-13 12:12:39

craftfactory
Member
Registered: 2018-02-05
Posts: 3

Re: Problem with SyscallResult

Thank you for your suggestion, we have checked dashboard's activity.
We have to print the value rather than using return() the value in the python code. After we changed this, Gcode is getting readings

Offline

Board footer

Powered by FluxBB