SCL syntax problem

rscott9399

Member
Join Date
Aug 2017
Location
in space
Posts
114
Guys

Cant remember syntax for an if statment like this in studio 5000
Can someone help

If ( some_tag == false) then

do something

end_if

I can not get it to accept a comparison for a false

I have tried

( some_tag = false)

( some_tag = 0)

and a bunch of others

Nothing works
How do i execute an IF if something is NOT TRUE
 
No Logix SCL experience, but most coding languages I've seen usually allow either <> or != as the opposite of equals ( either meaning "neither greater or less than" or "not equal to", but result is same).

Im surprised that equals 0 or false didn't work, though.
 

Similar Topics

Hi, When programming in SCL, does the compiler raise errors if there are problems such as a FOR without an END_FOR or you are trying to assign a...
Replies
2
Views
5,673
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
79
Hi, I have an intermediate-advance knowledge of programming with TIA Porta in Ladder, would you recommend me to start learning SCL for it to...
Replies
11
Views
559
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
317
Hi everyone, I am new to this amazing world of PLC, well... I mean, in practice, since I already knew electronics, programming languages, IT, and...
Replies
7
Views
652
Back
Top Bottom