plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Get the book!

If you're really looking to learn about PLCs, you NEED our book...

"Your Personal PLC Tutor - A Guide to Understanding PLCs"

Easy to read and uses 'plain' language!
Get $$FREE$$ priority mail shipping too!!!
You WILL be glad you did!!

Click Here now to order

Reply
 
Thread Tools Display Modes
Old May 26th, 2005, 08:51 AM   #16
DaveW
Member
United States

DaveW is offline
 
Join Date: Apr 2005
Location: SoCal
Posts: 273
Well, if you can't afford the card for DH+, serial is also possible. You just have to make sure you turn off the RSLinx while running your VB and vice versa.
  Reply With Quote
Old May 26th, 2005, 04:31 PM   #17
hidroela
Member
United States

hidroela is offline
 
hidroela's Avatar
 
Join Date: Sep 2003
Location: Across from nasa
Posts: 74
Thumbs up

Well DaveW I really do not understand where are you trying to lead me out when you say
Quote:
<<Do a search on this forum and I bet you will find a lot of information on how to setup the RSLinx RS-232/DF1/Ch0 serial communication>>
We have a VB OPC client app running perfectly using RSlinx already setup and the error checking mode is set to BCC.when I changed to CRC RSlinx lost communication with the plc and this is because the plc is set to BCC

Trough hardware I think that the error checking mode can not be change and you say that it can be change using RSlogix5 i try today at work and can not find a way to do it

Now using RSlinx you say
Quote:

<< Once online, if you change a parameter, the processor will be put into program mode (stop) and you will lose communication. You will have to go back into RSlinx and reconfigure/auto configure the serial port if you need to go online again or put the PLC into run mode (or use the key in front of the CPU).

>>


When you say, if you change a parameter what you mean with that please can you elaborated that a littler bit more



Best regards Hidroilio Perez
  Reply With Quote
Old May 26th, 2005, 05:56 PM   #18
DaveW
Member
United States

DaveW is offline
 
Join Date: Apr 2005
Location: SoCal
Posts: 273
Ok, I was uncleared you have RSLinx working already with another VB/OPC app.

What I’m trying to say is that you will need to use RSLogix5 to go online to the PLC using the RSLinx RS232/DF1 serial driver that is already working and change the PLC serial port (Channel 0) parameters (baud, stop, parity, BCC/CRC, etc). Once online, click the Channel Configuration branch on the project tree to the left of the screen, select the Channel 0 tab, and under Error Detect, change it from BCC to CRC. As soon as you apply this change, RSLogix5 will ask you to confirm switching the CPU from RUN to PROGRAM mode so that it can make the change. When you confirm Yes, the processor is stopped and logic is no longer scanned (your machine is stopped!) until you put it back into RUN mode. But because you change a serial port parameter, RSLinx will fail because it’s looking for BCC still. Your RSLogix5 will timeout because it needs RSLinx. You will need to reconfigure RSLinx for CRC, go back online and put the processor back into RUN mode or use the Key in front of the CPU.

  Reply With Quote
Old May 26th, 2005, 06:10 PM   #19
hidroela
Member
United States

hidroela is offline
 
hidroela's Avatar
 
Join Date: Sep 2003
Location: Across from nasa
Posts: 74
Thumbs up

Ho men how ease it was that’s the price that we pay when we do not know something I should know that. hey thanks for hanging we my ignorance



Best regards Hidroilio Perez
  Reply With Quote
Old June 2nd, 2005, 07:01 PM   #20
hidroela
Member
United States

hidroela is offline
 
hidroela's Avatar
 
Join Date: Sep 2003
Location: Across from nasa
Posts: 74
Wink

There is new version of this project that now can read to the Integer data table of plc5/30 and SLC-500

http://forum.mrplc.com/index.php?act...=15#entry18116

Note this project is free if you want you can modified destroyed seller but if some body make improvements to it pleaseeeeeee……. Post it, so we all can benefit from it



Best regards Hidroilio Pérez
  Reply With Quote
Old June 7th, 2005, 05:54 PM   #21
hidroela
Member
United States

hidroela is offline
 
hidroela's Avatar
 
Join Date: Sep 2003
Location: Across from nasa
Posts: 74
Thumbs up

