Internet PLC Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
Internet PLC Forum
»
General
»
General Discussions
»
comparing value of two DM
« previous
next »
Print
Pages: [
1
]
Author
Topic: comparing value of two DM (Read 19474 times)
artkraft
Newbie
Posts: 22
I'm a llama!
comparing value of two DM
«
on:
April 03, 2021, 12:34:52 PM »
I have DM[1] witch is the current position on a linear encoder. I want to know if DM[1] is = to or not greater than+ or- 4 cnts when at rest. If statement is true set Home flag.
Logged
support
Global Moderator
Hero Member
Posts: 3176
Re: comparing value of two DM
«
Reply #1 on:
April 23, 2021, 08:12:43 AM »
You should post this question at the Tech Support board.
It is simple IF THEN ELSE statement
#DEFINELOCAL targetCount = 1000
IF DM[1] < (targetCount + 4) AND DM[1] >= (targetCount - 4) THEN
...
ELSE
....
ENDIF
Logged
Email: support@triplc.com
Tel: 1-877-TRI-PLCS
KellyP
Newbie
Posts: 3
Re: comparing value of two DM
«
Reply #2 on:
September 28, 2022, 05:59:22 AM »
Got this question answered?
atlanta wedding photographer
Logged
BetterBath
Newbie
Posts: 18
Re: comparing value of two DM
«
Reply #3 on:
October 26, 2022, 03:38:08 AM »
Thank you for this website, with so much valuable information.
Our site
Click here
About us
Pet
sitting
dog
walking
services
near me
in PSL
Pet sitting
cat sitter
our site
About us
Click here
About us
About our
Junk
removal
garbage
disposal
services
in Port St Lucie
Click here
for more info
waste removal
debris removal
dog sitting
junk
removal
hauling
bulk
pickup
removal
hauling
services
in port st lucie
florida
removal
junk
removal
bulk
trash
pickup
junk
hauling
services
near
you
click
here
for
more
info
about
our
junk
removal
and
rubbish
removal
services
near you
«
Last Edit: July 12, 2023, 05:07:51 AM by BetterBath
»
Logged
Print
Pages: [
1
]
« previous
next »
Internet PLC Forum
»
General
»
General Discussions
»
comparing value of two DM