MrPLC Member
  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About simonongsk

  • Rank

Profile Information

  • Country Singapore
  1. 2 Words to Real

    @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?
  2. 2 Words to Real

    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 ( 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    
  3. Checking TCP Connection Status

    Wow: How can I forgotten about the # sign! I have been using dot .... Thank you very much, you make my day!
  4. Hi :      I would like  to know how to compare or check _eCONNECTION_STATE (Enum) using ladder in Sysmac Studio.  Error Code Error    4    Specify the enumerated data type name.          
  5. Omron 1S Servo

    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  
  6. Omron 1S Servo

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

    WordCounter:=WordCounter+UINT#1; The error :Error    26    The '+' operator is not supported by WORD data type.  
  9. 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    
  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 ), 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. 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 ?    
  12. Edge Detection in Structure Text

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