simonongsk

MrPLC Member
  • Content count

    41
  • Joined

  • Last visited

Community Reputation

0 Neutral

About simonongsk

  • Rank
    Sparky

Profile Information

  • Country Singapore
  1. NX1P2 Motion Control

    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  
  2. Using Word to perform calculation

    WordCounter:=WordCounter+UINT#1; The error :Error    26    The '+' operator is not supported by WORD data type.  
  3. Hi:         How to use data type Word to perform math function without converting to Int or Uint ?  -----> Error    26    The '+' operator is not supported by WORD data type.     thanks    
  4. 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     
  5. 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 ?    
  6. Edge Detection in Structure Text

    @panic mode,  Well your explanation really give me a hard knock! PLC 101!!! Thanks for the lesson!
  7. 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
  8. Is there any instruction in Sysmac Studio Structure text to detect rising Edge (DIFU/DIFD) ?
  9. 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
  10. 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?  
  11. 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,                                         
  12. 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? 
  13. 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

  14. 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?        
  15. NX102 Fins Command with PC

    Below is the multiway screen shot