SoMachine Basic High Speed Counter

MarCom-ic

Member
Join Date
Nov 2016
Location
Montana
Posts
1
Hello All,

We are running a project with a Schneider Electric M221 using an incremental encoder to measure speed of a piece of machinery. We have the program running correctly until the machine reaches full speed. At around 3/4 speed the math functions start registering incorrect data. For example if we go to move hsc0.v into mw0 when hsc0 has a value of 25 mw0 will return a random value, something like 7900 or 0 or -17365.

Does anyone here have any SoMachine Basix high speed counter experience? Or a sample SoMachine basic program that has a working encoder?

Thanks for any help, or ideas.
 
be sure to move all data, or stop counter while doing this, so please only one instruction to move the data.
be sure to check overflow.
a PLC is rather slow for high speed, so be sure your calcs are correct.
 
The READ_IMM instruction reads a function block parameter during the execution of a task and updates the input image during the same cycle.
This function is available only for certain function block parameters. The READ_IMM instruction reads directly from the HSC.V and HSC.P registers in High Speed Counter (%HSC) function blocks. For more details, refer to High Speed Counter (%HSC).
 

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