0% found this document useful (0 votes)
355 views53 pages

Nextion Instruction

The document describes the instruction set for the Nextion programming language. It details the syntax for comments, variables, operators, conditional statements like if/else and while/for loops. Examples are provided to illustrate how to use different instructions to control elements on a Nextion display like changing page, incrementing values, and updating text based on conditions. The instruction set allows programming interactive displays and applications on Nextion hardware.

Uploaded by

Macp63 cp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
355 views53 pages

Nextion Instruction

The document describes the instruction set for the Nextion programming language. It details the syntax for comments, variables, operators, conditional statements like if/else and while/for loops. Examples are provided to illustrate how to use different instructions to control elements on a Nextion display like changing page, incrementing values, and updating text based on conditions. The instruction set allows programming interactive displays and applications on Nextion hardware.

Uploaded by

Macp63 cp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 53

Instruction Set - Nextion https://nextion.

tech/instruction-set/

1 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

2 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

3 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

4 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

5 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

6 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

7 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

8 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

9 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

// these are valid comments


sys0=0// reset sys0 to zero

//valid comment before condition/iteration


for(sys0=0;sys0<=sys1;sys0++)
// invalid comment between condition/iteration a
{
doevents//valid comment after code on same lin
// valid comment inside block
}
// valid comment outside block

10 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

11 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

12 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

13 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

14 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

15 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

16 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

17 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

18 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

if(t0.txt=="123456")
{
page 1
}

if(t0.txt=="123456"||sys0==14&&n0.val==12)
{
page 1
}

if(t0.txt=="123456"&&sys0!=14)
{
page 1
}

if(n0.val==123)
{
b0.txt="stop"
}else
{
b0.txt="start"
}

if(rtc==1)
{
t0.txt="Jan"
}else if(rtc1==2)
{
t0.txt="Feb"
}else if(rtc1==3)
{
t0.txt="Mar"
}else
{
t0.txt="etc"
}

19 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

// increment n0.val as lon as n0.val < 100. resul


// will not visually see n0.val increment, refresh
while(n0.val<100)
{
n0.val++
}

//increment n0.val as long as n0.val < 100. result


// will visually see n0.val increment, refresh eac
while(n0.val<100)
{
n0.val++
doevents
}

20 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

// iterate n0.val by 1's as long as n0.val<100. re


// will not visually see n0val increment until for
for(n0.val=0;n0.val<100;n0.val++)
{
}

////iterate n0.val by 2's as long as n0.val<100. r


// will visually see n0.val increment when doevent
for(n0.val=0;n0.val<100;n0.val+=2)
{
doevents
}

21 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

22 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

23 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

24 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

25 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

26 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/


27 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

28 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

29 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

30 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

31 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

32 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

33 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

34 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

35 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

36 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

37 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

38 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

39 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

40 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

41 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

42 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

43 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

44 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

45 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

46 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

47 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

48 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

49 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

50 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

51 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

52 de 53 26/07/2022 09:53 a. m.
Instruction Set - Nextion https://nextion.tech/instruction-set/

53 de 53 26/07/2022 09:53 a. m.

You might also like