
simonongsk
MrPLC Member-
Content count
40 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout simonongsk
-
Rank
Sparky
Profile Information
- Country Singapore
-
Using Word to perform calculation
simonongsk replied to simonongsk's topic in NJ Series / Sysmac Studio
WordCounter:=WordCounter+UINT#1; The error :Error 26 The '+' operator is not supported by WORD data type. -
simonongsk started following Using Word to perform calculation
-
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
-
simonongsk started following Omron NX Length Measurement with Encoder
-
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
-
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 ?
-
simonongsk started following NJ Modbus
-
Edge Detection in Structure Text
simonongsk replied to simonongsk's topic in NJ Series / Sysmac Studio
@panic mode, Well your explanation really give me a hard knock! PLC 101!!! Thanks for the lesson! -
Edge Detection in Structure Text
simonongsk replied to simonongsk's topic in NJ Series / Sysmac Studio
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 -
simonongsk started following Edge Detection in Structure Text
-
Is there any instruction in Sysmac Studio Structure text to detect rising Edge (DIFU/DIFD) ?
-
Map Physical Input and Output to Word
simonongsk replied to simonongsk's topic in NJ Series / Sysmac Studio
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 -
Map Physical Input and Output to Word
simonongsk replied to simonongsk's topic in NJ Series / Sysmac Studio
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? -
simonongsk started following Map Physical Input and Output to Word
-
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,
-
Hi: I am able to read a variable . But not array, not even a single element. The service code is 4c. Have you try?
-
-
"- 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?
-
Below is the multiway screen shot
-
I am still unable to use the Fins Command with multiWay attached is the setting