simonongsk

MrPLC Member
  • Content count

    52
  • Joined

  • Last visited

Posts posted by simonongsk


  1. @photovoltaic:

                               I am using NX102 9000. The error is dealing with connection. What is the Fins Settings (under Built in Ethernet/ip) . I am unable to make connection using TCP. Even with UDP, the error of 1004 will occur if the command is send to the PLC. If I use the TCP/UPD Messaging Services, Connection can be make but response message is not encouraging

    <--: 46494E530000001A0000000200000000800007000100007800020101820001000003
    -->: 46490400009A1500

    May i know are there any setting in Ethernet/IP and the Operation Setting tabs?

    Attached 

    Error.jpg

    Fin Routing.jpg

    Finsetting.jpg

    tcpudp.jpg


  2. 11 hours ago, photovoltaic said:

     Download Etherway - much better.

    Give yourself some more memory to work with - for testing give yourself 100 words and stick to one memory area. I found an old FINS command and response from Etherway for D20:

    <--: 46494E530000001A000000020000000080000300140000FB00050101820014000001  (Request)
    -->: 46494E53000000180000000200000000C0000200FB000014000501010000FFFF   (Response)

    Capture.PNG

    Capture.PNG

    11 hours ago, photovoltaic said:

     Download Etherway - much better.

    Give yourself some more memory to work with - for testing give yourself 100 words and stick to one memory area. I found an old FINS command and response from Etherway for D20:

    <--: 46494E530000001A000000020000000080000300140000FB00050101820014000001  (Request)
    -->: 46494E53000000180000000200000000C0000200FB000014000501010000FFFF   (Response)

    Capture.PNG

    Capture.PNG

    Hi @photovoltaic:

                                              I did use Ehterway, the  end result is the same error code of 1004.  but using UDP. It seems like you are using TCP?

    How do you set up TCP instead of UDP in Sysmac Studio? 

    The Etherway shown Time out if I am using TCP (client ?) Try connecting to 192.168.250.1  ERROR: No connection could be made because the target machine actively refused it 192.168.250.1:9600.

     

     


  3. Hi:

          Has anyone use Fins Command with NX1P2 (or any NX/NJ). I try with Multiway with "[!]: Command format error (1004)"

    Below is the command from multiway

    800003000100000100060101820001000003

    Data memory are define in global variable table as  A as %D1, B as %D2 and C as %D3.

    The relevant setting are done on Fins Setting and Memory Setting in the PLC.

     

    Anyone ?

     

     


  4. Hi:

          Has anyone use Fins Command with NX1P2 (or any NX/NJ). I try with Multiway with "[!]: Command format error (1004)"

    Below is the command from multiway

    800003000100000100060101820001000003

    Data memory are define in global variable table as  A as %D1, B as %D2 and C as %D3.

    The relevant setting are done on Fins Setting and Memory Setting in the PLC.

     

    Anyone ?

     

     


  5. 7 hours ago, photovoltaic said:

    You need to use CopyDwordToReal if it is a bit pattern move.

    Capture.PNG

    @photovoltaic Wow, that is weird command name TBH. The CopyDWordToReal seem to work, may i know what do you meant by  "if it is a bit pattern move"  I wonder why DWORD_To_Real did not work as the command name suggested or are there any more conversion command for Dword to Real?


  6. Hi:

          There are 2 Word, Let say  Word_0 = 5c29, and Word_1=3e8f, I combined that 2 word into  DWord=3e8f5c29; The result converted online (https://www.scadacore.com/tools/programming-calculators/online-hex-converter/) to Float will be 0.280 (expected result).

     

    But with DWORD_To_Real , i get this result :    1.0354898e+09    REAL       

     

    May I know how to convert the 2 words into Real (Float ?)

    Omron PLC: NX1

     

     


  7. On 1/5/2022 at 11:49 PM, Crossbow said:

    There's a lot of information in the software about how each homing setting in manual W507, Section 8.  

    Limit refers to end of travel limit switches wired to the servo amplifier. 

    Proximity is a prox sensor or switch used to indicate the home position is close.  It switches from the high speed homing to the low speed to fine tune the home position.

    Yes. I did read this. for Example at Page 172 of Section 8, Home proximity input signal vs Home input signal, what is the different between the 2 ? Example I have an Axis fitted with a proximity sensor (or a reed switch) as a home signal, which of the above I should look at Home proximity input signal or Home input signal ?

     

    Regards

     


  8. Hello:

              Does anyone know the details explanation of the Homing Settings for the Axis?

    Set the homing operation.
    0: Proximity reverse turn/home proximity input OFF
    1: Proximity reverse turn/home proximity input ON
    4: Home proximity input OFF
    5: Home proximity input ON
    8: Limit input OFF
    9: Proximity reverse turn/home input mask distance
    11: Limit inputs only
    12: Proximity reverse turn/holding time
    13: No home proximity input/holding home input
     

    Limit Input referring to Input (I/O) ? How about Proximity Input ? It is confusing with the terms. The manual has no explanation for each of the above selection.

     

    Any one?

     

    Simon


  9. Hi:

          I need to change an old PLC  with NX1p2  to control 3 servo motor by means of Analog Outputs couple with encoders, My job is to change the PLC only:-). So the servo drives and drivers are untouchable (No budget and involve too much mechanical works).

     

    I observed that Sysmac Sttudio Axes setting has this: Servo Axes, Encoder axes, Virtual Servo Axis and Virtual Encoder Axes.

     

    I believe the Encoder Axes couple with Analog Output is able to to do the Job? If so, what function block should i use? If no, do any body have a suggestion of any function block i can use?

    Thanks

     


  10. Hi:

            I am planning to use NX with Encoder Card  couple with Omron Rotary Encoder for measuring product length. ( GX-EC0211 /EC0241) or may be (NX-EC0112, I read there is proble with this card , here https://forums.mrplc.com/index.php?/topic/34896-problem-pulse-reading-with-fast-counter-card-in-nx2/ ), but whatever it is I need to know is there any specific Instruction in Sysmac Studio that is tailored for Fast Counter or Encoder (something Like PRV in CX Programmer or special function in CJ-CT021 where start/stop counter and changeable preset counter are available). 

    The Length measurement is straight forward and is only a small part of the overall program.  Basically is Start ---> measure to length----> Cut --->Repeat again. 

    I read through the Instruction Reference Manual and I am unable to find one.

     

    Anyone have any idea or any sample program (Sysmac Studio only ) that I can refer to ? 

     

    Thanks 

     

     


  11. I need to write c# with modbus TCP to read NJ,  Anyone able to to use PC communicate with NJ by using Modbus TCP?

     Any Function need to be added in the PLC, for Example , PC to read Register 40000 to 40020 ?

     

     


  12. How will it work if I am only interested in Trigger Up?

     

     timeOut:= Timer(TimeBit,UINT#100,TimerSt,TimerDone,ElapseTime);

    IF ( timeOut<>PreviosState ) THEN
        
       Counter:=Counter+1;
       PreviosState:=timeOut;;

    END_IF;

    The Counter will increase  by 2.

     

    with ladder, with dIFU, that will not happen


  13. How to map physical Input and output into variables type of Word?  It is easy in CX programmer with Mov 0 to  Inp_Word_0  (type Channel)

    Global Variable  -----> Inp_Word_0 ,      Inp_Word_1     Type Word

                                          Out_Word_0,        Type Word                          

    Example in NX1P2   map Input Bit 00 to Input Bit 15 to a Inp_Word_0,     and    map  Input Bit 16 to Input Bit 23 to a Inp_Word_1

                                         map Outpu Bit 00 to Input Bit 15 to a Out_Word_0, 

     

     

                                     

     


  14. 6 hours ago, Crossbow said:

    Most devices could ask for them by variable name and not need class, instance, attribute.

    Hi:  

           I am able to read a variable . But not array, not even a single element.  The service code is 4c. Have you try? 


  15. 14 hours ago, innoaloe said:

    Well... looks like your connection is OK, but the data you are sending to PLC is incorrect.

    - DNA must never be 00. Your Sysmac Studio screenshot shows that the PLC uses default Local Network 01, so DNA should be 01 as well.

    - I believe using 00 for SNA should work. But if it doesn't, you can put any number there, like 02 for example. It doesn't really matter for a single PC and PLC connection.

    - On your Multiway screenshot, your attempts before the last one are just sending the FINS Header, which will never work

    - Your last attempt in the screenshot looks fine, except the DNA being 00.

    "- DNA must never be 00. Your Sysmac Studio screenshot shows that the PLC uses default Local Network 01, so DNA should be 01 as well. "

    Which part of the sysmac studio screen shot show the Default Network that I should change? In CJ it is much simpler.

    "but the data you are sending to PLC is incorrect"  - the multiway error said so.  Multiway work with CJ Fins command, i believe the NX/Nj should behave the same way.

    Any idea?