lostcontrol

Ethernet Reset

15 posts in this topic

Hello,

Anyone know of a way to reset a NX102 ethernet port programatically, using CIP commands perhaps?

There is a button within Sysmac that does what I need, but want to implement that via code.

 

 

 

Share this post


Link to post
Share on other sites

Look in W506 page 8-47, sorry I can't upload a screenshot.

Share this post


Link to post
Share on other sites

Thanks Chris,

I have seen that section, but as raw CIP is very new to be am still working it all out.

Under Tools/EthernetIP Connection Settings/DeviceList, there is the ability to restart the selected port ( 1 or 2 for NX102)

(perhaps I should of said restart instead of reset..)

 

When doing the restart, I did managed to capture the commands on wireshark but I also cannot upload the image/file.

Am trying to decipher that to see if it is something that can easily be replicated..

Share this post


Link to post
Share on other sites

Raw CIP - eeek! Last time I did that was donkey's years ago on Device Net. Not for the faint hearted. Do not even have it now - old computer crashed.

Share this post


Link to post
Share on other sites

Howdy Bob,

I think there is similarities between the 2, but the EIP CIP requires a bit more?

Or maybe just the omron implementation of each & every byte vs a simplified user GUI like AB requires a bit more thought?

 

Share this post


Link to post
Share on other sites

It's much easier now with the CIPUCMMSend function .

Route path will be '02\192.168.1.21' - for port 1 if the ip address of the port is 192.168.1.21 for example

for port 2 '01#01\02\192.168.1.21' 

Service code Byte#16#05

RqPath - Datatype _sREQUEST_PATH Set .ClassID to UINT#16#01 .InstanceID to UINT#16#01 Attribute not required.

ServiceDat Byte#16#00

Size  UINT#01

 

Share this post


Link to post
Share on other sites

Have just tried that, but get error '1C01'

 

Still cant upload images :(

Share this post


Link to post
Share on other sites

I just successfully booted my self off a live system by doing the reset. I had size = 0

Share this post


Link to post
Share on other sites

I'm testing on a NJ101 only have 1 port. definitely does restart port, because I loose comms. I'm connected to plc via ethernet. 

Share this post


Link to post
Share on other sites
3 minutes ago, chelton said:

I'm testing on a NJ101 only have 1 port. definitely does restart port, because I loose comms. I'm connected to plc via ethernet. 

ahh, so I just copied the same code to a NJ101 that I have & get the desired result. (kicked off)

I have a counter on '_EIP_EtnOnlineSta', that is incrementing each reset.

The only difference from the NX102 is the path

NX102: '01#01\02\192.168.251.1'
NJ101: '02\192.168.17.179'

Share this post


Link to post
Share on other sites

Can you reset port 1 on the nx? using the same code?

Share this post


Link to post
Share on other sites
4 minutes ago, chelton said:

Can you reset port 1 on the nx? using the same code?

YES!!

Doh, the reason I did not try this as port #1 on this NX was dodgy from memory 

Share this post


Link to post
Share on other sites
1 hour ago, lostcontrol said:

ahh, so I just copied the same code to a NJ101 that I have & get the desired result. (kicked off)

I have a counter on '_EIP_EtnOnlineSta', that is incrementing each reset.

The only difference from the NX102 is the path

NX102: '01#01\02\192.168.251.1'
NJ101: '02\192.168.17.179'

Not sure If its a typo I did the same above.. missing the \ between 01#01

port 2 should be '01\#01\02\192.168.251.1'

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now