[Visual-devel] Re: Visual: Visual runs with allen-bradley
Status: Alpha
Brought to you by:
lettoz
From: Thomas H. <Tho...@we...> - 2002-11-07 12:41:48
|
Hello Ruben, > >libmysqlclient. Do you have it? > Yes, i have it Ok, I will check what's wrong. > > Well, i aknowlegde that 1.set is for HMI, is it? > I try to explain what exactly is the .set file: When the spreadsheet is loaded, it is loaded with the numeric cells set to the values they had when the sheet was saved the last time. These values are in the .sht file. Now you have a potentiometer or other input field attached to A3. A3 is loaded with value 100 on start. Now the user sets it to 123 using a potentiometer in an HMI page. Every numeric cell has a source attribute that says from what type of source the value came from. When the server executes the set A3 = 123" command he sets this attribute to "soSetByHMI". The applet sets a "modified" flag. When "modified" is true, the applet sends the command "savesettings" to the server. The server, when getting this command, goes threw the spreadsheet and stores the values of all numerical cells that have the attribute "soSetByHMI" to the .set file. On start, VISUAL loads the spreadsheet. The cell A3 will be 100 again. Then it looks for a corresponding .set file, reads it and sets all values to what is in the .sht file Now A3 is 123 again. > > I revised visual output, this is clearly from this: > Yes, it is > > <ALLENB> 'Nuestra primera prueba' 15 162 137 0 100 20 1 'B1' 'E1' 'A1' > </ALLENB> This should read 20 bytes (10 integers) from file 0, word 100... to B1..B10 > <ALLENB> 'Segunda prueba' 15 162 137 7 200 20 1 'G1' 'E2' 'A1' </ALLENB> This should read 20 bytes (10 integers) from file 7, word 200... to G1..G10 > > There are no difficulties, visuals runs at first time, only a ???despist???? Does it? Icaannot see this from the screenshot, but in your screenshot A1 is 0. This would mean NOT to execute the transferinstruction. On the other hand, when I looked into the Allen Bradley driver, it may have a bug as it ignores the condition...maybe out errors cooperate nicely :-) > > Well, i say you that we don't aknowledge this at all, for example we are > used a counter for N10 but if we charged N10 we don't apreciated some > changes in values showned by visual. What exactly is N10 in Micrologix? What I know from the SLC 50/3, a variable is named like N7:200. N7 is the file there, the N says it contains integers, 7 is the number of the file and 200 the twohundredth word in this file. So do you mean N10:0 or N1:0 or Nx:10? Or is Micrologix different? To see whether the communication runs, do a simple test: In the spreadsheet editor press Alt-E on somecell in B1 to B10. Set the value to what you like. It should be overwritten by the value from the PLC the next seconds. > > In capture attachment you can see that values for N7 and N0 practically > are the same, only changes one cell, any explained? > No. I would need more from the debug outbut. Unfortunately, the lines you copied do not contain anything from the communication, only the setup phase. > > But, we can't understand hardware handshake, we don't know where disabled. > "Hardware handshake" means: The control lines of the serial port (RTS,DTR,CTS...) are used to signal to the partner, if a device is redy to receive characters. This was useful for slow devices and is still useful for modems. Modems may need to retransmit a message more then one time, if the phone line is bad. In this time they cannot accept new characters. VISUAL leaves this lines as they are. LINUX has the command "setserialbits". You can try to use setserialbits to set RTS and DTR to ON before starting VISUAL. But from a quick look into Allen Bradley's documentation I saw that this can be configured. You may also try to make a special cable where RTS is connected to CTS and DTR to DSR or something like this. In this case, the PLC would give itself the "ready for receive". Please send me some more of the debug output. Good luck salutations Thomas ________________________________________________________________ Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13 |