News:

  • April 16, 2026, 03:00:56 PM

Login with username, password and session length

Author Topic: SG-8B  (Read 18373 times)

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
SG-8B
« on: June 21, 2011, 03:21:41 PM »
First  time that I have ever pulled up a program from a Koyo SG-8B.  I see some strange things in the editor.
On some of the stages, there are rungs of logic that the right side rung swing back to the left going into the stage below.  Is this like a jump?
Also, although I have not tried to connect with it yet, the engineers who have say that the program never matches a comparison test, even after doing an upload.

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: SG-8B
« Reply #1 on: June 21, 2011, 03:52:45 PM »
The 'Power Flow Transition' is mentioned in the RLL chapter but I'll be danged if I can get Directsoft to make one. It has a symbol and it tries to draw something when 'Ctrl-Shift W' is pressed but it doesn't hook up right.
« Last Edit: June 21, 2011, 03:59:46 PM by b_carlton »
An output is a PLC's way of getting its inputs to change.

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: SG-8B
« Reply #2 on: June 21, 2011, 04:12:30 PM »
I can copy and paste it, but not draw it either. Looked in the mnemonic and it goes from STR to SG.
Hey can we get that in MX? :o


b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: SG-8B
« Reply #3 on: June 21, 2011, 04:15:00 PM »
I cheated (emulating Jim Kirk)

I created

SG 0

STR X0

JMP S1

SG S1

END

Then exported it to a text file, edited the text file eliminating the 'JMP S1' and re-importing. That gave me what I expected to see.

Though this was in DS not MX
« Last Edit: June 21, 2011, 04:16:55 PM by b_carlton »
An output is a PLC's way of getting its inputs to change.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3803
    • Host Engineering
Re: SG-8B
« Reply #4 on: June 21, 2011, 04:34:18 PM »
Hey can we get that in MX? :o
With the current implementation, sorry, no.  We hope to have a stage-centric editor/view some day that makes this ladder emulation of stage moot.

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: SG-8B
« Reply #5 on: June 21, 2011, 04:36:22 PM »
Just curious, can the current Directsoft actually make a Power Flow Transition? What order of entry?
An output is a PLC's way of getting its inputs to change.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3803
    • Host Engineering
Re: SG-8B
« Reply #6 on: June 21, 2011, 04:41:39 PM »
To answer this specific question, this is a limitation of the SG-8 firmware.  The firmware in the 440/450 code had a similar issue at one time.  At runtime, the SG-8 actually MODIFIES the ladder memory, one of which was a hidden parameter in the SG instruction.  Hence, we would download a 0 for this hidden parm, but then the PLC would change it (at PGM->RUN transition) to something other than 0.  Then, when we uploaded it, it "does not match" the hidden parm, hence the "differences".

If you look at the details dialog for the differences, it should be on SG instructions, one with a parameter value of K0 on disk and one with a non-zero value on the PLC side.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3803
    • Host Engineering
Re: SG-8B
« Reply #7 on: June 21, 2011, 04:47:35 PM »
Just curious, can the current Directsoft actually make a Power Flow Transition? What order of entry?
Yes!  It's the Ctrl+Shift+W key stroke, or Edit->Wire->To Stage.  It's actually on the Ladder Pallette, but it's the last one, and is usually hidden.  If you click on the chevron at the end of the Ladder Pallette, you see the clipped buttons, one of which is a wire-to-stage looking thing with ^W graphic (i.e. a Capital W, which you get by holding down the SHIFT button, hence a poor-man's way of saying Ctrl+Shift+W).

Just make sure you have no wires going to your output column, and (obviously) nothing in your output column.  DirectSOFT will generate the proper STR SG sequence (or whatever complex input logic you have driving the implied jump to stage).

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: SG-8B
« Reply #8 on: June 21, 2011, 06:59:58 PM »
Gee Wiz, never knew you could do that. Those crafty Koyoinians.  However, it makes sense. More often than not, you are jumping to the stage directly following the current one. The jump is almost redundant. But graphically, it just looks weird.

The machine was actually programmed in Japan. Every coil is an OROUT.
« Last Edit: June 21, 2011, 07:08:00 PM by ATU »

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: SG-8B
« Reply #9 on: June 21, 2011, 07:04:47 PM »
And I finally worked out the keystrokes. After the conditioning contact(s) do the Ctrl-Shift-W then a Ctrl-Dwn-Arrow to open up the space (I wasn't doing that). In that space put the next stage box and accept. Only then does it look ok.
An output is a PLC's way of getting its inputs to change.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3803
    • Host Engineering
Re: SG-8B
« Reply #10 on: June 21, 2011, 09:08:18 PM »
The machine was actually programmed in Japan. Every coil is an OROUT.
Yes, the Japanese version of DirectSOFT has the default coil as OROUT, which the mnemonic is OUT in Koyo-speak.  Their ZOUT mnemonic is our OUT.  So if you go to the output column and do Y0 (or C0 or C77), you get an OROUT Y0.

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: SG-8B
« Reply #11 on: June 22, 2011, 09:49:10 AM »
the Japanese version of DirectSOFT has the default coil as OROUT

this is probably the origins of the OROUT faction
« Last Edit: June 22, 2011, 07:44:13 PM by ATU »