Omron NS Programming Manual page 601

Ns-series programmable terminals
Hide thumbs Also See for NS:
Table of Contents

Advertisement

Section 4 Using Functions
NS Series Programming Manual
1. Register an ON/OFF Button on the screen with the following settings.
Switch label for address ON/OFF
OFF – label
ON – label
Address
Control flag
N
o
t
e
N
o
t
e
N
o
t
e
Image data (BMP or JPEG files) cannot be specified for labels.
Example 2: To indicate on the screen the position of the driverless transport vehicle based on the
value (0 to F) in the PLC word that indicates the position of the vehicle.
NS-series PT
Transporting
Transport
completed
1. Create a bit map (object) for the vehicle position for 0.
Display file:
2. Create a word lamp outside the screen.
Address:
Macro – when changing
value:
Macro contents:
Select.
Transporting
Transport completed
PLC bit number used to change characters.
Disable input (When operation not required.)
PLC
Bit
Specify BMP file name for vehicle.
PLC address that indicates the vehicle position (HOST:00000 in this example.)
Select.
READCMEM ($W0, [HOST:00000], 1);
IF($W0==0)
MOVEPARTS(1,600,100);
ENDIF
IF($W0==1)
MOVEPARTS(1,500,100);
ENDIF
...
IF($W0==15)
MOVEPARTS(1,700,200);
ENDIF
($W0 is used as a work area.) When ID for bit map (object) created in step 1 is 1.
4-10
← When display position for 0 is (600,100).
← When display position for 1 is (500,100).
← When display position for 15 is (700,200).
4-1 Application

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents