RobinA

MrPLC Member
  • Content count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About RobinA

  • Rank
    Sparky

Profile Information

  • Country United Kingdom
  1. Data value to Switch on M Flags

    Thanks guys, that was what I was looking for. ! didnt realise you could just simply : MOV D1000 K2M100
  2. Hi I'm sure there is an easier way or simple command to do this rather than the long winded compare i've done. We have a PC linked to PLC, (The PC handles data logging along with other CAD type functions) PC Sets D1000 to 1 : I Want M100 on PC Sets D1000 to 2 : I Want M101 on PC Set D1000 to 3 : I Want M101 and M102 on etc etc The Binary number in D1000 is reflected by Head address M100 + 8 These Flags are set to trigger various other control functions with in System ta
  3. Jeeeeeeepers you guys are quick ! Thanks for the pointers, that's what i was looking for. I didnt know you could do the Move K4X0 D100. As the inputs are not in order so to speak I set/reset consecutive M regs eg X1 -> M100 X21 -> M101 X22 -> M102 M24 -> M102 then Move K4M100 D100 getting there with Thanks
  4. I want to use the the real time clock to time stamp the change of state of a few inputs, for Diagnostic work. ( FX2n) Is there a handy way to do this ? So far I've tagged a few inputs to call a sequence that read the time and stores it in the next few registers [TRD D500V0] the increment V0 by 10. But I need to store which input triggered this, is there someway of setting a bit in say d100 against this ? Is it possible to reduce the number of regs used by combining them ? I realise I 'll soon run out of regesters so thinking of setting a round Robin We do not have an HMI on the machine , so it it will be a case of taking along the laptop and uploading the regs and waiding though them to see what order things happened in/button pressed by the operator Thanks in advance
  5. FX3U Encoder Output Triggers

    Thanks, you could do it the way you suggest but the progam could could a bit much as there is well over 30 Comparsions at momnet. Some of the Off values are less than the on values because of roll over ie On at 7000 off at 10 then there are many more compares. IF OFf value > than On value then its a straight forward compare. If Off value < than On value then in this cast its an On 7000 to 8191 and then on from 0 to 10...... if you get my drift. " If V0=0, then D0V0 points to D0 if V0=10, then D0V0 points to D10 " Yes I was thinking the encoder read command into D0 M8000 ----||---------------------------------------------[GBIN K4X0000 D0] at the same time if this value could be copied into D10 with and Offset Value ie D10= D0 - 50 then in the comparson strings just change V from 0 to 10 and that will change all ouput timings in the differnt Run Mode. Howevere can this be done ?? Every encoder increment in D0 would need to trigger and Add into D10
  6. FX3U Encoder Output Triggers

    Hi All I have an an Absolute Encoder, Grey Code 8192 Resolutuiion Hooked up to an FX3U PLC. There are quite a number of position triggers that turn on Y outputs to control pneumatic valves. For example some of the valves need turned On/Off three times per cycle so D600 will be the first on And D601 will be the off value. To get the 2nd on/Off value on Initialise power up a routine adds 8192/3 to first [on] value D600 and writes it to D602 and there is a wee bit of maths to cater for roll over and this is the 2nd On value . And so On As a result there are approx 30 Registers During Machine Run comparsions are done with encoder Value held in D0 and outputs turned on or Off ie [> D0 D600]-[< D0 D601]---- ( Y65 )- Now This all works fine on Machine run. But some times the machine is turned into Jog mode and due to differance in machine speed etc the valves turn on too early The Question is I Need to somehow offset alll valves by a value in Jog mode but not in run mode. I cant simply offset D0 beacause, there are other triggers I Want to trigger as is regardless of Machine run mode. Is there a handy way to do this, to simply switch in/out and offset value Somemore thoughts. The encoder data is read and converted using the folllowing Command M8000 ----||---------------------------------------------[GBIN K4X0000 D0] Can for example same data copied with an offset into say D10 then in the comparsions switch between D0 or D10 depending on run mode ? [> D0V D600]-[< D0V D601]---- ( Y65 )- v=0 or 10 ....... ?
  7. GX Developer

    Ok I'm there I have installed GX converter and able to create a text file.... But its in List form not ladder, am I asking to much of this. Sorry guys if your having to spoon feed me
  8. GX Developer

    Emmmm I might be a bit stupid here, but I dont have the option CSV or text file GX Developer GX 8.62Q FX2N fproject Under Project I have Export to FXGP(Win) format file Export to FXGP(Dos) format file also Export to MXChanges Tags ...... what this infact whats the above as well ?? GX configurator CNV ??
  9. GX Developer

    Hi all For those of you that remember, In the Old Medoc software it was possible to "print" to a file that then could be imported into a word document. I found this useful as you could then add "full" descriptions to sections of the code to explain why it was done this or that way. ie You could read a full description and the see the actual code below it. Is there away this can be done within GX ? Thanks in advance
  10. Abs. Encoder and switching points

    Thanks for reply and formatting !! I dont have a problem with inline compares, was looking for a neater solution than the one I tried to explain that didnt use a host of relays etc. Sorry for my ignorance, I didnt realise you could do the above code, which is a lot more readable, neater, etc is this FX3U GXW speak. ? ( If you dont ask you dont learn )
  11. I'm hooking an absolute encoder 8192 resolution, gray output, to an FX3U, Using the [ GBIN KX004 D30] to read data into Register D30. The encoder rotation is quite slow and I've tested switching a few outputs according postion data and works fine. There are 6 outputs that switch 3 times per revolution (at the momment !! ), this requires 18 compares but, as some outputs overlap the encoder rollover, switch on at say 7000 and off at 100 this requires additional compares. There is also 8 outputs that switch once per cycle. (at the momment) Its essential we know the absolute position therefore cannot use an incremental. We have thought of hybrid system using an Absolute and, an Incremental geared on a 3:1 that would give us one switch point per Incremental resolution. Could use the Absolute on power up to set Incremental position start point. However there are other issues with this. However..... code sample below M8000 (On) (Off) ---||--------------------------------------[CMP D500 D501 M0]--------- | | M2 ( D500 < D501) +-----||----------------------------[ ZCMP D500 D501 D30 M3 ]---- | | M0 (D500 > D501 +-----||-------------------[ ZCMP D500 K8191 D30 M6 ]----- | | +--------[ ZCMP K0 D500 D30 M9 ]----- ( Sorry for format ,not sure how to copy in code sample) M4, or M7, or M10 used to turn on/off output This repeated 3 times. D500 1st On D501 1st Off D502 2nd On D503 2nd Off D504 3rd On D505 3rd Off Along with differnt Mxxx relays so can end up with 9 Mxxx realys Or'ed to control ouput. We now have 4 Compares for a switch point hence 6 ouputs * 3 switch points * 4 compares == 72 Apart from the pain of repeating this block 18 times ( or more ) and using A host of M relays etc which I know is not a real problem. Is there a neater solution, ie Looping, using V / Z setting flags, bits etc and then switching final outputs according to a bit flag, etc ????? Thanks in advance Robin