And2 problem

More
31 Aug 2019 07:33 - 31 Aug 2019 07:37 #143705 by Toolman321
And2 problem was created by Toolman321
Hello I’ve brought this query over from another thread.
I have been trying to program a cycle start button and feed hold buttons on my setup

But I’m getting an error with the and2 commands, and I don’t know why?

Addf and2.0 servo-thread
Addf and2.1 servo-thread
Addf and2.2 servo-thread

Loadrt and2 count=3

# remote-start-feedhold
Net mode.pause and2.2in0 <= hm2_5i25.0.7i76.0.0.input-09
Net mode.pause <= halui.program.pause
Net remotestart and2.0.in0 and2.1.in0 <= hm2_5i25.0.7i76.0.0.input-08
Net oktorun and2.0.in1 <= halui.program-is-idle
Net run.halui.program.run halui.mode.auto <= and2.0.out
Net oktoresume and2.1.in1 <= halui.program-is-paused
Net resume halui.program.resume <= and2.1.out



Debug file information:
.
HAL: ERROR: function 'and2.0' not found
./lee.hal:24: addf failed
3739
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

I’d be very grateful if someone could tell me what it is I’m doing wrong please
Many thanks
Last edit: 31 Aug 2019 07:37 by Toolman321.

Please Log in or Create an account to join the conversation.

More
31 Aug 2019 07:41 #143706 by pl7i92
Replied by pl7i92 on topic And2 problem
hi
you shoudt post the whole HAL file if posible also the INI file
for checking in a real setup invirerment

THEN you missed the RULES
ALL LETTERS SMALL CASE
Wrong Loadrt
OK loadrt
Then the order is to be correct
#First load Component
loadrt and2 count=3
#then add the Trigger 1000/second
addf and2.0 servo-thread
addf and2.1 servo-thread
addf and2.2 servo-thread
#then connect
net mode.pause and2.2in0 <= hm2_5i25.0.7i76.0.0.input-09
net mode.pause <= halui.program.pause
net remotestart and2.0.in0 and2.1.in0 <= hm2_5i25.0.7i76.0.0.input-08
net oktorun and2.0.in1 <= halui.program-is-idle
net run.halui.program.run halui.mode.auto <= and2.0.out
net oktoresume and2.1.in1 <= halui.program-is-paused
net resume halui.program.resume <= and2.1.out
The following user(s) said Thank You: Toolman321

Please Log in or Create an account to join the conversation.

More
31 Aug 2019 09:29 #143718 by Toolman321
Replied by Toolman321 on topic And2 problem
It works! Many thanks for your help

Please Log in or Create an account to join the conversation.

More
31 Aug 2019 14:31 #143722 by pl7i92
Replied by pl7i92 on topic And2 problem
thats why we are here
Happy milling

Please Log in or Create an account to join the conversation.

Time to create page: 0.076 seconds
Powered by Kunena Forum