Home > Forum > Controllers SlimLine e Netsyst (LogicLab) > Netlog III incorporated display use
tagged: NetLog built-in display
- This topic has 5 replies, 3 participants and was last updated 4 years, 7 months ago da Sergio Bertana.
-
AuthorPost
-
October 27, 2018 at 6: 07 am #45676GianlucaParticipant
Hello, I'm trying them all but I just can't manage the keys and messages of the NetLog III with built-in display. Anyone have a demo project for this management?
October 27, 2018 at 6: 37 am #45713Sergio BertanaAdministrator ForumIn the latest version of LogicLab (3.0.0) we have included the program among the example projects ABCNetlog, an example of using the display of Netlog, I attach it to the download.
An excellent example of using the display integrated in the Netlog is given by the program ServerMonitor (Download) which is the program mentioned in this Knowledge. The acquisition of a single-phase energy meter is performed, the acquired data are shown on the display and sent via REST to a server in the cloud.
June 28, 2019 at 8: 16 am #48346alessandro.panicciaParticipantI have to run a program on NetlogIII which among other specifications must have the possibility of modifying 3-4 variables directly from the integrated display.
I am seeing the example ABCNetlog of the previous post, however, it is not clear to me how to implement 3-4 variables in order to subsequently modify them. Can you give me some advice please ...
June 28, 2019 at 8: 25 am #48348Sergio BertanaAdministrator ForumIn message configuration (Screenshot) you can define for each message the number you want variables, so you can have 3 messages (One for each variable to be set) or make a single message with all and 3 variables.
To insert the display of the variables on the display you have to put the tag , where the number corresponds to the definition of the variable in the table. Only global project variables can be managed both allocated in DB100 and automatic.
For each variable it is possible to define whether it is editable or not, for all the editable variables the value can be set using the keys of the Netlog. How the imputation works ...
Acting on the key [F] the value of the first editable variable of the message becomes blinking, again acting on [F] it passes to the second, and so on.
With the flashing variable acting on the key [E] the value modification is activated, the least significant digit will flash, the [L] and [R] keys allow to move on the digits, the [U] and [D] keys allow to set the value.
The [E] key confirms the set value, the [F] key aborts the entry.
September 24, 2019 at 1: 36 pm #49961GianlucaParticipantEverything works but I still have a doubt / problem that I can't solve: when I get to a certain message (manual output setting) disable the navigation keys until pressing the F key and change the variable editing mode using the L and R keys to move to the 2 line and flash the editable variable and the U and D keys to change the value.
This is because in my use when I try the outputs manually it becomes too long and in some cases dangerous the time to return to the standard edit mode. For example to turn off output 7 I have to press F 7 times, press E, press D and then again E. If I could always keep the same variable selected I could turn it on and off more quickly. The display message looks like this:
Riga 1: 1-2-3-4-5-6-7-8
Line 2: <1> <2> <3> <4> <5> <6> <7> <8>The variables are associated with the digital outputs.
September 24, 2019 at 3: 47 pm #49987Sergio BertanaAdministrator ForumThe integrated management of the group display has defined rules that cannot be modified, so to pass from one variable to another in a message, use the [F] key, after the value has been entered and accepted with the [E] key, the first variable.
But if you define a message with two string variables from 16 characters (Example RowUp e RowDw) and then from the program you manage them you can do whatever you want. I posted you an example where you realize what you ask for, leaving out the initializations you find in the project (Download NetlogCustomMsg), here is the “juice” of the program.
// ------------------------------------------------------------------------- // GESTIONE MESSAGGIO // ------------------------------------------------------------------------- // Se sono nel messaggio #2 gestisco direttamente il display. IF (Messages.MsgID = 2) THEN i:=SysVarsnprintf(ADR(RowUp), SIZEOF(RowUp), '%s', STRING_TYPE, ADR('0-1-2-3-4-5-6-7 ')); i:=SysVarsnprintf(ADR(RowDw), SIZEOF(RowDw), '%s', STRING_TYPE, ADR('0 0 0 0 0 0 0 0 ')); // Stampo valore variabile. FOR i:=0 TO 7 DO Ptr:=VAdd[i]; //Auxiliary pointer IF (@Ptr <> 0) THEN Ptr:=ADR(RowDw)+(i*2); @Ptr:=16#31; END_IF; END_FOR; // Il messaggio non ha sottomessaggi quindi i tasti [<] e [>] non sono // gestiti. Sulla loro pressione seleziono la variabile da modificare // e la visualizzo rendendola lampeggiante. IF (Display.KeyLEFT <> KeyLEFT) THEN KeyLEFT:=Display.KeyLEFT; //Tasto [<] IF (Display.KeyLEFT AND (VNr > 0)) THEN VNr:=VNr-1; END_IF; END_IF; IF (Display.KeyRIGHT <> KeyRIGHT) THEN KeyRIGHT:=Display.KeyRIGHT; //Tasto [>] IF (Display.KeyRIGHT AND (VNr < 7)) THEN VNr:=VNr+1; END_IF; END_IF; // Eseguo lampeggio variabile selezionata. IF (SysClock1000) THEN Ptr:=ADR(RowDw)+(VNr*2); @Ptr:=16#20; END_IF; // Con il tasto [E] eseguo variazione variabile. IF (Display.KeyENT <> KeyENT) THEN KeyENT:=Display.KeyENT; //Tasto [E] Ptr:=VAdd[VNr]; //Auxiliary pointer IF (Display.KeyENT) THEN @Ptr:=@Ptr XOR 16#01; END_IF; END_IF; END_IF;
-
AuthorPost
- You must be logged in to reply to this topic.