MrPLC Member
  • Content count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About professor_jonny

  • Rank

Profile Information

  • Country New Zealand
  1. rounding a value to nearest 10

    I'm using a mixture of NB and NS screens currently and possibly in the future ignition scada. That is one option I guess but it is screen dependant and would be nice to do it in the plc.      
  2. rounding a value to nearest 10

    Hi I have flow meters and have them counting up to a value and stopping a pump.   it all works but the display on the hmi counts up in decimal places because of the scale factor of the flow meters. To scale them because of inacuracy I basically multiply what I want to count to by 1000 and i basically add for every pulse of the flow meters a value between 1500 and 500 to count to scale the flow meters then compair the two to stop the pump if the count is equal to or greater than the dialed in amount. Is there an easy way to round this value to the nearest bigest 10's value? I'm guessing convert to a floating point use the FIXL instruction? is there an easy way im missing as I could not seem to find a rounding instruction?    
  3. latest sysmac installer version ?

    thanks that installer is 1.25.1 which is significantly newer than my DVD and will save me a lot of headaches.
  4. We have a really old sysmac version back from around 2014 and we have to spend half a day updating every time we install it what is the latest installer version?   As I was recently sent a updated version from Omron but it is way behind 1.27 which I believe is the current latest update and I still have to preform updates afterwards.        
  5. step program

    I have made a sequencing program as such it uses move and compair instructions but it ends ends up taking up more space than the step program as compair is a larger memory footprint than step. I'm asuming you mean something like the attached? The other problem I have is that im trying to remain backwards compatable with the cpm1a and it does not as such have an inline function just CMP with cpu flags and it gets long winded and confusing. test.cxp
  6. step program

    I'm using a cp1l  plc and are currently using step/ step next functionality with in a program and it works but i have run out of programming space and what i want to do is break down the program into blocks and recall them from with in a step or something simular so I dont need to rewrite code multple times. problem is you can not have steps within steps. will i be able to acomplish this with subroutines blocks or some sort of stack pointer with indirect adressing or something would any one be able to shed light on a possible solution?
  7. Omron PLC's with Syswin3.4

    You may have a lite version (demo) you may need to talk to an omron rep to get a full version or a version of cx one  
  8. About InverterRefresh

    I don't know about your yagi drives but I control a Danfoss drive with a cp1l plc using function blocks using Modbus easy master to do basically the same as you want. with the Danfoss drives you have the ability to control the drives via digital input and or fieldbus with the option for logic for one to override the other so you could use a relay output to start the drive and then use Modbus for the control word for speed reference.
  9. nested keep

    can someone explain to me why this wont work. I expected it will operate the first keep on input 00 and the second operation will operate the second keep. but that is not so. but both operate at the same time at the up shift of input 00. it seems it ignores the reset on the second keep.     nested keep.cxp nested keep.cxp
  10. code optimisation steps vsr FB memory

    I'm looking for a way to optimise memory in a cp1l plc as I have run out of steps (UM) memory to fit my program. I have heaps of fb memory as im not using many function blocks am I able to trade on for the other to fit a bigger user program in some how? Will coding in function blocks reduce the amount of steps in the program as from a quick play FB use steps when they are posted in the user program but I don't know which is less memory hungry it seems fb actually consume more memory.      
  11. Modbus-RTU communication omron to third party

    This will work is is using rs232c non protocol transmission function blocks. you may have issues with this if you need handshaking as I don't believe it supports it like modbus easy master so I don't think it will work in point to point 232 but it will with multi drop 485. You should set the dip switches on,on,on,off,on,on 1 through to 6 with the cp1w-cif11 or 12 documentation in English and French and a cheat sheet showing the setup between omron master and slave. I have tried this and it works at least with the send register function x_10 It is pulled from the Omron  support site as Jpv seems to make a lot of the omron modbus function blocks. Cheers Jono Modbus RTU Master(CP1L) to Slave(CP1L) RS485.pdf
  12. cp1l to cp1l modbus easy slave ?

    I have found an alternative modbus program in ladder and it is easier to follow and i can see the logic. It seems like I'm gettin crc errors and malformed messages. what would be the cause of this?   I have monitored W0 in the monitor window and it seems to be getting rubbish but some times it is ok this looks like an ok frame whether it is correct or not I don't know: slave code 02 function 10 address 0AF9 0210    0AF9    0002    9212    3C00    008C    5901    100A    F900 but then this is total crap: 0210    0AF9    0210    0AF9    0002    0404    3C00    008C    5900       ModbusPLC_V2.cxp
  13. cp1l to cp1l modbus easy slave ?

    switching off these switches makes the master plc talk to nothing the function block in the master plc bust require hand shaking? I think it is starting to get a bit above my head.
  14. cp1l to cp1l modbus easy slave ?

    The block i have in my sample program you can view it is a previous version of jp's function block you link to above. how do i tell if hand shaking is enabled? i have tried turning off both switches but then I get no comm at all with any thing.   i have altered the format to be 81n 81e and still get nothing i have also tried jp locked fb as linked above and still get no comms.
  15. cp1l to cp1l modbus easy slave ?

    Ok so rs232c basically means no plc serial port magic and the slave plc must be configured this way as there is no Modbus slave native comms in bedded in the plc ? seems like they should name it better like no protocol comms or something instead of rs232c. In the slave plc I'm using the same plc as the sample code so I just put the software straight in the plc and altered the format to be 81n as per the master plc I have not altered any thing else, but I did try it with serial gate way and I have accidentally up loaded the serial gateway altered program. The master plc is set up as serial gateway and is currently talking to two slave Modbus rtu danfoss drives and it works, I'm requesting a read and write in the same manor as the plc, I'm just reading and writing two words same as the drive. I have three devices in the network master plc, drive (node 1) and slave plc (node 2) it talks to the drive just not the plc with all three devices on the bus. If I connect a master plc and two drives set as node 1 and 2 it talks to both drives no modification which points that my code is good and I don't know why I should change my master plc to be rs232c mode as suggested above if it currently works talking to the two vsd's. In theory it should be working but for some reason it is not and I don't know why. I tried both plc's in host link with the current wiring and dip switches and it works so it looks like a problem with the sample code or serial settings in the slave. you also state above to check the DIP Switches in the CIF01 I'm using 2wire CIF11 ports in each plc as I currently have the dip switches set as on,on,on,off,off,on 1 through to 6 on both plc's