Comparisons in hal
- RobotMatic
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 21
11 Jan 2020 14:04 #154608
by RobotMatic
Comparisons in hal was created by RobotMatic
how can i do conditional type IF
== <= =>.
Is this possible without ladder?
Thak you !
== <= =>.
Is this possible without ladder?
Thak you !
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
Less
More
- Posts: 1150
- Thank you received: 184
11 Jan 2020 14:17 #154610
by Mike_Eitel
Replied by Mike_Eitel on topic Comparisons in hal
AND2 if you have a digital signal.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
11 Jan 2020 15:11 #154617
by Todd Zuercher
Replied by Todd Zuercher on topic Comparisons in hal
"Near" could be used to compare floats.
Please Log in or Create an account to join the conversation.
11 Jan 2020 15:26 #154619
by andypugh
Replied by andypugh on topic Comparisons in hal
Please Log in or Create an account to join the conversation.
- RobotMatic
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 21
11 Jan 2020 22:52 #154652
by RobotMatic
Replied by RobotMatic on topic Comparisons in hal
I understand now that I can't with hal. !
then it is better to use ladder and voila !!
I am using the encoder component as a counter on channel A.
I wanted to reset the counter to a defined count number
It's just an exercise I wanted to do
Thank you a lot
then it is better to use ladder and voila !!
I am using the encoder component as a counter on channel A.
I wanted to reset the counter to a defined count number
It's just an exercise I wanted to do
Thank you a lot
Please Log in or Create an account to join the conversation.
12 Jan 2020 13:44 #154670
by PCW
Replied by PCW on topic Comparisons in hal
Actually you can do this in hal with wcomp
(assuming you want to reset the counter at a given count)
You could also reset it to a given number by using counter reset
and the offset component
(assuming you want to reset the counter at a given count)
You could also reset it to a given number by using counter reset
and the offset component
Please Log in or Create an account to join the conversation.
- RobotMatic
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 21
12 Jan 2020 14:44 #154673
by RobotMatic
I could reset! thanks!!
Now I will see if I can change the time-delay on-off times.
I am discovering a new world with HAl.
thannnkkk youuuu
Replied by RobotMatic on topic Comparisons in hal
I could reset! thanks!!
Now I will see if I can change the time-delay on-off times.
I am discovering a new world with HAl.
thannnkkk youuuu
Attachments:
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds