simonongsk

MrPLC Member
  • Content count

    37
  • Joined

  • Last visited

Community Reputation

0 Neutral

About simonongsk

  • Rank
    Sparky

Profile Information

  • Country Singapore
  1. NJ Modbus

    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 ?    
  2. Edge Detection in Structure Text

    @panic mode,  Well your explanation really give me a hard knock! PLC 101!!! Thanks for the lesson!
  3. Edge Detection in Structure Text

    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
  4. Is there any instruction in Sysmac Studio Structure text to detect rising Edge (DIFU/DIFD) ?
  5. Map Physical Input and Output to Word

    It will only work if I am using modular input and output . But I am using nx1p2. There is no channel as compare to Cp1e
  6. Map Physical Input and Output to Word

    I am using the above method, I thought there is a more simple method instead of writing bits to bits. Is there a way of assigning a variable at IO Table directly with the union variable?  
  7. 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,                                         
  8. NX102 Ethernet IP

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

                             Have you tested NX102 with Multiway using Fin Ethernet TCP or UDP? I am unable to connect and send command with the Multiway.  I had been trying for the past week. It is rather straightforward with CJ  PLC . Can you help?

    my id is simonongsk

    my email is simon.ongsk@yahoo.com

    Thanks 

    Fint routing.png

    Multiway.png

    TCP.png

    Variable.png

  10. NX102 Fins Command with PC

    "- 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?        
  11. NX102 Fins Command with PC

    Below is the multiway screen shot
  12. NX102 Fins Command with PC

    I am still unable to use the Fins Command with multiWay attached is the setting  
  13. NX102 Fins Command with PC

    "I usually use 0 for SNA for a direct network."  Do you meant without using a switch? So if I am using a switch, what is the value I should use? You need to set it up though, if you're using FINS/TCP---> How do you setup in Sysmac Studio? (prefer TCP over UDP).    
  14. Anyone tested NX102 builtin Ethernet Port 1/2 for Fins command with Multiway? Example  PLC Port 1  IP is 192.168.1.10  , PC Address is 192.168.1.88 FINS Node Address of built in Ethernet IP port is 11 (grey out) as it follow the setting at port 2   ICF   80 RSV  00 GCT  03 DNA  01   (Direct PC to NX102) DA1   0A  (IP node 10) DA2  00 SNA 01  (Diect PC to NX102) SA1  58 SA2  00 SID --Changing I got an Error code 1004 ( setting error)   Do I need to setup routing table? https://www.youtube.com/watch?v=PG3pEvaO4O4   i used this as a guide, but that video added a EIP card        
  15. NX102 Ethernet IP

    Hi :        IF there are 10 global variables in the NX102        Count_1....................Count_10 (all of the variables are UINT)   what is the   Class ID Instance ID. and Attribute ID for reading from and writing values to the above said variables? I am unable to find the the appropriate manual below is an Application that is able to peek at Omron EIP PLC https://sourceforge.net/projects/enipexplorer/