Author Topic: Local variable to a Output group  (Read 297 times)

0 Members and 1 Guest are viewing this topic.

Offline kewal

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 10
Local variable to a Output group
« on: June 12, 2018, 04:08:59 PM »
Can we have an Output group with a variable like LD or LI for eg:

DOUT OG#(21) LD001

or

DOUT OG#(21) LI001

because I do know that we can have LB001

THanks !!

Offline rAviteja_g

  • Jr. Member
  • **
  • Thank You
  • -Given: 7
  • -Receive: 8
  • Posts: 90
Re: Local variable to a Output group
« Reply #1 on: June 12, 2018, 05:33:56 PM »
OG#(Output group number)

Specifies the output number group signal (1group 8 points).

No:1 to 512
Variable B/I/D/LB/LI/LD
can be used

It is possible to do---  and if you want to know just have a look in dx200 informal instruction manual (first instruction in book  :icon_wink:)

Have Fun :yesyesyes: :yesyesyes:
« Last Edit: June 12, 2018, 05:47:06 PM by rAviteja_g »

Offline kewal

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 10
Re: Local variable to a Output group
« Reply #2 on: June 13, 2018, 07:23:23 AM »
Thank you for the manual information found it and seems its a really good start, what i see is that you can use B/I/D/LB/LI/LD inside the bracket say for eg
DOUT OG#(LI001) but what i had in mind was to assign the value that is present in LI001 (=750) and put that value on to output group 21 which kind of doesnt make sense i get it now. but thanks a lot!

Offline kewal

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 10
Re: Local variable to a Output group
« Reply #3 on: June 13, 2018, 11:58:13 AM »
Update:

I recently called Yaskawa and they said it is possible but to assign an integer value to a group output we need to do it by using SETREG and use ladder editing to move this value to the group output. Not sure how it was supposed to be done but it is possible to do so.. If some one has some knowledge please do share about this !! Thanks in adavnce!!

Offline 95devils

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 129
  • Posts: 790
Re: Local variable to a Output group
« Reply #4 on: June 13, 2018, 02:16:50 PM »
Yaskawa is saying this because a group only has a value of 0-255.

You would probably use a SET instruction to get the value into the I-variable, or some math instruction.  Use the SETREG instruction to move the value of the I-variable into an unused M-register in the ladder.  You would then write logic in the ladder program using the MOV instruction to move the value of the M-Register into a Relay Word.  This would then write the value into group 21 and the next group.  The next group (22) would have to be removed from the ladder.  You also would probably want some type of logic to trigger the MOV as opposed to updating the outputs every scan.
Alcohol:  The cause and solution to all life's problems