jpen_110

Newbie - Help. on Omron Sysmac S6

62 posts in this topic

I think I initially misread the line 085 from the written code and thought is was in a different section.  Sending code in a minute.

Share this post


Link to post
Share on other sites
Quote

 

Step 085: Change from TIM1 to OR LD
Key to Program o CLEAR

TIM 1 SEARCH find step 085 
using up/down arrow buttons

DISPLAY CLEAR button (not CLEAR)  
OR LD WRITE
UP ARROW to visually confirm step 085 reads OR LD

 

  •  
  • LD 4 
    AND 81
    LD 64
    Insert OR LD   Take Notice
    AND NOT 67
    OUT 64

Share this post


Link to post
Share on other sites

Here is the code.  I failed to number the lines and was coordinating the number between the 2 documents (the ladder and the S6toC2K file).  Thus, this was throwing me off.  I assumed, wrongly, that the reference numbers on the ladder at each section were referencing steps.  It seems there are 178 lines of code, not 173, so somewhere I messed up.  Thus my reference to line 85 was off.

see attached txt.  I left the line 19 in there for now.

Revised code as of 12-27.txt

Share this post


Link to post
Share on other sites

My observation is that after compensating for step 19 being deleted, it seems most of the variance between the ladder diagram and theS6toC2k code numbers occurs in Network 7-Agitator Motor, between lines 031 and 050.  

Share this post


Link to post
Share on other sites

Hold on. Analyzing lad piece of text.

Share this post


Link to post
Share on other sites

There quite a few errors in the revised code,  Suggest you check the current code in the S6 against Code as of 12027 .txt.

Confirming there should be 177 Steps including Step0.

Code as of 12-27.txt

Share this post


Link to post
Share on other sites

Thanks Jay.  I went through the S6 and confirmed each step now matches the attached file.  It is your file with the steps renumbered in a couple of places (there were some duplicated/missing step numbers).  No errors are being reported in the program check!  I was clearly sloppy on my keying in a few places.

When I put the key into RUN or MONITOR, output 27 turns on immediately and the Hydraulic Motor begins to run.  Then when I push the "START BUTTON" or input 9, the motor "pauses", but then resumes running once you release the button.  Same thing happens with the "STOP BUTTON" or input 10.  No other action takes place.  

If we can assume the code is accurate, what do you think the starting conditions are for stuff to start moving (besides hydraulic motor running)?

Footnote:  As I stated before, I am able to "force" an ON setting to each of the outputs and get the independent pieces (auger motor, agitator, main cylinder extend/retract, etc.) to move via the S6 controller.  The one "new condition" is that the PrePress Cylinder Retract no longer retracts when forcing the output 13.  We have to manually hold down, what we believe, is one of the Diverter Solenoids, while forcing output 13.  I don't know if output 13 was "linked" in the original code to another output, and if it was, I don't know how to link it.

Code as of 12-27.-JP Numbered.txt

Share this post


Link to post
Share on other sites

With physical Stop Button not pushed, is input 10 LED on or off?

 

Share this post


Link to post
Share on other sites
Quote

As I stated before, I am able to "force" an ON setting to each of the outputs and get the independent pieces (auger motor, agitator, main cylinder extend/retract, etc.) to move via the S6 controller.  The one "new condition" is that the PrePress Cylinder Retract no longer retracts when forcing the output 13

I Suspect Bypass is dumping to tank.  Check output 24 for on.

Share this post


Link to post
Share on other sites

input 10 is "On" and goes off when the STOP BUTTON is pushed.

Share this post


Link to post
Share on other sites

output 24 is on when we turn key to RUN or MONITOR

 

Share this post


Link to post
Share on other sites

Hold on.  Might have bad info.  Doing this remotely this am.

 

Share this post


Link to post
Share on other sites

You are continually in the Stop Mode which activates Output 24 Bypass

Change 158 to LD NOT KR7.

Share this post


Link to post
Share on other sites

How good is your remote person at using the Handheld console?

Share this post


Link to post
Share on other sites

They are good, with really specific directions.  I asked if they were around and if they could check on if output 24 was on.  They responded yes, and I mistook that as in yes it was on.  It was yes, they were around.

 

Share this post


Link to post
Share on other sites

158 is now "OUT 66", so that should be changed to read "LD NOT KR7", right?

 

 

Share this post


Link to post
Share on other sites

If Output 24 is ON

You are continually in the Stop Mode which activates Output 24 Bypass

Change 159 to LD NOT KR7.

Share this post


Link to post
Share on other sites

Check above

Share this post


Link to post
Share on other sites

Ok.  Output 24 is not on either when it is initially powered, when the key is switched to RUN or MONITOR, nor when the Start Button is pushed.  When you push the Start Button, input 9 is activated and then Output 27 shuts off (killing hydraulic motor).

I did change out line 158 from OUT 66 to LD NOT KR7 after determining above.  Then retested and it didn't make a difference.

Share this post


Link to post
Share on other sites
Quote

 

 

 

Quote

 

 

Quote

 

 

 

Quote

I did change out line 158 from OUT 66 to LD NOT KR7 

change line 158 back to OUT 66

Change 159 to LD NOT 70

Retain  160 to AND 10

Retain 161 to LD 109

Retain 162 to OR 9

Change 163 to OR 70

Retain 164 to KR7

70 is a placeholder to retain step number

see above

This should allow start mode to work.

Gone back to dialysis for five hours.  Will study,  What days are you working for the next week?

Share this post


Link to post
Share on other sites

All next week, including Tuesday...take care Jay.

  • I changed the code to reflect above changes (step 158 to Out 66 and step 159 to LD NOT KR7).
  • The Start Button is wired separately from the Stop Button - no shared wires
  • The Start Button, when depress, shuts off Output 27 which is the hydraulic motor, once start button is released, Output 27 output on again.
    • We then activated Input 0 and pressed Start Button and the same scenario happened above.
    • Input 1 and Input 20 seem to be linked together.  We can, via manipulation, get that input to come on and off (sensor)
    • Only in the scenario where Inputs 0, 1, 20 are on, when pressing the start button does 27 not shut off.
  • The Stop Button when pressed, does shut down Output 27.

 

Share this post


Link to post
Share on other sites

Apparently my edits did not make it from dialysis.

Change 159 to LD NOT 70

Retain  160 to AND 10

Retain 161 to LD 109

Retain 162 to OR 9

Change 163 to OR 70

Retain 164 to KR7

70 is a placeholder to retain step number

This should allow start mode to work.

Share this post


Link to post
Share on other sites

OK.  Looking at this, and if I understand it correctly, make changes to 2 of the steps: 

  • Step 159:  Change to LD NOT 70
  • Step 163:  Change to OR 70

"70" won't actually do anything, but this keeps the rest of the step numbers the same for referencing.

Is that a correct understanding?  Thanks Jay.

Share this post


Link to post
Share on other sites

70 is a placeholder to retain step number

It does not affect the logic.

Share this post


Link to post
Share on other sites

Changed those line of code.  Start button, when activated, no longer shuts off output 27.  No other activity occurs, however.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now