SuperCoupe
Member
All,
Have not programed a PLC in a couple years and my new job asked me to do a simple project and I thought it would be easy, but I have ran into a problem sending the correct drive speed in HZ from the plc. This is my first time using Directsoft 6 software. I have searched all over the forum/internet but nothing seems to help.
Back ground.
Using a EA9 HMI, DL06 PLC and a GS3 drive. It is a basic system that you put a time and RPM into the HMI to run a drive at a set rpm for a set time. The time part works great, but on the RPM side keeps giving me problems. Currently the output is always rounding down, I think it has to due with using HEX, but I can not figure it out for some reason have have tried for two days using all different commands, but still no luck.
Here is what I currently have:
-LD V402 (loads value from HMI, have tired BCD and signed int)
-DIVB K3b (59 is used to convert from RPM to HZ)
-MULB K10 (multiply be 10 to get to correct number of digits)
-BIN
-OUT V3000 (outputs to drive in HZ)
It works but it always rounds down, so if it comes out to 15.6 HZ it out puts 15.
Example:
-LD V402 500 RPM from HMI
-DIVB K3b 59 (used to convert RPM to HZ for this motor)
-MULB K10
-BIN
-OUT V3000 drive run at 8Hz, 472 RPM, but I need to to be 8.47 500 RPM
I am sure that it is something simple, but I can not figure it out.
Thanks in advance for any help.
Have not programed a PLC in a couple years and my new job asked me to do a simple project and I thought it would be easy, but I have ran into a problem sending the correct drive speed in HZ from the plc. This is my first time using Directsoft 6 software. I have searched all over the forum/internet but nothing seems to help.
Back ground.
Using a EA9 HMI, DL06 PLC and a GS3 drive. It is a basic system that you put a time and RPM into the HMI to run a drive at a set rpm for a set time. The time part works great, but on the RPM side keeps giving me problems. Currently the output is always rounding down, I think it has to due with using HEX, but I can not figure it out for some reason have have tried for two days using all different commands, but still no luck.
Here is what I currently have:
-LD V402 (loads value from HMI, have tired BCD and signed int)
-DIVB K3b (59 is used to convert from RPM to HZ)
-MULB K10 (multiply be 10 to get to correct number of digits)
-BIN
-OUT V3000 (outputs to drive in HZ)
It works but it always rounds down, so if it comes out to 15.6 HZ it out puts 15.
Example:
-LD V402 500 RPM from HMI
-DIVB K3b 59 (used to convert RPM to HZ for this motor)
-MULB K10
-BIN
-OUT V3000 drive run at 8Hz, 472 RPM, but I need to to be 8.47 500 RPM
I am sure that it is something simple, but I can not figure it out.
Thanks in advance for any help.