[Visual-devel] Visual: Visual runs with allen-bradley
Status: Alpha
Brought to you by:
lettoz
From: <mix...@ja...> - 2002-11-07 00:13:15
|
Hi Thomas, after of all: >and please do send simple text (not html) mails. > >thank you Of course, you must say me after, sorry Thomas. Well, a good notice, visual runs with allen-bradley, we attach you a capture screen. Before, we comment you about some data, but, it is beautiful, do you? :-D Thomas Hergenhahn wrote: >On Tuesday 05 November 2002 13:16, you wrote: >Hello Ruben, > >>visual.cfg.allen.1 we intend enabled logs, but if we intend, visual >>crash, it can't start. > > >Ok, from the output I see that log_mysql cannot find some function from >libmysqlclient. Do you have it? >If so, I will check why this happens. > Yes, i have it razer@Puerto_Lobo:~$ dpkg -l libmysqlclient* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-================================-================================-================================================================================ ii libmysqlclient6 3.22.30-4 mysql database client library ii libmysqlclient6-dev 3.22.30-4 mysql database development files ii libmysqlclient9 3.23.24-2 mysql database client library pn libmysqlclient9-dev <none> (no description available) razer@Puerto_Lobo:~$ > > > >>If we intend with visual.allen, visual runs but errors messages clean >>screen and if it impossible for view nothing. >> >> > >Should be fixed now > Yes, it runs perfectly. > > >>In spreedsheet, we only have one spreedsheet, and it is empty. We >>probed, too, to copy 1.set from spreedsheet test, but again, nothing. >> >> >No it, is 1.sht. 1.set is a file containing the last settings of >switches, >potentiometers etc. connected to sheet 1. > Well, i aknowlegde that 1.set is for HMI, is it? > [...] > >>Where we specified PLC that there are cell to write and no other? >> >> >In your case in ab.tfi. >The format should be explained in the HTML documentation. Ooopss! This is certainly! We are really silly, we must revised very more documentation. >This is the only line from ab.tfi: > ><ALLENB> 'my first test' 15 162 137 7 200 20 1 'B1' 'E1' 'A1' </ALLENB> > >And here is what that means: > ><ALLENB> marks an instruction for Allen Bradley driver >'my first test' a comment. >15 AB's command code for 'protected read with 3 byte address' >162 AB's function code for 'protected read with 3 byte address' >137 AB's code for integers >7 Use file (N)7 in the PLC >200 Start with element 200 >20 20 bytes >1 use spreadsheet 1 >'B1' data goes into cells B1 to B10 >'E1' error codes go to E1 >'A1' this instruction is executed if A1 is not 0 ></ALLENB> ends an instruction for Allen Bradley driver > I revised visual output, this is clearly from this: Allen_B : thread starts. Allen_B : driver instatiated. setPort : /dev/ttyS0 rest 19200 n 8 1 setPort : /dev/ttyS0 = 6 setPort : fcntl: Success setPort : tcget...:Success setPort : 19200 rest n 8 1 setPort : n rest 8 1 setPort : 8 rest 1 setPort : tcflush:Success setPort : tcset...:Success Allen_B : intSetup fd: 6 plcdrv : load from ab.tfi Allen_B : comment :Nuestra primera prueba Allen_B : condition :A1 Allen_B : CMD :15 Allen_B : FNC :162 Allen_B : type :89 Allen_B : File :0 Allen_B : first word :100 Allen_B : length in bytes:20 Allen_B : sheet :1 Allen_B : to Cell :B1 Allen_B : Errors to Cell :E1 Allen_B : comment :Segunda prueba Allen_B : condition :A1 Allen_B : CMD :15 Allen_B : FNC :162 Allen_B : type :89 Allen_B : File :7 Allen_B : first word :200 Allen_B : length in bytes:20 Allen_B : sheet :1 Allen_B : to Cell :G1 Allen_B : Errors to Cell :E2 engine : no classname found cellList : registrations: 0 plcdrv : enter exec list plcdrv : enter exec TI1 Allen_B : 6 execTI CMD f FNC a2 Allen_B : 6 execTI p.t.r.i.w.3.b.a.f Allen_B : 6 I calc: eba1 = 161,235. Well, how you can see, we modified ab.tfi, here it is: <ALLENB> 'Nuestra primera prueba' 15 162 137 0 100 20 1 'B1' 'E1' 'A1' </ALLENB> <ALLENB> 'Segunda prueba' 15 162 137 7 200 20 1 'G1' 'E2' 'A1' </ALLENB> We see something in these test, but File... we don't aknowlegde at all, tomorrow we will fight with him more. >A spreadsheet used with this line must have the following cells, all numeric: >B1 to B10: to store results. If one of them is not there, the data for this >cell is simply thrown away. >E1: This will be set to zero if all is ok, to error codes otherwise. Notice >that in the test output you sent me, the driver wants to set E1 to 512. This >means "timeout". >A1 This cell must exist, be numeric and value must be nonzero, otherwise this >instruction will not be executed. Just write a one to it. > >So why does it write ten cells? >The length of data to read is set to 20 bytes. As the data type is integer >and AB's integrs are two byte, we get 10 integers. Data is stored to the >spreadsheet beginning with the cell given in the instruction (B1). The next >data goes to the next ROW: B2,B3...B10. > >Possible difficulties: There are no difficulties, visuals runs at first time, only a despist, i edited S5 line instead allen bradley line, but in few minutes we see my error ^_^ >I do not know how data is organized in a Micrologix 1500. >1.It may not have a file number 7. If so, change the 7 to an existing >number. 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. In capture attachment you can see that values for N7 and N0 practically are the same, only changes one cell, any explained? >2.It may not have more than 200 integers. If so change the 200 to >something >lower. I suggest 0. >3.It may not store integers in file 7. The only other data type >currently >supported is floating point. AB's code for this is 138. But I think you >can >also read bit files as integers. > >About a PLC program to test this: >Currently, there is not much use to connect outputs, as VISUAL will not >write >to the PLC. You need to read something from it. I would set up a little >program that counts using integer values. Then you can read out the >counters >value. Don't use special counters in the PLC as they might not be >accessible. >Do it with Integer addition. Well, tomorrow we depurated our program for adjust it to integer values. Tomorrow we tell you. More, >Their default baudrate is 19200. >Change this in your visual.cfg. >You can select from two modes for error correction:CRC or BCC. >allen_b.so uses CRC only. >You can disable/enable hardware handshake. >Please disable Well, how you can see, we modified for 19200, if value don't modified visual don't communicated with PLC. But, we can't understand hardware handshake, we don't know where disabled. More, we saw that you modified visual web page, and added spanish version. We send you pages when i traduced more. We saw too that faq are revised, there are some questions and answer, this is good, the project go on ;-D > >Good luck Well, we had it :-DD >salutations > >Thomas > > Un saludo. R. Gomez. -- Libertad es poder elegir en cualquier momento. Ahora yo eligo GNU/Linux, para no atar mis manos con las cadenas del soft propietario. |