SoMachine Basic, Comparison problem

Qulu Quliyev

Member
Join Date
Jun 2016
Location
Baku
Posts
4
Hi everyone,
I am beginner in the plc programming, and I am learning it using SoMachine basic software. There is a comparison command, which I have problem to work
with that. I want to compare two bits, and write the valid expression in below form:
[%Q0.0=%M0]
However, software gives me error. Can anyone help me with that ?
Any help is highly appreciated.
Best Regards,
 
you dont use a compare function for bits. only for values like int or float.
If you are using ladder then just put the 2 bits in series either normally open or closed. Or if you are using function blocks just use an and block
 
%Q0.0 is an outputbit and %M0 is a Marker however it should read %M0.0 so you forgot something
and yes you may use =, however better is to use EQ.

@chud you will have to use the EQ block both in ladder and ST as AND gives only result when both are TRUE
 

Similar Topics

Hi all, I've been trying to develop modbus rtu program between uv balasts and plc ı'have 6 slave balast.I am reading fault run voltages etc...
Replies
0
Views
1,172
hello eveyrone I want to make an application with M221 PLC in SOMACHINE BASIC program. I request your valuable help. I have a 50 ms pulse...
Replies
1
Views
1,582
Hi Guys, I'm using M221(TM221CE24R) PLC and SoMachine Basic from Schneider and having a bit of problem. 1. I can't able to read the data from...
Replies
1
Views
1,729
Hello, I am new to plc programming. I am trying to program a flow meter (E&H promag 50) in somachine basic to achieve the following: 1...
Replies
5
Views
2,370
I downloaded SoMachine Basic, I'm looking to maybe use an M241 in an upcoming project. It seems that the basic vs, doesn't offer Tag based...
Replies
2
Views
3,011
Back
Top Bottom