Download µLadder User Manual
Transcript
µLadder User Manual
04/22/14
6.3. LCD screen
Some PLCs, µArmA1, A5 and A7, have a 2-row LCD screen (16 characters per row) with
back-lighting.
Characters to be displayed are stored in 2 memory areas. Standard characters are stored in the
DDRAM. The CGRAM can store 8 characters defined by the user. The 'µ' character is defined as
first character of this memory area.
Functions presented below are immediately executed, that means with no delay.
6.3.1. WriteText(parameter1, parameter2, parameter3, parameter4)
This function is included in the standard library of μLadder. It enables to display a text on the
LCD screen. It is possible to configure the text on the first line and on the second line and to
align both texts on the screen independently.
Parameter1: text to be displayed in the first line of type char*.
Parameter2: text to be displayed in the second line of type char*.
Parameter3: alignment of the first line on the screen (0: left, 1:centered, 2: right)
Parameter4: alignment of the second line on the screen (0: left, 1:centered, 2: right)
Example 22. Use of WriteText
Good morning
Good night
/*A string is displayed at each line, aligned
to the left*/
WriteText("Good morning","Good night",0,0);
6.3.2. AffClear()
This function deletes the screen content. The execution of this function takes around 10ms. It is
faster to display two blank rows instead.
6.3.3. AffSend(parameter1, parameter2)
This function allows to send a command or data to the screen. It is used for the configuration
and definition of specific characters. This is a very low-level function, only used in specific cases.
49/95