Need help with my project
I trying to read on the binary file B3/10 in a plc5 when I send this command (typed read (read block)) using Checksum=CRC
Command send
|16|2|0|0|15|0|58|0|104|0|0|1|0|15|0|3|10|0|1|0|16 |3|137|126

The respond from the plc is

DLE|STX| SRC|DST| CM|STS| TNN | A | B |DLE|ETX |CRC|
|16 | 2 | 0 | 0 | 79 | 0 | 58 | 0 |153|9|3|66|16|16|0 | 16 | 3 |87|88



The first byte of the type/data parameter is the flag byte,

According to my finding 153 the flag byte

153 Dec converter to binary =10011001

1 Id Format Field
001 Id Value Filed
1 Size Format Field
001 Size Value Field
My problem is that I can not figure it out how to read the B part 9|3|66|16|16|0

Any body help my out how to interpreter this enigma

Best regard Hidroilio Pérez
  Reply With Quote
Old June 8th, 2005, 07:37 AM   #22
Jiri Toman
Member
United States

Jiri Toman is offline
 
Jiri Toman's Avatar
 
Join Date: Jun 2002
Posts: 498
First, you should make SRC and DSTR different. Make SRC 0 and DST 1.

Second, the "B" data is 16 therefore it should be followed by another 16. Read the rule on DLE!

No offense but you are having problems with the simple stuff, how will you deal with timeouts and responses?
  Reply With Quote
Old June 8th, 2005, 07:42 AM   #23
Jiri Toman
Member
United States

Jiri Toman is offline
 
Jiri Toman's Avatar
 
Join Date: Jun 2002
Posts: 498
Sorry, I wasn't looking at it right.

I meant to say peel off the second 16 in the reply message.
  Reply With Quote
Old June 8th, 2005, 11:17 AM   #24
hidroela
Member
United States

hidroela is offline
 
hidroela's Avatar
 
Join Date: Sep 2003
Location: Across from nasa
Posts: 74
Jiri Toman thanks for you help and don’t worry about offence I am hanging in here just to learned i mean just to pick the good stuff like
Quote:

First, you should make SRC and DSTR different. Make SRC 0 and DST 1.

Second, the "B" data is 16 therefore it should be followed by another 16. Read the rule on DLE!

I meant to say peel off the second 16 in the reply message.
But this:
Quote:
you are having problems with the simple stuff, how will you deal with timeouts and responses?
I just garbage, ignored



Ones a again thanks for your help and have a good day



Best regards Hidroilio Pérez



  Reply With Quote
Old June 13th, 2005, 06:25 PM   #25
hidroela
Member
United States

hidroela is offline
 
hidroela's Avatar
 
Join Date: Sep 2003
Location: Across from nasa
Posts: 74
Thumbs up

New improvement Read Binary table, Output table, Input table, Timer table, Plus Integer table from previous version

Classes Wrapped in to a DLL (timer and MScomm) with Help File

Timeout and respond incorporate



Best Regards Hidroilio Pérez



get it here
http://forum.mrplc.com/index.php?act...=15#entry18460
  Reply With Quote
Old June 16th, 2005, 09:11 PM   #26
hidroela
Member
United States

hidroela is offline
 
hidroela's Avatar
 
Join Date: Sep 2003
Location: Across from nasa
Posts: 74
Thumbs up I am sorry but is my again

Does any one know what the tag mean in the
Protected typed file read command


I search the entire documentation and do not find reference no where
That explain what it is
I am trying to use to read a Micrologix 1000


Best Regards Hidroilio Pérez
  Reply With Quote
Old June 17th, 2005, 07:34 AM   #27
Jiri Toman
Member
United States

Jiri Toman is offline
 
Jiri Toman's Avatar
 
Join Date: Jun 2002
Posts: 498
You got me here. I don't know. Put in numbers sequentially and sniff it out. There is an example on the same page for "protected typed file write" but that doesn't help much either.

Let me know what you find out.
  Reply With Quote
Old June 17th, 2005, 08:05 AM   #28
msinclair
Member
United States

msinclair is offline
 
Join Date: Sep 2003
Posts: 398
I think the "tag" is the return from the Open File command (Look on page 7-13).


Marc
  Reply With Quote
Old June 18th, 2005, 05:18 PM   #29
hidroela
Member
United States

hidroela is offline
 
hidroela's Avatar
 
