dronai
  •  dronai
  • 53.79242% (Neutral)
  • Newbie Topic Starter
2020-04-29T21:59:20Z
This was the logic I was describing when talking about a Flip Flop. The enable bit uses this address to accomplish this task. C5:0.ACC/0

It used the accumulated amount from the counter. Someone else showed me how to do this. .ACC did the trick, I don't really understand this address, but I see the result.



I was wondering how to alternate two outputs with one push button using another method ?
Guest
2020-04-29T22:18:43Z
Ok, Im not sure what you are doing with a counter to create a flip flop. I can explain the addressing. I assume you have watched the vids on counters and are familiar with the accumulator or .ACC register. Keep in mind that any integer (which the ACC register is) in the SLC is made up of 16 bits. by addressing .ACC/0 you are selecting the first bit of that integer. The result being that the bit will alternate between 0 and 1 every time the counter increments. Ahhhh, now I understand the flip flop function. The definition of a flip flop being the toggling of the output based on the transition of the input to the circuit or the logic in your case. I've never seen a counter used that way, but that will work. With this method, you would simply take the addres C5:0.ACC/0 and use it for an XIC or normally open contact in the first rung driving output 1 and use the same address in an XIO on the next rung driving output 2. Alternatively you could use the address for output 1 in the XIO for the second rung.

Now as for an alternate method to achieve this, I am sure there are many. Since you are a student here trying to learn PLC programming, I would suggest you first make an attempt at the logic and ask quesitons on direction and problems that come up. It would be better to be directed and nudged the right direction than to be given the solution. That said, I can hint that there is a away to do this with a single rung that would drive an output to replace the ACC/0 bit you are using above. It involves using a oneshot, latch, unlatch and standard OTE output all on one rung. Take that info and see what you can do with it.
dronai
  •  dronai
  • 53.79242% (Neutral)
  • Newbie Topic Starter
2020-04-29T22:25:06Z
Ha !!! You want to torture me OK you are right. We do learn better by a little suffering first, and a big feeling of accomplishment when we succeed. I will take on the challenge, and try the hints you have given me. Ohh that One Shot function again !!!
Guest
2020-04-29T22:28:37Z
That's my job! torture-r-us. Don't get hung up on the oneshot. It is a very simple instruction. All it does is limit the logic after it to seeing a 1 for just one scan. So every time the logic before it changes from 0 to 1, it allows a 1 to be available for just one scan after it. Enter the add logic shown in the video and play with that to understand it better. Enter a rung without the oneshot - test it. Then add the oneshot and see the difference. Also, use the ONS in the micrologix. The OSR has a different setup and adds nothing to what you get from it. Basically it's a useless addition.
Users browsing this topic
RSLogix500 Introduction
RSLogix500 Inserting Instructions
RSLogix500 Opening a File
RSLogix500 Creating a Project
RSLogix500 Instruction Comments
RSLogix500 Rung Comments Page Titles
RSLogix500 Inserting Branches
RSLogix500 Program Organization, Part 1 - Overview
RSLogix500 Program Organization, Part 2 - Examples
RSLogix500 Using Symbols
RSLogix500 View Properties
RSLinx
RSLogix500 Online Offline
RSLogix500 Dowloading and Uploading
RSLogix500 Processor Modes
RSLogix500 Processor and Cards
RSLogix500 Introduction to Faults
RSLogix500 Indirect Addressing
RSLogix500 Indirect Addressing Faults
RSLogix500 Handling Faults
RSLogix500 Forcing I/O
RSLogix500  Custom Data Monitor
RSLogix500 I/O Configuration
RSLogix500 Advanced Diagnostics
RSLogix500 Instructions OTL OTU, Part 1
RSLogix500 Instructions OTL OTU, Part 2
RSLogix500 Instructions OTL OTU, Part 3
RSLogix500 Instructions, OTE
RSLogix500 Instructions, XIC XIO
RSLogix500 Instructions, ADD
RSLogix500 Instructions, COP
RSLogix500 Instructions, CPT - Part 2
RSLogix500 Instructions, CTU CTD - Part 1
RSLogix500 Instructions, CTU CTD - Part 2
RSLogix500 Instructions, CTU CTD - Part 3
RSLogix500 Instructions, CPT - Part 1
RSLogix500 - Comparison - Part1
RSLogix500 - Comparison - Part 2
RSLogix500 Instructions, DIV
RSLogix500 - FIFO - FFL and FFU - Part 1
RSLogix500 - FIFO - FFL and FFU - Part 2
RSLogix500 Instructions, FLL
RSLogix500 Instructions, JMP and LBL
RSLogix500 Instructions, Masking and MEQ
RSLogix500 Instructions, MUL
RSLogix500 Instructions, MOV
RSLogix500 Instructions, LIM
RSLogix500 Instructions, NEG
RSLogix500 Instructions, OSR
RSLogix500 Instructions, RTO
RSLogix500 Instructions, SQO sequencer - Part 1 of 3
RSLogix500 Instructions, SQO sequencer - Part 2 of 3
RSLogix500 Instructions, SQO sequencer - Part 3 of 3
RSLogix500 Instructions, SUB
RSLogix500 Instructions, TOF
RSLogix500 Instructions, JSR and RET
RSLogix500 Shift registers
RSLogix500 Instructions, SQR
RSLogix500 Instructions, TON - Part 1
RSLogix500 Instructions, TON - Part 2
RSLogix500 Instructions, TON - Part 3
Introduction to Ladder Logic