simonongsk
MrPLC Member-
Content count
52 -
Joined
-
Last visited
Posts posted by simonongsk
-
-
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
-->: 46490400009A1500May i know are there any setting in Ethernet/IP and the Operation Setting tabs?
Attached
-
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)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)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.
-
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 ?
-
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 ?
-
7 hours ago, photovoltaic said:@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?
-
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
-
-
-
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
-
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
-
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
-
16 hours ago, gclshortt said:Can you post a picture of what you are trying to do?
Regards,
GarryWordCounter:=WordCounter+UINT#1;
The error :Error 26 The '+' operator is not supported by WORD data type.
-
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
-
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 ?
-
-
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
-
Is there any instruction in Sysmac Studio Structure text to detect rising Edge (DIFU/DIFD) ?
-
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
-
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?
-
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,
-
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?
-
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?
-
Omron 1S Servo & NX1 PLC
in NJ Series / Sysmac Studio
Posted
Does any one know any instruction that rotate the 1S Servo Motor continuously with angle(0 to 360) and velocity control ?
https://forums.mrplc.com/index.php?/topic/35459-omron-g5-servo-drive-rotary-mode/#comment-165564
Above link may be quite close to what i want. But I have no idea how to set it up
Simon