Join Date: Sep 2003
Location: Across from nasa
Posts: 74
Msinclair you where right you get the tag information when you open the file to work with (with the open file command on pag 7-13)

Jiri Toman after playing for a littler bit this are my results
I used this command to open

visual basic code:
WriteToSend = Chr(16) + Chr(2)
'destination and source
WriteToSend = WriteToSend + Chr(RemoteNodeAddress) + Chr(DHNodeAddress)
'command type
WriteToSend = WriteToSend + Chr(15)
'status of the message
WriteToSend = WriteToSend + Chr(MessageStatus)
'transaction value 2 bytes long
WriteToSend = WriteToSend + Chr(TransactionNumber) + Chr(0)
'function
WriteToSend = WriteToSend + Chr(129)
'Protection
WriteToSend = WriteToSend + Chr(3)
'FileNumber 2bytes
WriteToSend = WriteToSend + Chr(3) + Chr(0)
'FileType
WriteToSend = WriteToSend + Chr(133)
'termination of the message
WriteToSend = WriteToSend + Chr(16) + Chr(3)
And get the tag
lowtag = Asc(Mid(WriteFromPlc, 9, 1))
hightag = Asc(Mid(WriteFromPlc, 10, 1))

and send this one to write

WriteToSend = Chr(16) + Chr(2)
'destination and source
WriteToSend = WriteToSend + Chr(RemoteNodeAddress) + Chr(DHNodeAddress)
'command type
WriteToSend = WriteToSend + Chr(15)
'status of the message
WriteToSend = WriteToSend + Chr(MessageStatus)
'transaction value 2 bytes long
WriteToSend = WriteToSend + Chr(TransactionNumber) + Chr(0)
'function
WriteToSend = WriteToSend + Chr(175)
'Size
WriteToSend = WriteToSend + Chr(2)
'tag 2bytes
WriteToSend = WriteToSend + Chr(lowtag) + Chr(hightag)
'Offset
WriteToSend = WriteToSend + Chr(0) + Chr(0)
'filetype and data to write
WriteToSend = WriteToSend + Chr(133) + Chr(128) + Chr(0)
'termination of the message
WriteToSend = WriteToSend + Chr(16) + Chr(3)

And send finally this to close it

WriteToSend = Chr(16) + Chr(2)
'destination and source
WriteToSend = WriteToSend + Chr(RemoteNodeAddress) + Chr(DHNodeAddress)
'command type
WriteToSend = WriteToSend + Chr(15)
'status of the message
WriteToSend = WriteToSend + Chr(MessageStatus)
'transaction value 2 bytes long
WriteToSend = WriteToSend + Chr(TransactionNumber) + Chr(0)
'function
WriteToSend = WriteToSend + Chr(130)
'tag 2bytes
WriteToSend = WriteToSend + Chr(lowtag) + Chr(hightag)
'termination of the message
WriteToSend = WriteToSend + Chr(16) + Chr(3)

before


after


The code change the word B3:0
But actually this is not what I want I want to change just the bit B3:0/7



Best regards Hidroilio Pérez

Last edited by hidroela; June 18th, 2005 at 05:22 PM.
  Reply With Quote
Old June 19th, 2005, 09:19 PM   #30
hidroela
Member
United States

hidroela is offline
 
hidroela's Avatar
 
Join Date: Sep 2003
Location: Across from nasa
Posts: 74
Thumbs up

More improvements Read Binary table, Output table, Input table, Timer table and Integer now on Micrologix family of processor plus many bugs fix.
here http://forum.mrplc.com/index.php?showtopic=4529&st=15&&
Best Regards Hidroilio Perez

Last edited by hidroela; June 19th, 2005 at 09:23 PM.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Can body maker / wall ironer trimmer phaitoon LIVE PLC Questions And Answers 8 January 15th, 2005 03:29 AM
Vision System Calibrations or lack of??? ControlLogix LIVE PLC Questions And Answers 4 January 17th, 2004 10:45 AM
can any body hep me kitty LIVE PLC Questions And Answers 1 November 21st, 2003 08:37 AM
may need a warm body near portland,OR David_Emmerich LIVE PLC Questions And Answers 2 December 11th, 2002 09:20 AM
any body have manual of OP5 Hamid Mehmood LIVE PLC Questions And Answers 0 May 7th, 2002 04:09 PM


All times are GMT -5. The time now is 12:00 AM.


.