![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|||||||
![]() |
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!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#16 |
|
Member
![]() 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.
|
|
|
|
#17 | ||
|
Member
|
Well DaveW I really do not understand where are you trying to lead me out when you say
Quote:
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:
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 |
||
|
|
|
#18 |
|
Member
![]() 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. |
|
|
|
#19 |
|
Member
|
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
|
|
|
|
#20 |
|
Member
|
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 |
|
|
|
#21 |
|
Member
|
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
|
|
|
|
#22 |
|
Member
|
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? |
|
|
|
#23 |
|
Member
|
Sorry, I wasn't looking at it right.
I meant to say peel off the second 16 in the reply message. |
|
|
|
#24 | ||
|
Member
|
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:
Quote:
Ones a again thanks for your help and have a good day Best regards Hidroilio Pérez |
||
|
|
|
#25 |
|
Member
|
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 |
|
|
|
#26 |
|
Member
|
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
|
|
|
|
#27 |
|
Member
|
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. |
|
|
|
#28 |
|
Member
![]() Join Date: Sep 2003
Posts: 398
|
I think the "tag" is the return from the Open File command (Look on page 7-13).
Marc |
|
|
|
#29 |
|
Member
|
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. |
|
|
|
#30 |
|
Member
|
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. |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |