plc_rookie33
Member
I am new to PLC programming and recently purchased a demo unit for a WAGO 750-881. I am trying to do a simple test in ladder logic that does the following:
- I have a value being written to a Wago 750-881 and stored in a global variable of type int, labeled Chan100.
- I also have a contact, labeled Signal that will be used to block or unblock a count.
- I have a counting device that is sending constant pulses to a R_TRIG (made a small simulator rung to simulate pulses every 3ms to test)
When Chan100 = 0 and Signal is ON, I want the counts to go into another global variable of type int, labeled Chan3.
When Chan100 = 1 and Signal is ON, I want the counts to go into another global variable of type int, labeled Chan4.
Could someone help me figure out how many rungs I will need in the ladder and what that should look like? I attached the sample Codesys file that I started if that helps. I am sure it is something very easy that I am missing.
Thank you all in advance!
plc_rookie33
- I have a value being written to a Wago 750-881 and stored in a global variable of type int, labeled Chan100.
- I also have a contact, labeled Signal that will be used to block or unblock a count.
- I have a counting device that is sending constant pulses to a R_TRIG (made a small simulator rung to simulate pulses every 3ms to test)
When Chan100 = 0 and Signal is ON, I want the counts to go into another global variable of type int, labeled Chan3.
When Chan100 = 1 and Signal is ON, I want the counts to go into another global variable of type int, labeled Chan4.
Could someone help me figure out how many rungs I will need in the ladder and what that should look like? I attached the sample Codesys file that I started if that helps. I am sure it is something very easy that I am missing.
Thank you all in advance!
plc_rookie33