Jim82

MrPLC Member
  • Content count

    28
  • Joined

  • Last visited

Posts posted by Jim82


  1. Hi!

    I want to send (TCP) a string value with the TSEND block to a specifik IP adress.
    Using Siemens Step 7 5.6.
    I have done it in TIAportal without any problems but its more user friendly, seems like you have to create everything by your own in Step 7 5.6.

    Anyone having a program example or even a hint how to start?

    Br,
    Jim


  2. FYI!

    The PidFx V100  didnt work so well for me with the FX3G, there was some regulator bugs.
    When I switched from manual to auto the regulators output was maxed, regardless what the output was in manual. Did some changes to the code without luck.
    I talked to Mits support but they didnt solve it either.

    So I downloaded PidFx_V401... and it worked flawless! :)

    Br,

    Jim

    PidFx_V401.sul


  3. 3 hours ago, Cetronic said:

    I have used the PidFX_V300 library in GXWorks2 In the the FX3U FX3G and the FX3GE I am sure its available on the Mits Euro Site or it might be the Beijer site. There are various versions of Pid.

    Ray

    Thanks Ray!

    I found one, PidFX_V100... at the Mits website!

    /Jim


  4. Hi!

    Im shooting from the hips here, is there anyone who is familliar with MelDDE?
    I keep getting this error message from the PLC:

    Write Error DLL (Protocol, PLC replies NAK) <55H>

    Anyone knows what that means?

    Br,
    JIm


  5. 9 hours ago, kaare_t said:

    Glad you sorted it out, as mentioned I haven't tried it but it looks like it was a "pain" to get it working...

    As a small side note: UDP is much better since it reduces the amount of traffic on your network (and hence is faster) as long as you're using already verified or polled protocols. TCP is only an advantage if you have multiple segmented packages, or protocols that doesn't have built-in CRC's. Most well-known (all that I can think of) industrial protocols have built-in CRC's and don't use segmentation. This also includes all copper Ethernet protocols from Mitsubishi. I don't know why every supplier set default TCP since it is essentially a waste of resources and network speed, but I always recommend that if UDP is available then use it instead of TCP!

    Thats some usefull information... I've always used to choose TCP!

    Thanks kaare_t!


  6. Had some trouble getting the other ports to work but I managed it... don't know why but I had to use UDP on the HMI and the server too.
    Before I used TCP, but it doesn't matter which protocol as long as it works :)

    Thanks again, it helped alot!


  7. 19 hours ago, Fenix said:

    It's not true. Right now i'm connected to the machine with A2SH CPU thrue ethernet.  Eth modul is only 10Mb/s, but everything is woking.
    Try to use attached POU.  Use it insead of yours. BUT I changed eth port to 5000 (hexa 1388). You have to change it in transfer setup!

    eth_1.zip

    eth_1.zip

    Great Fenix! 

    It worked with your POU. Now i just have to open the ports for the HMI and the server....

    (guess Mitsubichi support did want to sell me more stuff ;) )

    Thanks alot!


  8. 38 minutes ago, kaare_t said:

    I have never tried GX IEC or GX Dev against an AJ71E71 module but why not just use the SC09 cable? The HMI is working, so why not?

    Cause its better when you want to monitor certain things at the machine. Then you can watch the machine at the same time (using WiFi)
    My plc is in another room then the actual machine...


  9. Hi all!

    I have an old A2SH PLC that has an ethernetmodule (AJ71E71) installed.
    But I can't communicate with the PLC thru ehternet in GX IEC Developer 7.04.
    The module answers on PING command and I also use an HMI (Beijer T7A) over ethernet that works flawless...

    Anyone got any idea why it wont work with Developer?

    Br,
    Jim


  10. Hi Guys!

    A simple question, im quite new to this so dont be to hard :)

    I have a FX3GE plc and it has 2 analog inputs and 2 analog outputs built in, im using GXWorks2 as programming software.
    How do i config those analog I/O ? I dont even know where to start :)

    I want to use 1 analog output, set 0 - 10v depending on certain situations. But as i said, i dont know where to begin config this. :)

    Br,
    Jim 


  11. 10 hours ago, Colin Carpenter said:

    It's not as bad as you think.

    If you drag in one of the "ADD "function blocks onto the page then click on it, you should find that your cursor turns into a double headed arrow that enables you to drag the bottom of the block  downwards and add extra inputs. This enables single function blocks that would add up (say) 10  D registers to give the result.

    If I was doing it, I'd make one of these that added 10 variables together (say D00 to D09 and enter them as D00, D01 etc) then copy that block and use "find and replace" to change "D0" to "D1" which would then give you a block that added D10 to D19. Do this eight more times and you should have the sum of D00 to D99. Then copy all ten blocks you have created and use "find and replace to change "D" to "D1" and you should then have the next one hundred blocks. Repeat ( find and replace "D1" with "D2") to get the next one hundred etc.

    Would imagine it might take about half an hour to programme ... it's only 30 function blocks and you could put them all in the same "rung" and have all 30 results feeding into an ADD block with 30 inputs which would then give the single answer.

    Would look quite elegant .... a bit like the wiring diagram of a CPU :)

    Ahh! Thanks, "Find and Replace" worked like a charm! :)
    But i used the MAXIMUM block and a GT instead of ADD.

    Perfect!

    Br,
    Jim

    Skärmklipp.JPG


  12. On 2016-01-12 at 8:20 PM, nehpets said:

    Sorry that doesn't seem to work, you could try something like this attached.

    The FX3GE has a cut down instruction set.

    The k10 in the FOR instruction is the number of data stores you are comparing and the D6300 is the start of your data stores (ignore the comments they are a reminant of an old program).

    Steve

     

    12-01-2016 18-57-22.bmp

    Sorry Steve, i dont get that FOR instruction, i have a FOR function but that is:

    "FOR/NEXT    Loop instruction

    The FOR/NEXT loop repeats single program sequences without setting an input condition. The program sequence located between the FOR and the NEXT command is repeated for n times.

    After executing the FOR/NEXT loop for n times, the next program step following the NEXT command is executed.

    The variable n can be specified from 1 to 32767. If n is less than or equal to 0, it is processed as 1. Thus, the FOR/NEXT loop will be executed at least once.

    If a program sequence between the FOR/NEXT loop is not intended to be executed, it can be skipped by a jump instruction (CJ or SCJ).

    In total, up to 16 levels (A series = 5 levels) of FOR/NEXT loops can be nested up."

    Skärmklipp.JPG


  13. 19 hours ago, Colin Carpenter said:

    Maybe not quite as elegant as it might be, but why not just add up the values in the range D20 to D30, put the answer into (say) D31 and do a single compare
    of the answer.

    IF D31 equals 0 THEN ......

    If true, then there are no 1s in any of the words from D20 to D30.

    That was my first plan to do.. but im going to use a range from D0 to D300 so its going to be quite alot of adding... ;)
    Thats why i asked you guys if there is a function that dont need to specify each data...


  14. On 2016-01-13 at 6:20 AM, Crossbow said:

    Go back to your GX Works2 install media and install the FX help file to fix your problems with the help.

    I downloaded the GX Works2 from Beijer website... so i dont have tha media unfortunatly. Cant seem to find the help installation file anywhere..


  15. I tried your ZCP like this, and it triggerd the M12 when the 1 value was in D5, but as soon as it moved to D6 (its a shiftregistry) M12 turned off...

    Edit: Seems like it just compares s1 and s2 with s3... not the whole range from D5 -D19

    Skärmklipp.JPG