Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Devicenet SDN modules

Status
Not open for further replies.

knowledgeconsumer

Industrial
Jun 30, 2004
18
Hey,
Is there a valid status bit that can be used in the SDN card to detect an ADN adapter faults. Basically we have a system here that causes us trouble when a certain node fails, causing major line backups etc ... but if we were able to detect when this node faults we could disable the line ie. push it out of auto mode and prevent a product backlog from happening. Any help would be appreciated.
Cheers
D
 
Replies continue below

Recommended for you

Are you still loking for an answer on this?
 
When you are having the problem with the device, does the SDN LED flash the address and some error code? If it is, I can hslp you. The PLC can be coded to detect the address and notify.
What PLC are you using?
 
The SDN will rotate around the node that has faulted with an error code of 78 and the node number(22 in this case).
 
Below is the mnemonic code that will extract the node address and error code from the scanner. I use this to report to a HMI. A simple compare rung will give you the alarm.
Can we post files to this site? I could E-mail too!


My assumptions are as follows:
scanner location, slot 3
M0 and M1 file lengths set to 361, check the advanced tab under I/O config.

The address where the data is stored is at M1 word 210.
your PLC code will read this and place it into integer files for program compairson.

Good Luck


XIC B3:5/0 OTE O:3.0/0 ; enables scanner

MOV M1:3.210 N7:1 ; Moves M1:3.210 to N7:1

MVM N7:1 00FFh N7:6 ; Mask Moves "00FFh mask" to N7:6, error code.

SWP #N7:1 1 ; flips the word, N7:1 around

MVM N7:1 00FFh N7:8 ; Mask Moves "00FFh mask" to N7:8, Device Address.

EQU N7:8 22 EQU N7:6 78 OTE O:1.0/0 ; A simple compare to give you the alarm.

END
 
There is a status word for the 1794-adn module. I have used the status word before. The status you pick up off the adn module is 1) i/o module fault (if any modules fault out connected to the adn device it will set a bit 2)node address change: sets a bit if node address is changed since power up and 3) i/o state:another bit (low is i/o state is idle and high is i/o state is in run.

But i dont think that if the adn module faults it is detected. It might of 2) and 3).

check the adn manual for the status word
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor