displayPoint (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

DX4 pro, NX-400, LX4

Firmware version:

1.30 / 1.00.00


This function is used to draw a point in the display.

 

Input:

x : INT (1..136 for DX4, 1..190 for NX-400)

x position (column) of the point, 1 is the leftmost.

 

y : INT (1..32 for DX4, 1..99 for NX-400)

y position (row) of the point, 1 is the topmost.

 

color : INT (Default 1)

0 (zero)

- Background (OFF).

1

- Black (ON).

 

Returns:

None.

 

Declaration:

FUNCTION displayPoint;
VAR_INPUT
  x     : INT;
  y     : INT;
  color : INT := 1;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
  ...
  // Set point
  displayPoint(x := 15, y := 15);
  ...
END;
 
END_PROGRAM;