0% found this document useful (0 votes)
166 views118 pages

Appendix

This document section describes different communication methods for connecting a GP device to external devices and PLCs. It discusses the Direct Access method, where the GP requests data from the device, and the Memory Link method, where communication is accomplished by executing a program on the external device to request reads and writes from the GP. It also provides details on usable addresses for both GP internal devices and external devices/PLCs, including the LS and USR areas for internal addressing.
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)
166 views118 pages

Appendix

This document section describes different communication methods for connecting a GP device to external devices and PLCs. It discusses the Direct Access method, where the GP requests data from the device, and the Memory Link method, where communication is accomplished by executing a program on the external device to request reads and writes from the GP. It also provides details on usable addresses for both GP internal devices and external devices/PLCs, including the LS and USR areas for internal addressing.
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/ 118

Appendix

"A.1 Communication" introduces the SIO type for connecting the GP and the device/PLC
and the structure of the internal device, and "A.2 Monitoring the Value of Device Addresses
(Device monitor)"explains the feature for monitoring the communication device on the GP.
"A.3 Executing Multiple Actions (Programs) with a Switch Operation" explains Trigger
Action Parts.
"A.4 Drawing Using Other Languages" explains the process from preparing to input a
foreign language to inputting the switch label, using (Simplified) Chinese as an example.
"A.5 Transferring Data Between a CF Card and a USB Memory Device" explains how to
transfer data between a CF Card and a USB memory device using File Manager.
"A.6 System Variables" provides a detailed explanation of the system variables available in
GP-Pro EX.

A.1 Communication .............................................................................................. A-2


A.2 Monitoring the Value of Device Addresses (Device monitor) ....................... A-47
A.3 Executing Multiple Actions (Programs) with a Switch Operation ................. A-61
A.4 Drawing Using Other Languages ................................................................. A-79
A.5 Transferring Data Between a CF Card and a USB Memory Device ............ A-90
A.6 System Variables ......................................................................................... A-96

A-1
Communication

A.1 Communication
• For information on the connection methods for the GP and device/PLC, refer
to the GP-Pro EX Device/PLC Connection Manual.

A.1.1 Settings Menu


Communicating with a Device/PLC Using the Direct Access Method
This is useful when connecting to a device/PLC that is ) Setup Procedure (page A-4)
supported by the GP. ) Details (page A-4)

Direct Access
GP Method Device/PLC

Using the Memory Link Method with Unsupported Devices/PLCs


Create an extended script to output data read from a ) Setup Procedure (page 20-42)
barcode connected to the USB to a serial printer ) Details (page 20-34)
connected to COM1.

Product Name : Pro-face


Price : 12345 Yen
Product Name : ABC
Price : 567 Yen
Product Name : DEF
Price : 89 Yen

GP

Product Name and Price printer output


Product Name Price
(1000) (0500)
Pro-face 12345 Yen

Print Start Button


(005000)

Start ON

Read "Product Name" and "Price"


information from barcode.

GP-Pro EX Reference Manual A-2


Communication

Using the Memory Link Method with Unsupported Devices/PLCs


Create and execute all programs needed to ) Setup Procedure (page A-7)
communicate on the device/PLC side (computer, ) Details (page A-7)
microprocessor board) with the Memory Link
Method.

Microcomputer board

GP Memory Link
Method

GP-Pro EX Reference Manual A-3


Communication

A.1.2 Communicating with a Device/PLC Using the Direct Access Method


A.1.2.1 Details

Direct Access
GP Method Device/PLC

To communicate with a device/PLC, use the Direct Access communication method to put a
smaller burden on to the device/PLC.

„ Direct Access Method


In the Direct Access Method, the GP makes a request to the device/PLC. The device/PLC
then responds to the request from the GP.

Passive
(3) Display the (1) Request
received data in GP
Lamps, Graphs,
Constants/Text.

(2) Response Device


(PLC)

‹ Usable Address
For the GP to get the necessary display data from the device/PLC, set an address that can
reference data used for Parts and script features. There are two types of addresses which can
be set as reference destinations.
• Device/PLC Addresses
It can reference the device/PLC data.
Select the device/PLC name (for example "PLC1") that will communicate with the GP,
and input that address (for example "D00000").
For example, An Input Address screen on a Word Switch.

GP-Pro EX Reference Manual A-4


Communication

• GP Internal Device Address


This can be used for data storage. For example, this can be used when temporarily storing
calculated values inside the GP, or when temporarily controlling data in the GP. When
referencing that data, select [#INTERNAL] as the [Device/PLC], and input that address.
[#INTERNAL] refers to the GP internal device.
For example, An Input Address screen on a Word Switch.

The GP's internal device [#INTERNAL], has two structured areas: the [LS] area and the
[USR] are (shown below).
GP Internal Device
[#INTERNAL]

LS0 USR0
GP
[LS] [USR]
Area Area

LS9999 USR29999

• [LS] Area
This is a user area that can be used freely, and an area used for running the GP.
)"A.1.4 LS Area (Direct Access Method)" (page A-9)
You can change the data storage order in the System Settings window’s [Device/PLC]
page, with the [Text Data Mode] property.
)"5.15.6 [System Settings] Setting Guide „ [Device/PLC] Setting Guide" (page 5-161)
You can also change the data storage order by defining the text data mode using address
LS9310.
)"20.10.5 CF File Operation/USB File Operation „ Label Settings ‹ Data Store
Mode" (page 20-115)

• [USR] Area
This area (30,000 words) can be accessed by users for running the GP.
The data storage order is fixed to L/H, no matter what the [Text Data Mode] property is
set to in the System Settings window’s [Device/PLC] page.
)"A.1.6.4 Restrictions when Using the USR Area" (page A-46)

GP-Pro EX Reference Manual A-5


Communication

‹ Device Codes of GP Internal Devices (LS/USR)

Device Device Code Address Range


LS 0 x 0000 0 to 9999
USR 0x0001 0 to 29999

GP-Pro EX Reference Manual A-6


Communication

A.1.3 Using the Memory Link Method with Unsupported Devices/PLCs


A.1.3.1 Details

Microcomputer board

GP Memory Link
Method

The Memory Link Method is used to connect with devices, or hosts, that do not contain a
communication protocol, such as a computer or a microprocessor board.

„ Memory Link Method


In the Memory Link Method, a data read/write request occurs from the host to the GP, as in
the following image. The GP displays data that was sent in response to the host's write
request. In response to a read request, the GP sends stored data to the host.

• Communication based on the Memory Link Method is accomplished by


executing a program on the host.
Passive
Data's Read/Write
3) Display the received request
(1)
data in Lamps, Graphs, GP
Constants/Text
according to the Write Host
request. (PC, etc.)
(2)
Return data corresponding to the Read request.
Display data according to the Write request.

GP-Pro EX Reference Manual A-7


Communication

‹ Usable Address
For the GP to get the necessary display data from the host, set an address that can reference
data and set the Parts or script features. There are two types of address inside the GP that can
be set as a reference destination.
Inside the GP

GP
System Area GP Internal Device
[#MEMLINK] [#INTERNAL]

• Memory Link System Area Addresses


The System Area is used to request the host's read/write. It is the Memory Link Method's
communication area.
For details about the System Area, please refer to "A.1.5 System Area (Memory Link Area)" (page
A-29)
For example, to set a Word Switch address settings, select [#MEMLINK] from [Device/PLC] and
enter the address (for example "0100").
For example, An Input Address screen on a Word Switch.

• GP Internal Device Address


For example, you can use the internal device as a temporary storage area when you need to refer to
calculated values. You cannot use the internal device with Memory Link communication.
For the [Device/PLC] select [#INTERNAL], which refers to the GP internal device, and enter that
address (for example "USR00100").
For example, An Input Address screen on a Word Switch.

GP-Pro EX Reference Manual A-8


Communication

• When using Memory Link communication with the GP internal device


[#INTERNAL], you can only use the [USR] area. When using Direct Access
communication or other device/PLC drivers, you can also use the
[#INTERNAL] [LS] area.

A.1.4 LS Area (Direct Access Method)


When communicating inside the GP using the Direct Access Method, the LS area is secured.
This area is useful for temporarily storing control handling within a GP that does not have a
device/PLC address (for example, a switch's Interlock Settings), or for temporarily storing
values calculated within the GP.

A.1.4.1 LS Area List


Direct Access Method's LS Area

LS0000
System Data Area
LS0020
Read Area
*1
(LS0276 )
User Area
LS2032
Special Relay Area
LS2048
Reserved
LS2096

User Area

LS9000
LS9000 Area
LS9999

• Do not set addresses for Parts which span the System Data Area and Read
Area, or the Read Area and User Area.
• When setting addresses for Parts in the System Data Area, set the data
length as 16 bit.

*1 The System Data Area can exclusively use a maximum of 20 words. The Read Area
can exclusively use a maximum of 256 words. The User Area's top address is the
Read Area's top address (20) + Read Area's size.

Area Name Description


System Data Area This area stores data necessary for the system operation, such as the GP
screen control data and error information.
) "A.1.4.2 System Data Area" (page A-11)
When referencing a screen number that displays on the GP from a device/
PLC or changing screens, you can establish an area in the device/PLC to
link with this area to reference and control the GP data.
) "A.1.4.4 Device/PLC System Data Area Allocation Procedure" (page A-26)
Continued
GP-Pro EX Reference Manual A-9
Communication

Area Name Description


Read Area This area stores data used commonly by all screens.
The area size is variable and can be set up to 256 words.
When referencing a screen number that displays on the GP from a device/
PLC or changing screens, you can establish an area in the device/PLC to
link with this area to reference and control the GP data.
) "A.1.4.4 Device/PLC System Data Area Allocation Procedure" (page A-26)
User Area This device can only be allocated inside the GP; not to the device/PLC.
Use it for addresses that can only be processed with the GP. You cannot
control it from the device/PLC.
Special Relay Area This area stores each type of status information that occurs when the GP
communicates.
) "A.1.4.3 Special Relay" (page A-23)
Reserved Used inside the GP. Do not use this area.
LS9000 Area Stores the GP's internal operating information such as a Trend Graph's
historical data and the communication scan time. There is also an
adjustable portion.
) "7.3.2 Setup Procedure „ Stop Communications" (page 7-13)

• The following describes how to specify the LS Area.


‹Specifying Word Addresses
(For example) "LS0000"
Set from 0000 to 9999

‹Specifying Bit Addresses


(For example) "LS0000 00"
Designate from 00 to 15 (Bit Number)
Designate from 0000 to 9999

GP-Pro EX Reference Manual A-10


Communication

A.1.4.2 System Data Area


This shows the contents of write data in each address of the System Data Area.
„ One Address Communicating with a 16 bit Device/PLC
• The following table's "Word Address" column shows the Word addresses
added from the System Data Area's top address in the device/PLC. (When all
items are selected from the GP's LS0000 to LS0019)
• LS0000 to 0007 is the GP→ PLC write-only area, and LS0008 to 0019 is
read-only area.

Description Bit Detail H System Variable


GP Internal
Address

Address
Word

LS0000 +0 Current Screen - 1 to 9999 (BIN) #H_CurrentScreenNo


Number 1 to 7999 (BCD)
0 to 2 Unused
3 Screen Memory
Checksum
4 SIO Framing
5 SIO Parity
LS0001 +1 Error Status 6 SIO Overrun -

7 to 9 Unused
10 Backup Battery Low
Voltage
11 PLC Communication
Error
12 to 15 Unused
LS0002 +2 Clock's current - Last 2 digits of year (2 #H_CurrentYear
"Year" value BCD digits)
LS0003 +3 Clock's current - 01 to 12 (2 BCD #H_CurrentMonth
"Month" value digits)
LS0004 +4 Clock's current - 01 to 31 (2 BCD #H_CurrentDay
"Day" value digits)
Continued

GP-Pro EX Reference Manual A-11


Communication

GP Internal Description Bit Detail H System Variable


Address

Address
Word
LS0005 +5 Clock's current - Hour: 00 to 23, Time: #H_CurrentHour
"Time" value Minute: 00 to 59 Minute:
(4 BCD digits) #H_CurrentMinute
0 to 1 Reserved -

2 Printing #H_Status_Print
3 Data Display Part -
Write Setting Value
LS0006 +6 Status 4 to 7 Reserved -

8 Data Display Part -


Input Error
9 Display ON/OFF #H_Status_DispOnOff
0: ON, 1: OFF
10 Backlight burnout -
detection
11 to 15 Reserved -

LS0007 +7 Reserved - Reserved -

LS0008 +8 Change-To Screen - 1 to 9999 (BIN) #H_ChangeScreenNo


1 to 7999 (BCD)*1
LS0009 +9 Screen Display - Turn Screen Display -
ON/OFF OFF with FFFFh
Display screen with
0h
LS0010 +10 Clock's "Year" - Last 2 digits of year (2 #H_SetYear
setting value BCD digits)
(Bit 15 is the clock
data's rewrite flag)
LS0011 +11 Clock's "Month" - 01 to 12 (2 BCD #H_SetMonth
setting value digits)
LS0012 +12 Clock's "Day" - 01 to 31 (2 BCD #H_SetDay
setting value digits)
LS0013 +13 Clock's "Time" - Hour: 00 to 23, #H_SetHour
setting value Minute: 00 to 59 #H_SetMinute
(4 BCD digits)
Continued

GP-Pro EX Reference Manual A-12


Communication

GP Internal Description Bit Detail H System Variable


Address

Address
Word
0 Backlight OFF -

1 Buzzer ON #H_Control_Buzzer
2 Print Started #H_Control_HardcopyPrint
LS0014 +14 Control 3 Reserved -

4 Buzzer #H_Control_BuzzerEnable
5 AUX Output -

6 to 10 Reserved -

11 Print Canceled #H_Control_PrintCancel


12 to 15 Reserved -

LS0015 +15 Reserved - Reserved -

0 Window Display
0:OFF, 1:ON
LS0016 +16 Window Control 1 Window overlap order #H_GlobalWindowControl
change
0:Permitted, 1: Not
permitted
2 to 15 Reserved
LS0017 +17 Window Screens - Global Window's #H_GlobalWindowNo
registration number
selected indirectly:
1 to 2000 (BIN/BCD)
LS0018 +18 Window Display - Global Window's top- #H_GlobalWindowPosX
Position left
(X Coordinate) (Bin/BCD)
LS0019 +19 Window Display - #H_GlobalWindowPosY
Position
(Y Coordinate)
*1 When you do not specify [Reflect in Device/PLC] from the [System Settings] [Display
Unit] [Display] tab, you cannot return to the screen number from which you switched by
touch from the device/PLC. To force the screen to switch, turn ON bit 15 of the address
and then specify the screen number to which you want to switch from bits 0 -14. (Enter the
8000h + the value of screen number to which you want to switch in the address.)
For example, to enable forced screen switching:
8000(h)+1999(h)=9999(h) write "9999" to the address.
Caution)
• While forced screen switching is enabled (Bit 1 5 is ON), screen switching by touch is not
enabled.
• When the data format is BCD, you cannot change to screens numbered 2000 or higher.

GP-Pro EX Reference Manual A-13


Communication

• Normally, when turning OFF the Screen Display, do not use +14 [Control]
[Backlight OFF] bit. Use +9 [Screen Display ON/OFF].

„ Address Communicating with an 8-bit Device/PLC


• The following table's "Word Address" column shows the Word addresses
added from the System Data Area's top address in the device/PLC. (When all
items are selected from the GP's LS0000 to LS0019)
• LS0000 to 0007 is the GP→ PLC write-only area, and LS0008 to 0019 is
read-only area.
• The PLC determines the byte order (Low or High) and how data displays

Byte Description Bit Detail H System Variable


GP Internal
Address

Order
Decimal

Octal

LS0000 +0 +0 Current - 1 to 9999 (BIN) #H_CurrentScreenNo


+1 +1 Screen 1 to 7999 (BCD)
Number
LS0001 +2 +2 Error Status 0 to 2 Unused -

3 Screen Memory
Checksum
4 SIO Framing
Low

5 SIO Parity
6 SIO Overrun
7 Unused
+3 +3 0 to 1 Unused
2 Backup Battery
Low Voltage
High

3 PLC
Communication
Error
4 to 7 Unused
LS0002 +4 +4 Clock's - Last two digits of #H_CurrentYear
+5 +5 current year
"Year" value (2 BCD digits)
Continued

GP-Pro EX Reference Manual A-14


Communication

GP Internal Byte Description Bit Detail H System Variable


Address

Order
Decimal

Octal
LS0003 +6 +6 Clock's - 01 to 12 (2 BCD #H_CurrentMonth
+7 +7 current digits)
"Month"
value
LS0004 +8 +10 Clock's - 01 to 31 (2 BCD #H_CurrentDay
+9 +11 current digits)
"Day" value
LS0005 +10 +12 Clock's - Hours: 00 to 23, Hours: #H_CurrentHour
+11 +13 current Minutes: 00 to 59 Minutes:
"Time" (4 BCD digits) #H_CurrentMinute
value
LS0006 +12 +14 Status 0 to 1 Reserved -

2 Printing #H_Status_Print
Low

3 Data Display Part -


Write Value
4 to 7 Reserved -

+13 +15 0 Data Display Part -


Input Error
1 Video ON/OFF #H_Status_DispOnOff
High

0: ON; 1:OFF
2 Backlight burnout -
detection
3 to 7 Reserved -

LS0007 +14 +16 Reserved - Reserved -

+15 +17
LS0008 +16 +20 Change-To - 1 to 9999 (BIN) #H_ChangeScreenNo
+17 +21 Screen 1 to 7999
(BCD)*1
LS0009 +18 +22 Screen - Turn Screen -

+19 +23 Display ON/ Display OFF with


OFF FFFFh
Turn Screen
Display ON with
0h
LS0010 +20 +24 Clock's - 2 Digit Year #H_SetYear
+21 +25 "Year" (BCD 2 digits)
setting value (Bit 15 - clock
data's write flag)
Continued

GP-Pro EX Reference Manual A-15


Communication

GP Internal Byte Description Bit Detail H System Variable


Address

Order
Decimal

Octal
LS0011 +22 +26 Clock's - 01 to 12 (2 BCD #H_SetMonth
+23 +27 "Month" digits)
setting value
LS0012 +24 +30 Clock's - 01 to 31 (2 BCD #H_SetDay
+25 +31 "Day" digits)
setting value
LS0013 +26 +32 Clock's - Hours: 00 to 23; #H_SetHour
+27 +33 "Time" Minutes: 00 to 59 #H_SetMinute
setting value (4 BCD digits)
LS0014 +28 +34 Control 0 Backlight OFF -

1 Buzzer ON #H_Control_Buzzer
2 Print Started #H_Control_HardcopyPrint
Low

3 Reserved -

4 Buzzer #H_Control_BuzzerEnable
5 AUX Output -

6 to 7 Reserved -

+29 +35 0 to 2 Reserved -


High

3 Print Canceled #H_Control_PrintCancel


4 to 7 Reserved -

LS0015 +30 +36 Reserved - Reserved -

+31 +37
LS0016 +32 +40 Window 0 Show Window #H_GlobalWindowControl
Control 0: OFF; 1: ON
1 Move the selected
Window on top of
Low

another Window
0: Enable; 1:
Disable
2 to 7 Reserved
+33 +41 0 to 7 Reserved
High

LS0017 +34 +42 Window - Global Window's #H_GlobalWindowNo


+35 +43 Screens registration
number selected
indirectly:
1 to 2000 (BIN/
BCD)
Continued

GP-Pro EX Reference Manual A-16


Communication

GP Internal Byte Description Bit Detail H System Variable


Address

Order
Decimal

Octal
LS0018 +36 +44 Window - Global Window's #H_GlobalWindowPosX
+37 +45 Display top-left display
Position coordinate,
(X selected
Coordinate) indirectly (BIN/
LS0019 +38 +46 Window - BCD) #H_GlobalWindowPosY
+39 +47 Display
Position
(Y
Coordinate)
*1 When you do not specify [Reflect in Device/PLC] from the [System Settings] [Display
Unit] [Display] tab, you cannot return to the screen number from which you switched by
touch from the device/PLC. To force the screen to switch, turn ON bit 15 of the address
and then specify the screen number to which you want to switch from bits 0 -14. (Enter the
8000h + the value of screen number to which you want to switch in the address.)
For example, to enable forced screen switching:
8000(h)+1999(h)=9999(h) write "9999" to the address.
Caution)
• While forced screen switching is enabled (Bit 1 5 is ON), screen switching by touch is not
enabled.
• When the data format is BCD, you cannot change to screens numbered 2000 or higher.

• Normally, when turning the Screen Display OFF, do not use the Backlight OFF
control bit (Byte Address +28 in decimal format or Byte Address +34 in the octal
format.) Instead, use the Screen Display ON/OFF address (Byte Address +18 in
decimal format or Byte Address +22 in octal format.)

„ Details About Each Address


Description Detail
Current Screen Stores the screen number that currently displays on the GP.
Number
Continued

GP-Pro EX Reference Manual A-17


Communication

Description Detail
Error Status When an error occurs in the GP, the corresponding bit turns ON. After
the bit turns ON and the power turns OFF, the status is maintained until
the GP changes from offline mode back to active mode.

Bit Bit Description Detail


(16 Bits) (8 Bits)
0 to 2 0 to 2 Unused
3 3 Screen Memory There is an error in the project file.
Checksum Transfer it again.
4 4 SIO Framing
5 5 SIO Parity
6 6 SIO Overrun
7 7 Unused
8 to 9 0 to 1 Unused
10 2 Backup Battery Low This turns ON when the voltage of
Voltage the backup lithium battery is low.
The backup battery is used by the
clock and SRAM.
11 3 PLC Communication Error in communication with
Error device/PLC, caused by bits 4 to 6,
or other cause.
12 to 15 4 to 7 Unused

Clock Data (Current) Stored as BCD. [Year] is the 2 final digits of the year, [Month] is 2 digits
from 01 to 12, [Day] is 2 digits from 01 to 31, [Time] is 2 hour digits
from 00 to 23 and 2 minute digits from 00 to 59 for a total of 4 digits.

• The current value for the day is stored in LS9310. The day is calculated
from the Year, Month, and Day of the GP's onboard IC (RTC) clock.

The value is stored in LS9310 as follows.


Numeri Description
c Value
0 Sunday
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
After 7 Unused
Updates are performed when the IC clock date is changed. Because the
writes do not occur regularly, when parts change in this area, this area is
not updated until the IC clock date changes.
Continued

GP-Pro EX Reference Manual A-18


Communication

Description Detail
Status Monitor only the bits that you need to monitor. Do not turn reserved bits
ON/OFF because they are sometimes used for GP system maintenance.
Bit Bit Description Details
(16 Bits) (8 Bits)
0, 1 0, 1 Reserved -
2 2 Printing Turns ON during printing. While this
bit is ON, there are cases when the
offline screen appears or when
output is disturbed.
3 3 Write Setting Value This bit is reversed each time a
write occurs from a Data Display
(Setting Value Input).
4 to 7 4 to 7 Reserved -
8 0 Data Display Part When Alarms are set for the Data
Input Error Display where you enter a value
outside of the alarm range, this bit
turns ON.
When you input a value inside the
alarm range or change screens, this
bit turns OFF.
9 1 Display ON/OFF This can detect whether to turn the
(0: ON, 1: OFF) GP's screen display ON/OFF from
the device/PLC.
This bit changes in the following
cases.
1. When FFFFh is written to the
System Data Area's Display ON/
OFF, the display turns OFF.
2. When the standby time passes,
the display turns OFF
3. If the screen changes or is
touched after the display turns
OFF, the display turns back ON.

• This bit cannot change LS0014


"Control"'s 0 bit (Backlight OFF).
10 2 Backlight burnout When an expired backlight is
detection detected, this bit turns ON.
11 to 15 3 to 7 Reserved -

Continued

GP-Pro EX Reference Manual A-19


Communication

Description Detail
Change-To Screen Set the Change-to Screen Number. The setting range differs depending
on whether or not [Data Type of Display Screen Numbers] and [Change
Screen from Main Unit - Reflect in Device/PLC] are set on the [System
Settings] [Display Unit] [Display] tab.

When [Data Type of Display Screen Numbers] is [Bin]:


Reflect in Screen Change from Screen Change from Display
Device/PLC Device/PLC Unit
Enable 1 to 9999 1 to 9999
Disable 1 to 9999 1 to 9999

When [Data Type of Display Screen Numbers] is [BCD]:


Reflect in Screen Change from Screen Change from Display
Device/PLC Device/PLC Unit
Enable 1 to 7999 1 to 7999
Disable 1 to 1999 1 to 7999

Screen Display ON/ Shows the screen when the value is "0h" and hides the screen when the
OFF value is "FFFFh". Values other than "0h" and "FFFFh" are reserved.
When the screen display is hidden, the next touch on the screen turns the
display on.
Clock Data (Present Set as BCD. [Year] is the 2 final digits of the year, [Month] is 2 digits
Value) from 01 to 12, [Day] is 2 digits from 01 to 31, [Time] is 2 hour digits
from 00 to 23 and 2 minute digits from 00 to 59 for a total of 4 digits.
„Setting Example: October 19th, 2005, 21:57
(1) When the current Word Address "+10"'s data is "0000",
- "Month" - Write "0010" → Word Address "+11"
- "Day" - Write "0019" → Word Address "+12"
- "Time" - Write "2157" → Word Address "+13"
(2) When you write "8005" to Word Address "+10," bit 15 of "+10" turns
ON, and clock data is rewritten. For "8005," bit 15 is turned ON by the
"8000" portion, while the "Year" is set with "05".
Continued

GP-Pro EX Reference Manual A-20


Communication

Description Detail
Control

• Please make sure to write this address in bit units. In some cases, writing
with word data can change the value.
• "Reserved" bits are sometimes used for maintenance of the GP's system.
Turn them OFF.

Bit Bit Description Details


(16 Bits) (8 Bits)
0 0 Backlight OFF When ON, the backlight turns OFF. When
OFF, the backlight turns ON. (The parts
placed on the screen function while the
LCD is lit.)

• Normally, to turn OFF the screen display use


Word Address "+9" (Screen Display ON/OFF).
1 1 Buzzer ON 0:Do not sound, 1: Sound
2 2 Print Started 0:Do not sound, 1: Sound
When the bit turns ON, the printing
screen data starts.

• When Status "Bit 2" (Printing) turns ON, turn it


OFF manually.
3 3 Reserved 0 Fixed
4 4 Buzzer The following action occurs only when
Control "Bit 1" (Buzzer ON) is ON.
0:Sound, 1: Do not sound
To stop the buzzer sound, turn this bit ON.
5 5 AUX Output The following action occurs only when
Control "Bit 1" (Buzzer ON) is ON.
0:Sound, 1: Do not sound
To stop the AUX output, turn this bit ON.
6 to 7 6 to 7 Reserved 0 Fixed
8 to 10 0 to 2 Reserved 0 Fixed
11 3 Print Canceled 0:Sound, 1: Do not sound
When the bit turns ON, all current printing
is canceled.

• After printing stops and Status "Bit 2" (Printing)


turns OFF, turn it OFF manually.
• Even when the Print Canceled bit turns ON, data
previously sent to the printer is printed.
12 to 15 4 to 7 Reserved 0 Fixed

Continued

GP-Pro EX Reference Manual A-21


Communication

Description Detail
Window Screens Stores the Global Window's registration number selected indirectly: 1 to
2000 (BIN/BCD).
Window Display Stores the Global Window's top-left display position, selected indirectly.
Position "+18" shows the X coordinate, "+19" shows the Y coordinate. The data
type is BIN or BCD.

GP-Pro EX Reference Manual A-22


Communication

A.1.4.3 Special Relay

The Special Relay is not write-protected. Do not turn it ON/OFF with Parts or write
Words.

The Special Relay has the following structure.

Direct Access Method


Address Description H System Variable
LS2032 Common Relay —
Information
LS2033 Base Screen Information —
LS2034 Reserved —
LS2035 1-Second Binary Counter —
LS2036 Display Scan Time #H_DispScanTime
LS2037 Communication Cycle —
Time
LS2038 Display Scan Counter #H_DispScanCounter
LS2039 Communication Error —
Code
LS2040 Reserved —
LS2041
LS2042
LS2043
LS2044
LS2045
LS2046
LS2047

GP-Pro EX Reference Manual A-23


Communication

Description Detail
Common Relay
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit
Information (LS2032)

Bit Description
0 Toggles ON/OFF every communication cycle.
1 After a Base screen or Window changes, turns ON until
communication with all the device addresses set in the screen has
succeeded and the Part operation or process has completed.
2 Turns ON only when a communication error occurs.
3 Turns ON while the initial screen displays at power ON.
4 Normally ON.
5 Normally OFF.
6 Turns ON when backup SRAM data is erased.
(Only onboard backup SRAM)
7 When using D-Scripts, turns ON when a BCD error occurs.
8 When using D-Scripts, turns ON when a zero error occurs.
9 Turns ON when a recipe could not be transferred to backup SRAM.
10 Turns ON when a recipe transferred according to the Control Word
Addresscould not be transferred from PLC → SRAM.
Also, if transferring between the PLC by means of a Special Data
Display (filing), when there is a Transfer Complete Bit Address, turns
ON when data could not be transferred from PLC → Area, or PLC →
SRAM.
11 Turns ON while transferring filing data between SRAM ←→ LS Area
by means of a Special Data Display (Filing).
12 When using D-Scripts, turns ON when a communication error occurs
from a memcpy ( ) or address offset designation read. Turns OFF
when data finishes reading normally.
13 In the [System Settings] [Script I/O] page, when no [D-Script/Global D-
Script] is set in the project, turns ON when the readout of the Send
function, Receive function, Control, Status variable, and Received
Data Size is executed in [SIO Port Operation]'s Label Settings.
14 In the [System Settings] [Script I/O] page, when [D-Script/Global D-
Script] is set in the project, turns ON when an extended script's [Text
Operation] function is executed. Also, in the [System Settings] [Script I/
O] page, when [Extended Script] is set in the project, turns ON even
when a D-Script/Global D-Script [SIO Port Operation]'s I/O function
(IO_WRITE, IO_READ) is executed.
15 Reserved

Base Screen
Information (LS2033)
15 1 0 Bit

This bit stays ON from the time the base screen


changes until handling of all parts is complete.

Reserved

Continued

GP-Pro EX Reference Manual A-24


Communication

Description Detail
Reserved (LS2034, Reserved. Do not use.
LS2040 to LS2047)
1-Second Binary Increments once every second immediately after the power is turned ON.
Counter (LS2035) The data is binary.
Display Scan Time The display time taken starting from the first Part set on the display
(LS2036) screen to the end of the last Part. Data is stored in binary format, in ms
units. The data is updated when all processing for the target Parts has
finished. The data's initial value is 0.There is an error of ± 10 ms.
Communication One cycle's time is from the start to the end of the management of the
Cycle Time (LS2037) System Data Area allotted inside the device/PLC, and each type of
device. Data is stored in binary format, in 10 ms units. The data is
updated when all processing for the System Data Area and target device
has finished. The data's initial value is 0. There is an error of ± 10 ms.

• When multiple devices/PLCs are connected to a single GP, the System


Data Area can only be allotted to one device/PLC.
Display Scan The counter increments each time the Part set on the display screen
Counter (LS2038) processes. The data is binary.
Communication When a communication error occurs, this stores the last displayed
Error Code (LS2039) communication error code in binary.

GP-Pro EX Reference Manual A-25


Communication

A.1.4.4 Device/PLC System Data Area Allocation Procedure


When referencing a screen number that displays on the GP from a device/PLC or changing
screens, to reference/control the GP's data, share the GP's internal System Data Area's
allocated data with the device/PLC.

GP Direct Access PLC1


Method

LS Area Address
LS0 Start Address *1
System Data System Data
Area Area *2
LS20 +n
Data
Read Area
(Read Area)
LSx *4 +m *3

*1 Set up the start address with the process on the next page.
*2 n = 0 to 20. This depends on the number of selected items in the GP's set System Data
Area.
*3 This is the Read Area Size.
*4 ∗ = Read Area Start Address (20) + Read Area Size (m)

• When multiple devices/PLCs are connected to a single GP, the System Data
Area can only be allotted to one device/PLC.
• Do not set addresses for Parts which span the System Data Area and Read
Area, or the Read Area and User Area.
• When setting addresses for Parts in the System Data Area, set the data
length as 16 bit.

• The number of addresses that can be set in the System Data Area differs
depending on the device/PLC. For details, please refer to the GP-Pro EX
Device/PLC Connection Manual.

GP-Pro EX Reference Manual A-26


Communication

1 From the [Project (F)] menu, select [System Settings (C)] or click . In [System
Settings], select [Display Unit]. In [Display Unit], select the [System Area] tab. The
following dialog box appears.

2 Assign the addresses in the device/PLC you will communicate with. In [System Area
Device], select the device/PLC where you will assign addresses and set the start address of an
area that has 16 words or more of continuous addresses in [System Area Start Address].

• Data used in all common screens and Line Charts' block display data is
stored in the "Read Area." According to the needed capacity, set a [Read
Area Size] of up to 256 words. Use the LS area exclusively as the read area
starting from the address on the right and continuing for the designated
number of words.

GP-Pro EX Reference Manual A-27


Communication

3 Select the [Enable System Data Area] check box. Sixteen words are allocated from the start
address.
) "A.1.5.2 System Data Area" (page A-31)

• When using a Global Window, 4 Words are used for the [Window Control],
[Window Screen], and [Window Display Position].
) "12.6 Changing the Displayed Window on All Screens" (page 12-17)
4 The settings are complete.

GP-Pro EX Reference Manual A-28


Communication

A.1.5 System Area (Memory Link Area)


When communicating inside the GP using the Memory Link Method, the System Area is
secured. This area is used for exchanging with the host.

A.1.5.1 System Area List


Memory Link Method System Area

0000
System Data Area
0020

User Area

2032
Special Relay Area
2048
Reserved
2096

User Area

9000
9000 Area
9999

• When setting addresses for Parts in the System Data Area, set the data
length as 16 bit.

Area Name Description


System Data Area This area stores data required for system operations, such as the GP
screen control data and error information. The write data is fixed.
) "A.1.5.2 System Data Area" (page A-31)
User Area This area is used for exchanging data between the GP and host computer.
On the host, decide which GP address data to write and create a program
to write the data. In the GP, configure settings for special Parts to display
data written in the addresses. For the host to read written data by means
of Switches, Data Displays, and keypads, you need to create a program in
the host to read the GP's data.
Special Relay This area stores each type of status information that occurs when the GP
communicates.
) "A.1.5.3 Special Relay" (page A-39)
Reserved Used inside the GP. Do not use this area.
9000 Area Stores the GP's internal operating information such as a Trend Graph's
historical data and the communication scan time. There is also an
adjustable portion.

GP-Pro EX Reference Manual A-29


Communication

• When the address has a bit designation, add a bit position after the Word
device. (Designate from 00 to 15.)
< > When bit 02 of the user area's 0020 address is designated
"002002"
Bit Position
Word Address

GP-Pro EX Reference Manual A-30


Communication

A.1.5.2 System Data Area


This shows the contents of write data in each address of the System Data Area.
• Normally, when turning OFF the Screen Display, do not use 11 (Control)'s
"Backlight OFF" bit. Use 12 [Screen Display ON/OFF].

• The Word Addresses in this table appear when you select the [Enable System
Data Area] check box and all of the items.

Word Description Bit Detail


Address
0 Reserved - Reserved
0 to 1 Reserved
2 Printing
3 Data Display Part Write Setting Value
1 Status 4 to 7 Reserved
8 Data Display Part Input Error
9 Display ON/OFF 0:ON, 1:OFF
10 Backlight burnout detection
11 to 15 Reserved
2 Reserved - Reserved
0 to 2 Unused
3 Screen Memory Checksum
4 SIO Framing
3 Error Status 5 SIO Parity
6 SIO Overrun
7 to 9 Unused
10 Backup Battery Low Voltage
11 to 15 Unused
4 Clock's current "Year" value 0 to 7 Last 2 digits of year (2 BCD digits)
8 to 15 Unused
5 Clock's current "Month" 0 to 7 01 to 12 (2 BCD digits)
value 8 to 15 Unused
6 Clock's current "Day" value 0 to 7 01 to 31 (2 BCD digits)
8 to 15 Unused
7 Clock's current "Hour" value 0 to 7 00 to 23 (2 BCD digits)
8 to 15 Unused
Continued

GP-Pro EX Reference Manual A-31


Communication

Word Description Bit Detail


Address
8 Clock's current "Minute" 0 to 7 00 to 59 (2 BCD digits)
value 8 to 15 Unused
9 Reserved - Reserved
10 Interrupt Output (When - If writing to a Word Switch (16 bit),
touch is OFF) when you take your finger off the
Switch, the bottom 8 bits are output as an
interrupt code.*1
0 Backlight OFF
1 Buzzer ON
2 Print Started
3 Reserved
4 Buzzer
11 Control 5 AUX Output
6 Writes "FFh" when you touch a screen
and return to the screen (from "Display
OFF" to "Display ON").
0: Do not output interrupt
1: Output interrupt
7 to 10 Reserved
11 Print Canceled
12 to 15 Reserved
12 Screen Display ON/OFF - Turn Screen Display OFF with FFFFh
Display screen with 0h
13 Interrupt Output - When writing to a Word Switch (16
(When touch is ON) bit), the bottom 8 bits are output as an
interrupt code.*1
14 Reserved - Reserved
15 Current Screen Number - 1 to 9999 (BIN)
1 to 7999 (BCD)*2
0 Window Display
0:OFF, 1:ON
16 Window Control 1 Change Window overlap order
0:Permitted, 1: Not permitted
12 to 15 Reserved
Continued

GP-Pro EX Reference Manual A-32


Communication

Word Description Bit Detail


Address
17 Window Screens - Global Window's registration number
selected indirectly:
1 to 2000 (BIN/BCD)
18 Window Display Position - Global Window's top-left display
(X Coordinate) position, selected indirectly (BIN/
19 Window Display Position - BCD).
(Y Coordinate)
*1 When you write data 0x00 to 0x1F, communications problem may occur. This is
unaffected by [System Settings] workspace, [Display Unit] screen's [Touch Panel
Detection] setting.
*2 When you do not specify [Reflect in Device/PLC] from the [System Settings] [Display
Unit] [Display] tab, you cannot return to the screen number from which you switched by
touch from the host. To force the screen to switch, turn ON bit 15 of the address, specify
the screen number to which you want to switch from bits 0 -14. (Input the 8000h + the
value of screen number to which you want to switch in the address.)
For example, to enable forced screen switching:
8000(h)+1999(h)=9999(h) write "9999" to the address.
Caution)
While forced screen switching is enabled (Bit 15 is ON), screen switching by touch is not
enabled.When the data format is BCD, you cannot change to screens numbered 2000 or higher.

GP-Pro EX Reference Manual A-33


Communication

Description Detail
Reserved Addresses "0", "2", "9", and "14" are reserved because they are used
within the GP; do not write data to them
Status Monitor only the necessary bits. Reserved bits are sometimes used for
GP system maintenance, so do NOT turn them ON/OFF.

Bit Description Details


0,1 Reserved -
2 Printing Turns ON during printing. While this bit is ON,
there are cases when the offline screen
appears or when output is disturbed.
3 Write Setting Value This bit is reversed each time a write occurs
from a Data Display (Setting Value Input).
4 to 7 Reserved -
8 Data Display Part When Alarms are set for the Data Display
Input Error where you enter a value outside of the alarm
range, this bit turns ON.
When you input a value inside the alarm
range or change screens, this bit turns OFF.
9 Display ON/OFF This can detect whether to turn the GP's
(0: ON, 1: OFF) screen display ON/OFF from the device/PLC.
This bit changes in the following cases.
1. When FFFFh is written to the System
Data Area's Display ON/OFF, the
display turns OFF.
2. When the standby time passes, the
display turns OFF
3. If the screen changes or is touched after
the display turns OFF, the display turns
back ON.

• This bit cannot change LS0014 "Control"'s 0 bit


(Backlight OFF).
10 Backlight burnout When an expired backlight is detected, this bit
detection turns ON.
11 to 15 Reserved -

Continued

GP-Pro EX Reference Manual A-34


Communication

Description Detail
Error Status When an error occurs in the GP, the corresponding bit turns ON. After
the bit turns ON and the power turns OFF, the status is maintained until
the GP changes from offline mode back to active mode.
Bit Description Detail
0 to 2 Unused
3 Screen Memory There is an error in the project file.
Checksum Transfer it again.
4 SIO Framing
5 SIO Parity
6 SIO Overrun
7 to 9 Unused
10 Backup Battery Low This turns ON when the voltage of the backup
Voltage lithium battery is low. The backup battery is
used by the clock and SRAM.
11 to 15 Unused

Because the addresses are used for system control, do not display
them by means of a Data Display.

Clock Data (Current) Whatever the value, it will be stored in BCD, in the highest-order bit to
bit 7.
[Year] is the 2 final digits of the year, [Month] is 2 digits from 01 to 12,
[Day] is 2 digits from 01 to 31, [Hour] is 2 digits from 00 to 23 and
[Minute] is 2 digits from to 59.
„ Setting Example: October 19th, 2005, 21:57
- "Year" - Write "0005" → Word Address "4"
- "Month" - Write "0010" → Word Address "5"
- "Day" - Write "0019" → Word Address "6"
- "Hour" - Write "0021" → Word Address "7"
- "Minute" - Write "0057" → Word Address "8"
Interrupt Output If writing to a Word Switch (16 bit), when you release your finger from
(When touch is OFF) the Switch, the lower 8 bits are output as an interrupt code. (Control code
"FFh" will not be outputted.)
Do not write control codes in the "00 to 1F" range. It can cause a
communication problem.
Continued

GP-Pro EX Reference Manual A-35


Communication

Description Detail
Control

• Please make sure to write this address in bit units. In some cases, writing
with word data can change the value.
• "Reserved" bits are sometimes used for maintenance of the GP's system.
Turn them OFF.
Bit Description Detail
0 Backlight OFF When ON, the backlight turns OFF. When OFF, the
backlight turns ON. (The parts placed on the screen
function while the LCD is lit.)

• Normally, when turning OFF the screen display, use Word


Address "12" (Screen Display ON/OFF).
1 Buzzer ON 0:Do not sound, 1: Sound
2 Print Started 0:Do not sound, 1: Sound
When the bit turns ON, the printing screen data
starts.

• When Status "Bit 2" (Printing) turns ON, turn it OFF manually.
3 Reserved 0 Fixed
4 Buzzer The following action occurs only when Control "Bit 1"
(Buzzer ON) is ON.
0:Sound, 1: Do not sound
To stop the buzzer sound, turn this bit ON.
5 AUX Output The following action occurs only when Control "Bit 1"
(Buzzer ON) is ON.
0:Sound, 1: Do not sound
To stop the AUX output, turn this bit ON.
6 Interrupt output (Interrupt code: FFh) 0: Do not output interrupt, 1:
for when a Output interrupt
screen is
changed from
OFF to ON by
touching a touch
panel
7 to 10 Reserved 0 Fixed
11 Print Canceled 0:Sound, 1: Do not sound
When the bit turns ON, all current printing is
canceled.

• After printing stops and Status "Bit 2" (Printing) turns OFF,
turn it OFF manually.
• Even when the Print Canceled bit turns ON, data previously
sent to the printer is printed.
12 to Reserved 0 Fixed
15

Continued

GP-Pro EX Reference Manual A-36


Communication

Description Detail
Screen Display ON/ Shows the screen when the value is "0h" and hides the screen when the
OFF value is "FFFFh". Values other than "0h" and "FFFFh" are reserved.
When the screen display is hidden, the next touch on the screen will turn
the display back ON.
Because the addresses are used for system control, do not display
them by means of a Data Display.
Because the addresses are controlled in Words, you cannot write
Bits.
When you write "FFFFh," the displayed screen disappears
momentarily. If you want the screen display to disappear for the
standby mode time designated in the GP offline mode's initial
settings, write "0000h."

Interrupt Output When writing to a Word Switch (16 bit), the lower 8 bits are output from
(When touch is ON) the GP to the host as an interrupt code.
Do not write control codes in the "00 to 1F" range. It can cause a
communication problem.
Because the addresses are used for system control, do not display
them by means of a Data Display.
Because the addresses are controlled in Words, you cannot write
Bits.

• When you write data with a Word Switch (16 bit), they are output as
interrupt data. Retrieve this byte of interrupt input in the host (with the
INPUT$ in BASIC, for example), and you can simplify the program by
using the retrieved interrupt output to jump to each subroutine.
Continued

GP-Pro EX Reference Manual A-37


Communication

Description Detail
Current Screen Set the Change-to Screen Number. The setting range differs depending
Number on whether or not [Data Type of Display Screen Numbers] and [Change
Screen from Main Unit - Reflect in Device/PLC] are set on the [System
Settings] [Display Unit] [Display] tab.

When [Data Type of Display Screen Numbers] is [Bin]:


Reflect in Screen Change from Screen Change from Display
Device/PLC Device/PLC Unit
Enable 1 to 9999 1 to 9999
Disable 1 to 9999 1 to 9999
When [Data Type of Display Screen Numbers] is [BCD]:
Reflect in Screen Change from Screen Change from Display
Device/PLC Device/PLC Unit
Enable 1 to 7999 1 to 7999
Disable 1 to 1999 1 to 7999

Because the addresses are used for system control, do not display
them by means of a Data Display.
Because the addresses are controlled in Words, you cannot write
Bits.
Window Control Controls the window display.
) "12.7.2 Word Action" (page 12-23)
Window Screens Stores the Global Window's registration number selected indirectly: 1 to
2000 (BIN/BCD).
Window Display Stores the Global Window's top-left display position, selected indirectly.
Position "+18" shows the X coordinate, "+19" shows the Y coordinate. The data
type is BIN or BCD.

GP-Pro EX Reference Manual A-38


Communication

A.1.5.3 Special Relay

The Special Relay is not write-protected. Do not turn it ON/OFF with Parts or write
Words.

The Special Relay has the following structure.


Memory Link Method
Address Description
2032 Common Relay Information
2033 Base Screen Information
2034 Reserved
2035 1-Second Binary Counter
2036 Display Scan Time
2037 Reserved
2038 Display Scan Counter
2039 Reserved
2040 Reserved
2041
2042
2043
2044
2045
2046
2047

GP-Pro EX Reference Manual A-39


Communication

Description Detail
Common Relay 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit
Information

Bit Description
0 Reserved
1 After a screen (Base, Window) changes, turns ON until the Part
handling is complete.
2 Reserved
3 Turns ON while the initial screen displays at power ON.
4 Normally ON.
5 Normally OFF.
6 Turns ON when backup SRAM data is erased.
(Only onboard backup SRAM)
7 When using D-Scripts, turns ON when a BCD error occurs.
8 When using D-Scripts, turns ON when a zero error occurs.
9 Turns ON when a recipe could not be transferred to backup SRAM.
10 Turns ON when filing data transferred according to the Control Word
Address could not be transferred from PLC*1 → SRAM.
Also, if transferring between the PLC by means of a Special Data
Display, when there is a Transfer Complete Bit Address, turns ON
when data could not be transferred from PLC *1 → Area, or PLC *1 →
SRAM.
11 Turns ON during filing data transfer between SRAM and ←→ LS Area
*1
by means of a Special Data Display (Filing).
12 When using D-Scripts, turns ON when a communication error occurs
from a memcpy ( ) or address offset designation read. Turns OFF
when data finishes reading normally.
13 In the [System Settings] [Script I/O] page, when no [D-Script/Global D-
Script] is set in the project, turns ON when the readout of the Send
function, Receive function, Control, Status variable, and Received
Data Size is executed in [SIO Port Operation]'s Label Settings.
14 In the [System Settings] [Script I/O] page, when [D-Script/Global D-
Script] is set in the project, turns ON when an extended script's [Text
Operation] function is executed. Also, in the [System Settings] [Script I/
O] page, when [Extended Script] is set in the project, turns ON even
when a D-Script/Global D-Script [SIO Port Operation]'s I/O function
(IO_WRITE, IO_READ) is executed.
15 Reserved
*1 For the Memory Link Method, represents the "User Area" inside the System Area.

Base Screen
15 1 0 Bit
Information (2033)

This bit stays ON from the time the base screen


changes until handling of all parts is complete.

Reserved

Continued

GP-Pro EX Reference Manual A-40


Communication

Description Detail
Reserved Reserved. Do not use.
(2034, 2037, 2040 to
2047)
1-Second Binary Increments once every second immediately after the power is turned ON.
Counter The data is binary.
Display Scan Time The display time starts from the first Part set on the display screen to the
(2036) end of the last Part. Data is stored in binary format, ms units. The data is
updated when the targeted Parts' pre-processing completes. The data's
initial value is "0". There is an error of ±10 ms.
Display Scan The counter increments each time the Part set on the display screen
Counter processes. The data is binary.

GP-Pro EX Reference Manual A-41


Communication

A.1.6 Restrictions

A.1.6.1 GP Internal Device Restrictions

• Data stored in the GP internal device, including Memory Link's System Area are deleted
when the GP enters offline mode. However, you can copy the User Area's data to backup
SRAM.
) "5.15.6 [System Settings] Setting Guide ‹ Mode •Backup Internal Device" (page 5-146)

A.1.6.2 Special Relay Restrictions

A System Error may occur if a communication error continues for a long time. In this
case, reset the GP.

When you use the value of a 1-Second Binary Counter or Display Scan Counter as
the trigger bit for a Triggered Action part's Monitoring Bit or for the Script feature, a
System Error may occur if a communication error continues for a long time. In this
case, reset the GP.

The Special Relay is not write-protected. Do not turn it ON/OFF with Parts or write
Words.

GP-Pro EX Reference Manual A-42


Communication

A.1.6.3 Restrictions when Using Direct Access and Memory Link Together

Using Direct Access Method and Memory Link Method, andCommunicating with a
Device/PLC

GP

COM1 COM2
Direct Access Memory Link
Method Method

Microcomputer board
Company A's PLC
(PLC1)

• When setting addresses with Parts or the Script feature, separate them in the GP internal
device.For example, when setting a Word switch's [Word Address], you can select 2 types
of device code when you use the GP internal device, but the supported communication
method differs depending on the area.

- [#INTERNAL]LS
The User Area allocated in the Device/PLC
with the Direct Access Method. You cannot
use the Memory Link Method to
communicate.
- [#INTERNAL]USR
An area that can be arbitrarily set as a work
area. Can be used with both the Direct
Access Method and Memory Link Method.
- [#MEMLINK]
The User Area used only for communication
by Memory Link Method. You cannot use the
Direct Access Method to communicate.

GP-Pro EX Reference Manual A-43


Communication

• The Direct Access Method LS Area and the Memory Link Area (System Area) are
mutually linked, with the exception of some addresses.
Direct Access Method Memory Link Method
LS Area LS Area
LS0000 System Data Partly System Data 0000
Area Linked Area
LS0020 0020
Read
Area
(LS0276) User Area
User Area
LS2032 2032
Special Relay Special Relay
Linked
Area Area
LS2048 2048
Reserved Area Linked Reserved Area
LS2096 2096
User Area User Area
LS8192 8192
User Area User Area
LS9000 9000
LS9000 Area Linked LS9000 Area
LS9999 9999

GP-Pro EX Reference Manual A-44


Communication

• The System Data Area in the Direct Access Method (LS Area) and the System Data Area
in the Memory Link Area are partially linked. Please confirm the details in the
corresponding table.

Description Direct Access Method Memory Link Method


Current Screen Number LS0000 0015 (Read)
Error Status LS0001 0003
Clock Data Current Value (Year) LS0002 0004 (Read)
Clock Data Current Value (Month) LS0003 0005 (Read)
Clock Data Current Value (Day) LS0004 0006 (Read)
Clock Data Current Value (Time) LS0005 0007, 0008 (Read)
Status LS0006 0001
Reserved LS0007 None
Change-To Screen LS0008 0015 (Write)
Screen Display ON/OFF LS0009 0012
Clock Data Preset Value (Year) LS0010 0004 (Write)
Clock Data Preset Value (Month) LS0011 0005 (Write)
Clock Data Preset Value (Day) LS0012 0006 (Write)
Clock Data Preset Value (Time) LS0013 0007, 0008 (Write)
Control LS0014 0011
Reserved LS0015 None
Window Control LS0016 0016
Window Screens LS0017 0017
Window Display Position (X LS0018 0018
Coordinate)
Window Display Position (Y LS0019 0019
Coordinate)
Interrupt Output Data None 0010
(When touch is OFF)
Interrupt Output Data None 0013
(When touch is ON)

• Some LS areas communicate with the device/PLC. For example, if [Change-


To Screen Number] is changed to 3 (Memory Link Method address 0015)
from a microcomputer board or other host, 3 is stored in Direct Access
Method address LS0008, linked within GP. Make sure the LS areas'
operation will not be affected by these changes.

GP-Pro EX Reference Manual A-45


Communication

A.1.6.4 Restrictions when Using the USR Area

• The storage order for text data is as follows. You cannot change the order.

USR100 5 2 4 5
R E

USR101 7 9 5 2
O R

USR102 0 0 5 2
R
ERROR

GP-Pro EX Reference Manual A-46


Monitoring the Value of Device Addresses (Device monitor)

A.2 Monitoring the Value of Device Addresses (Device monitor)

A.2.1 Detail

You can monitor the arbitrary device of a specified device/PLC on the GP screen and change
the arbitrary address value from the GP screen. This is useful for debugging.
The screen for the monitor is provided, therefore you do not need to create the base screens.

The following devices/PLCs can use the device monitor feature.


Maker Device/PLC Name
Mitsubishi Electric Corporation A series CPU direct
A series Ethernet
A series calculator link
Q series CPU direct
Q/QnA series Ethernet
Q/QnA serial communication
QnA series CPU direct
FX series CPU direct
FX series calculator link
QUTE series CPU direct
Omron Corporation C/CV series upper link
CS/CJ series upper link
CS/CJ series Ethernet
Adjuster CompoWay/F
PROFIBUS International PROFIBUS DP Slave
Siemens AG SIMATIC S7 MPI Direct
SIMATIC S7 3964(R)/RK512
SIMATIC S7 Ethernet
SIMATIC S5 CPU Direct
Rockwell Automation DF1
EtherNet/IP (Not included the
ControlLogix/CompactLogix Series
Native)
DH-485
Continued

GP-Pro EX Reference Manual A-47


Monitoring the Value of Device Addresses (Device monitor)

Maker Device/PLC Name


Yaskawa Electric Corporation MEMOBUS SIO
MEMOBUS Ethernet
MP Series SIO (Extend)
MP Series Ethernet (Extend)
Yokogawa Electric Corporation PC Link SIO
PC Link Ethernet
JTEKT Corporation TOYOPUC CMP-LINK SIO
TOYOPUC CMP-LINK Ethernet
KEYENCE Corporation KV-700/1000 Series CPUDirect
KV-1000 Series Ethernet
Schneider Electric Industries MODBUS SIO Master
MODBUS TCP Master
Uni-Telway
MODBUS Slave
Schneider Electric Industries MODBUS Plus
Matsushita Electric Works, Ltd. FP Series Computer Link SIO
Fuji Electric FA Components & Systems Co., MICREX-F Series SIO
Ltd. MICREX-SX Series SIO
Hitachi Industrial Equipment Systems Co., Ltd. H Series SIO
H Series Ethernet
Sharp MS Corporation JW Series PC Link SIO
JW Series PC Link Ethernet
RKC Instrument Inc. Controller MODBUS SIO
Temperature controller
Yamatake Corporation Digital Controller SIO
GE Fanuc Automation Series90 Ethernet
Series 90-30/70 SNP
Series 90-30/70 SNP-X
Mitsubishi Heavy Industries, Ltd. DIASYS Netmation MODBUS TCP
LS Industrial Systems Co., Ltd. MASTER-K Series Cnet
XGT Series Fnet
Saia-Burgess Controls Ltd. Saia S-Bus SIO
Meidensha Corporation., Ltd. UNISEQUE Series Ethernet
FANUC Ltd. Power Mate series
ODVA DeviceNet Slave
Hitachi Ltd. S10V Series Ethernet
Shinko Technos Co., Ltd. Controller SIO
Toshiba Machine Co., Ltd. PROVISOR TC200
Toshiba Corporation PC Link SIO

GP-Pro EX Reference Manual A-48


Monitoring the Value of Device Addresses (Device monitor)

• A ladder monitor tool is available for reading the PLC ladder program and
monitoring on the GP screen. Please confirm whether your display model
supports the ladder model features and purchase the ladder monitor tool for
your PLC. Please refer to the "PLC Ladder Monitor Operation Manual" for
the ladder monitor operating instructions.
) "1.3 List of Supported Functions by Device" (page 1-5)

GP-Pro EX Reference Manual A-49


Monitoring the Value of Device Addresses (Device monitor)

A.2.2 Setup Procedure


Configures the following settings for the GP-Pro EX.

1 In the System Settings Window, click [Display Unit].

• If the [System Settings] tab does not display on the work space, select View]
menu, point to [Work Space], and then select [System Settings (S)].

2 Open the [Extended Settings] tab and select the [Device Monitor] check box.

3 Transfer a project file to the GP.

• The device monitor screen displays using a global window on the GP screen.
Therefore, other global windows do not display while the device monitor
executes.
• Enable [Device Monitor] to automatically specify [Global Window
Operation] on the [Mode] tab as [Indirect].

GP-Pro EX Reference Manual A-50


Monitoring the Value of Device Addresses (Device monitor)

A.2.3 Operating Procedure


„ Start the Device Monitor Screen
There are three ways to start the device monitor screen:

Start from the System Menu


1 Touch the top right corner, and then the → bottom left corner (or bottom left corner→ top
right corner) on the GP screen within 0.5 seconds.

2 The system menu displays. Touch [Device Monitor] to display the device monitor screen.
Touch [Device monitor] Device monitor

Device Monitor

Status:
Trigger Screen

Address Monitor Logic Monitor Ladder Monitor Device Monitor

Beep
Start with a Switch to start the device monitor.
Create and place the switch for device monitor start in advance.
Device monitor

Device Monitor

Monitor Status:
Trigger Screen

Beep

GP-Pro EX Reference Manual A-51


Monitoring the Value of Device Addresses (Device monitor)

From the [Parts (P)] menu, point to [Switch/Lamp (C)] and select [Special Switch(P)] or
click to place the switch on the screen, and then set as follows.

Triggering with System Variables


Turn ON the system variable #H_DeviceMonitor.

GP-Pro EX Reference Manual A-52


Monitoring the Value of Device Addresses (Device monitor)

„ Monitor the Arbitrary Device


1 Select the monitoring method, and touch [Close Menu] or in the [Menu] bar touch .
Change the window size.
Minimize the device monitor window.
• For models that support only QVGA
resolution, you cannot change the
window size.

Exit the device monitor.


Exit the menu screen.

Select a
monitoring
method.
Select to display/hide
Exit the device the device name.
monitor.
Write the value to the
arbitrary address.
(page A-57)
Exit the menu
screen.

2 The device monitor screen appears.


List the devices you can connect.

Display the menu screen.

Previous page scrolling

Top line scrolling

Bottom line scrolling

Next page scrolling

Switch for starting and stopping


monitoring.

• If text that is unusable on the GP is included in the device name, it will not
display correctly.
• For changing which device to monitor, next to the device/PLC name touch .
The names of devices you can monitor appears. Select the device to monitor.

GP-Pro EX Reference Manual A-53


Monitoring the Value of Device Addresses (Device monitor)

‹ Bit Block Monitor


Displays all address states of the specified bit device in a list. You can select the display
format for the bit state from either lamp display or 0/1 display.

1 Touch [Bit Block Monitor] in the menu.

2 Touch the Exit menu or .


The Bit Block Monitor screen appears.

Touch to switch to the When you touch the


address input screen. address where you
(page A-57) want to enter data,
the bit data input
screen appears.
(page A-57)
Select the display
format for the bit state
from either lamp or 0/
1. The plate color of
the selected item is
inverted.

3 Select the display method from [Big Lamp], [Small Lamp] or [0/1]. When you select lamp
display, indicates ON and indicates OFF.

‹ Word Block Monitor


Displays the current value of the selected word device.
1 Touch [Word Block Monitor] in the menu.

2 Touch the Exit menu or touch . The Word Block Monitor screen appears.

GP-Pro EX Reference Manual A-54


Monitoring the Value of Device Addresses (Device monitor)

3 Select the display format. The default setting is decimal. You can select from [Hexadecimal/
BCD], [Unsigned], [Signed] or [Octal]. For a 32-bit device, you can also select [Float].

Touch to switch to the


Touch the address
address input screen.
where you want to
(page A-57)
enter the data. The
Word data input
screen appears.
(page A-57)
Select the data display
format from Hex/BDC,
Signed, Unsigned, Oct
or Float.

‹ Random Monitor
You can select and display the address that you want to monitor and the address that you
want to view from the bit address.

• In the random monitor, you can only view addresses that can display on one
video. The address numbers that can display depend on the size of the
display screen or device monitor screen.
• There is a limit to the number of characters you can display for the address.
This limit is dependent on the screen size.

Window Size Maximum Number of Single-Byte Characters


Small (320x240) 12
Medium (480x360) 34
Large (640x480) 14

1 Touch [Random Monitor] in the menu screen.


2 Touch the Exit menu or touch . The Random Monitor screen appears.

GP-Pro EX Reference Manual A-55


Monitoring the Value of Device Addresses (Device monitor)

3 Touch the any area of Type, Address or Format.

Touch the line to which


you want to input the data.

4 Touch [Change] to move to the address input screen.

5 Enter the address you want to display and touch [ENT]. The screens will switch.
Touch [OK] to display the input address on the random monitor screen.

GP-Pro EX Reference Manual A-56


Monitoring the Value of Device Addresses (Device monitor)

‹ Write to the Arbitrary Address


You can write the value directly to an arbitrary address on the GP. The following procedure
describes an example of writing the value "100" to the Word Address D100.

1 Touch [Write to Optional Address] on the menu screen. The address input screen displays.
• You can display the address input screen by touching the arbitrary address on
each monitor screen.

2 Select [Word] from Type, specify the address as "D100", and touch [ENT].

Display the device Select the address for


for writing. writing the data from
Word or Bit.
Display the
address input from
the Registration
Keypad, below. Switched to the next
page.

Touch to assign the


address.

3 Select the display method for data, set the value "100" that you want to write, and touch
[ENT].

Touch to move to
the address input
screen.

Touch to start writing.

• When you write to a bit address, select [ON] or [OFF] and touch [ENT].

GP-Pro EX Reference Manual A-57


Monitoring the Value of Device Addresses (Device monitor)

‹ Minimize the Device Monitor Screen


Touch on the title bar to minimize and display on the bottom of the screen.

Display a portion of the monitor


Reopen the device
monitor window.
Switch the display
position of the
minimized screen
up and down.

GP-Pro EX Reference Manual A-58


Monitoring the Value of Device Addresses (Device monitor)

‹ Moving the Display Position of the Display Monitor Screen

• You cannot use this feature when the display is the same size as the device
monitor.

1 Touch the upper part of the device


Device Monitor
1 monitor screen.

2 Touch the desired position on the screen


where you want the display to move.
Status:
Trigger Screen

3 The device monitor screen moves to the


touched location.

• If the device monitor screen runs off


the screen in the selected location, the
window is adjusted so that the entire
window displays.

Device Monitor
2 3

Status:
Trigger Screen Device Monitor

Status:
Trigger Screen

GP-Pro EX Reference Manual A-59


Monitoring the Value of Device Addresses (Device monitor)

A.2.4 Restrictions

• The device monitor screen displays using a global window. You cannot display other
global windows while the device monitor displays.
• When you turn off the power on the display unit, the display position and size settings for
the device monitor or displayed items are lost.
• The bit display of a 32-bit device cannot display.
• The Word device cannot display binary.
• Do not write a value outside the range of the address. Doing so results in an error.
• The display language of the device monitor depends on the system language. If a
language other than Japanese is specified, it is displayed in English. If an unusable
language is set in the system language, the device/PLC name will not be displayed
correctly.
• While using the device monitor, depending on the protocol or current screen size, screen
updates could take longer than usual.
• For models that support only QVGA resolution, you cannot change the window size.

GP-Pro EX Reference Manual A-60


Executing Multiple Actions (Programs) with a Switch Operation

A.3 Executing Multiple Actions (Programs) with a Switch


Operation

A.3.1 Trigger Action Parts Settings Guide


From the [Parts (P)] menu, select [Trigger Action]. The [Trigger Action List] dialog box
appears. Click [Create] or [Edit] to display the following settings dialog box.

• The component tray displays registered trigger action parts in the order they
are created. To change the order of trigger action parts in the component tray,
change the ID number for registered parts, then from the [Edit] menu select
[Auto-Align Trays]. You can change ID settings by double-clicking parts in
the component tray to display the edit dialog box.

„ Bit Action
Operate the specified bit address according to the change of state of the trigger bit address.

Setting Description
Bit ON Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from OFF → ON.
Trigger Settings

Bit OFF Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from ON → OFF.
Bit Change Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from ON to OFF or from OFF to ON.
Trigger Bit Address Designate the bit address that triggers the action set in [Mode].
Destination Bit Designate the bit address to run the action.
Action

Address

Continued
GP-Pro EX Reference Manual A-61
Executing Multiple Actions (Programs) with a Switch Operation

Setting Description
Bit Set Turns ON the [Destination Bit Address] and maintains the ON
state.
Bit Reset Turns OFF the [Destination Bit Address] and maintains the OFF
state.
Flip Changes the ON/OFF state of the [Destination Bit Address].
Comparison When the comparison condition is satisfied, turns ON the
[Destination Bit Address]. Compares the Word Address data and a
constant.
Bit Action
Action

Comparison Define the Word Address to be compared.


Word
Address
Comparison Select the comparison condition.
Constant Define the constant to be compared.
Data Type Choose the constant's data type from [Dec], [BCD], or [Hex].

GP-Pro EX Reference Manual A-62


Executing Multiple Actions (Programs) with a Switch Operation

„ Word Action
Operate the specified bit address according to the change of state of the trigger bit address.

Setting Description
Bit ON Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from OFF → ON.
Trigger Settings

Bit OFF Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from ON → OFF.
Bit Change Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from ON to OFF or from OFF to ON.
Trigger Bit Address Designate the bit address that triggers the action set in [Mode].
Destination Word Designate the Word address to run the action.
Action

Address

Continued

GP-Pro EX Reference Manual A-63


Executing Multiple Actions (Programs) with a Switch Operation

Setting Description
Write Data Writes the constant in [Destination Word Address].

Bit Length Set the data length for the Word address to 16 bit or 32 bit.
Constant Designate the constant to write.
Data Type Designate the constant's data type.
Add Data Writes the value of the constant added to the [Addition Base Word
Address] into the [Destination Word Address].
Word Action
Action

Addition Designate the Word Address to be added to the constant.


Base Word
Address
Constant Designate the constant to add.
Data Type Designate the constant's data type.
Subtract Data Writes the value of the [Subtraction Base Word Address] minus
the constant into the [Destination Word Address].

Subtraction Designate the Word Address from which the constant is


Base Word subtracted.
Address
Constant Designate the constant to subtract.
Data Type Designate the constant's data type.

GP-Pro EX Reference Manual A-64


Executing Multiple Actions (Programs) with a Switch Operation

„ Screen Change
Screen Change is executed according to the change of state of the trigger bit address.

Setting Description
Bit ON Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from OFF → ON.
Trigger Settings

Bit OFF Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from ON → OFF.
Bit Change Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from ON to OFF or from OFF to ON.
Trigger Bit Address Designate the bit address that triggers the action set in [Mode].
Change Panel The displayed screen changes to the specified screen.
Screen Change Action
Action

Change to Specify the number of the Screen you want to display from 1 to
Screen 9,999. This can only be set when [Screen Change Action] is set to
[Screen Change].
Continued

GP-Pro EX Reference Manual A-65


Executing Multiple Actions (Programs) with a Switch Operation

Setting Description
Hierarchical You can set a level hierarchy to the Screen Change. This can only be
Display set when [Screen Change Action] is set to [Screen Change]. A
Screen maximum of 32 levels can be set.
Change
Previous Screen Returns to the previously displayed screen. For screens that are
organized hierarchically, the parent screen appears.

GP-Pro EX Reference Manual A-66


Executing Multiple Actions (Programs) with a Switch Operation

„ Draw Action
When the trigger bit address turns OFF → ON, drawing is complete.

Setting Description
Bit ON Executes the action designated in [Mode] when the [Trigger Bit Address]
Trigger Settings

changes from OFF → ON.


Trigger Bit Select the bit address that triggers the drawing of the image.
Address

• When the image displays, this turns OFF.


• Please maintain graphical data while drawing.
Data Storage Stores the image and properties as graphical data in a Word address.
Start Address Set this Word address' start address.
) " ‹ Graphical data" (page A-69)
Words to Read Specify the draw data words from 5 to 7.
Clear Trigger Set a trigger bit to clear the drawn image. When the clearing bit turns
Bit Address ON, a Clearing Screen will overwrite the displayed screen.
Action

• When the Clearing Screen appears, this turns OFF.


Clear Screen Designate a Base screen to clear the drawn image.
A Clearing Screen must first exist in the project.
Call Position of Designate the Clearing Screen's call position using an X coordinate and a
Screen to Clear Y coordinate.

• The top-left of the screen becomes coordinate (0, 0).


Continued

GP-Pro EX Reference Manual A-67


Executing Multiple Actions (Programs) with a Switch Operation

Setting Description
Read After Reads the draw data when the conditions in [Trigger Settings] are
Startup satisfied.
Action

• This action cannot be used when the [Data Storage Word Address] is an
internal device.

GP-Pro EX Reference Manual A-68


Executing Multiple Actions (Programs) with a Switch Operation

‹ Graphical data
Graphical data starting from the Data Storage Start Address is as follows.
+0 Graphic Type
+1 Display Attributes
+2 Color Attributes
+3
Coordinate Data
+n (Max +7)

• Graphic Type (+0)


You can display a line, rectangle, circle, or dot. The following corresponding values will be
stored.
Line: 1; Rectangle: 2; Circle: 3; Dot: 5.

• Display Attributes (+1)


The display attributes, such as Line Type and Pattern, differ depending on each graphic.
When drawing a dot, the display attributes (+1) data are ignored.

To draw a line
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Line Type Arrow

Arrow

Stored Value Arrow

0 None

1 One Side

2 Both Ends

Line Type
Stored Value Line Type

0 (Solid Line: 1-dot thickness)

1 (Dashed Line: 1-dot thickness)

2 (Chain Line: 1-dot thickness)

3 (Two-Dot Chain Line: 1-dot thickness)

4 (Solid Line: 2-dot thickness)

5 (Dashed Line: 2-dot thickness)

6 (Chain Line: 2-dot thickness)

7 (Two-Dot Chain Line: 2-dot thickness)

8 (Solid Line: 3-dot thickness)

9 (Solid Line: 5-dot thickness)

GP-Pro EX Reference Manual A-69


Executing Multiple Actions (Programs) with a Switch Operation

To draw a rectangle
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Mode
Line Type/Fill Pattern

Mode

Stored Value Mode

0 Draw Line

1 Fill

Line type/Fill pattern

Stored Value Line Type Fill Pattern

0 (Solid Line: 1-dot thickness)

1 (Dashed Line: 1-dot thickness)

2 (Chain Line: 1-dot thickness)

3 (Two-Dot Chain Line: 1-dot thickness)

8 (Solid Line: 3-dot thickness)

9 (Solid Line: 5-dot thickness)

GP-Pro EX Reference Manual A-70


Executing Multiple Actions (Programs) with a Switch Operation

To draw a circle
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Mode
Line Type/Fill Pattern

Mode

Stored Value Mode

0 Draw Line

1 Fill

Line Type/Fill Pattern


Stored Value Line Type Fill Pattern

0 (Solid Line: 1-dot thickness)

1 (Dashed Line: 1-dot thickness)

2 (Chain Line: 1-dot thickness)

3 (Two-Dot Chain Line: 1-dot thickness)

8 (Solid Line: 3-dot thickness)

9 (Solid Line: 5-dot thickness)

• Color Attributes (+2)


You can set the display color, background color, and individual blink settings. As shown
below, display color data is stored in bit 0 to 7, and background color data are stored in bit 8
to 15.
15 8 7 0
Background color's attributes Display color's attributes

The format used to store attribute data differs depending on the following display colors and
whether or not blink is set.
• 256-Color Display (No Blink)
• 64-Color Display + 3-Speed Blink
• Monochrome 16 Levels + 3-Speed Blink

For 256-Color Display (No Blink)

GP-Pro EX Reference Manual A-71


Executing Multiple Actions (Programs) with a Switch Operation

As shown below, the display color's color code is stored in bit 0 to 7, and the background color's
color code is stored in bit 8 to 15. For information on color codes, refer to the following table.
Background Color Display Color

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Color Code Color Code

GP-Pro EX Reference Manual A-72


Executing Multiple Actions (Programs) with a Switch Operation

Color Code Table


Color Code RGB Code Color Code RGB Code Color Code RGB Code Color Code RGB Code
0 00h 64 6Eh 128 CCh 192 A2h
1 01h 65 7Eh 129 DCh 193 B2h
2 02h 66 7Fh 130 DDh 194 B3h
3 03h 67 6Fh 131 CDh 195 A3h
4 04h 68 2Eh 132 C4h 196 AAh
5 05h 69 3Eh 133 D4h 197 BAh
6 06h 70 3Fh 134 D5h 198 BBh
7 07h 71 2Fh 135 C5h 199 ABh
8 10h 72 82h 136 8Ch 200 E2h
9 11h 73 92h 137 9Ch 201 F2h
10 20h 74 93h 138 9Dh 202 F3h
11 30h 75 83h 139 8Dh 203 E3h
12 31h 76 8Ah 140 84h 204 EAh
13 21h 77 9Ah 141 94h 205 FAh
14 22h 78 9Bh 142 95h 206 FBh
15 32h 79 8Bh 143 85h 207 EBh
16 33h 80 C2h 144 28h 208 EEh
17 23h 81 D2h 145 38h 209 FEh
18 12h 82 D3h 146 39h 210 FFh
19 13h 83 C3h 147 29h 211 EFh
20 40h 84 CAh 148 68h 212 E6h
21 50h 85 DAh 149 78h 213 F6h
22 51h 86 DBh 150 79h 214 F7h
23 41h 87 CBh 151 69h 215 E7h
24 60h 88 CEh 152 6Ch 216 AEh
25 70h 89 DEh 153 7Ch 217 BEh
26 71h 90 DFh 154 7Dh 218 BFh
27 61h 91 CFh 155 6Dh 219 AFh
28 62h 92 C6h 156 2Ch 220 A6h
29 72h 93 D6h 157 3Ch 221 B6h
30 73h 94 D7h 158 3Dh 222 B7h
31 63h 95 C7h 159 2Dh 223 A7h
32 42h 96 8Eh 160 A0h 224 2Ah
33 52h 97 9Eh 161 B0h 225 3Ah
34 53h 98 9Fh 162 B1h 226 3Bh
35 43h 99 8Fh 163 A1h 227 2Bh
36 44h 100 86h 164 A8h 228 6Ah
37 54h 101 96h 165 B8h 229 7Ah
38 55h 102 97h 166 B9h 230 7Bh
39 45h 103 87h 167 A9h 231 6Bh
40 64h 104 0Ah 168 E0h 232 08h
41 74h 105 1Ah 169 F0h 233 18h
42 75h 106 1Bh 170 F1h 234 19h
43 65h 107 0Bh 171 E1h 235 09h
44 66h 108 4Ah 172 E8h 236 48h
45 76h 109 5Ah 173 F8h 237 58h
46 77h 110 5Bh 174 F9h 238 59h
47 67h 111 4Bh 175 E9h 239 49h
48 46h 112 4Eh 176 ECh 240 4Ch
49 56h 113 5Eh 177 FCh 241 5Ch
50 57h 114 5Fh 178 FDh 242 5Dh
51 47h 115 4Fh 179 EDh 243 4Dh
52 14h 116 0Eh 180 E4h 244 0Ch
53 15h 117 1Eh 181 F4h 245 1Ch
54 24h 118 1Fh 182 F5h 246 1Dh
55 34h 119 0Fh 183 E5h 247 0Dh
56 35h 120 C0h 184 ACh 248 90h
57 25h 121 D0h 185 BCh 249 91h
58 26h 122 D1h 186 BDh 250 81h
59 36h 123 C1h 187 ADh 251 88h
60 37h 124 C8h 188 A4h 252 98h
61 27h 125 D8h 189 B4h 253 99h
62 16h 126 D9h 190 B5h 254 89h
63 17h 127 C9h 191 A5h 255 80h

GP-Pro EX Reference Manual A-73


Executing Multiple Actions (Programs) with a Switch Operation

For 64-Color Display + 3-Speed Blink


As shown below, the display color's color code is stored in bit 0 to 5, and the background color's
color code is stored in bit 8 to 13. For information on color codes, refer to the Color Code Table.
Background Color Display Color

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Color Code Color Code


Blink Blink

Blink Storage Values

Bit 7 Bit 6 Blink State


Bit 15 Bit 14
0 0 None
0 1 High Speed Blink
1 0 Medium Speed Blink
1 1 Low Speed Blink

For Monochrome 16 Levels + 3-Speed Blink


As shown below, the display color's color code is stored in bit 0 to 3, and the background color's
color code is stored in bit 8 to 11. For information on color codes, refer to the following table.
Background Color Display Color

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Color Code Color Code


Blink Blink

Color Code Table

Color Code 0 1 2 3 ... 12 13 14 15


Display Color
White
Black

Blink Storage Values

Bit 7 Bit 6 Blink State


Bit 15 Bit 14
0 0 None
0 1 High Speed Blink
1 0 Medium Speed Blink
1 1 Low Speed Blink

GP-Pro EX Reference Manual A-74


Executing Multiple Actions (Programs) with a Switch Operation

• Coordinate Data (+3)


For coordinate data, the top-left of the screen is coordinate (0, 0). For graphics in a window,
the top-left of the screen registered as a window is coordinate (0, 0).
To draw a line

+3 Start Point X Coordinate End Point (X, Y)


+4 Start Point Y Coordinate
+5 End Point X Coordinate
+6 End Point Y Coordinate
Start Point (X, Y)

To draw a rectangle
Start Point (X, Y)
+3 Start Point X Coordinate
+4 Start Point Y Coordinate
+5 End Point X Coordinate
+6 End Point Y Coordinate End Point (X, Y)

To draw a circle

+3 Center X Coordinate
+4 Center Y Coordinate Radius
+5 Radius Center
Radius: 0 is invalid (X, Y)

To draw a dot

+3 Center X Coordinate (X, Y)


+4 Center Y Coordinate

GP-Pro EX Reference Manual A-75


Executing Multiple Actions (Programs) with a Switch Operation

„ Special Action
Starts the application or exits WinGP depending on the change of state of the trigger bit
address when using WinGP.

Setting Description
Bit ON Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from OFF → ON.
Trigger Settings

Bit OFF Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from ON → OFF.
Bit Change Executes the action designated in [Mode] when the [Trigger Bit
Address] changes from ON to OFF or from OFF to ON.
Trigger Bit Address Designate the bit address that triggers the action set in [Mode].
Continued

GP-Pro EX Reference Manual A-76


Executing Multiple Actions (Programs) with a Switch Operation

Setting Description
Special Action Select the action from [Start Application] or [Exit WinGP].
Start Application Specify the start up application on the WinGP.
EXE path Input the absolute path of the executable file (.EXE) you want to
start. You can input up to 255 characters.
Parameter Input the argument of the executable file on start up. You can input
up to 255 characters.
Prevent multiple If the specified application has already started, enable so
instances application will not execute again if trigger conditions re-occur
while the application is running.
Action

• If the specified application has already started, nothing will


execute regardless of the settings you make.
Window Set [Window Title] to watch multiple instances. You can input up
Title to 63 characters.
When a window the same as [Window Title] is found, the
specified application will not start. If there are no settings in
[Window Title], multiple starts are allowed.
Find whole When a window exactly the same as the title specified in [Window
window Title] is found, the specified application will not start.
titles only
Exit WinGP Display a confirmation dialog when exiting WinGP.
Confirm

• When you select a series other than the IPC Series, the trigger action in
[Special Action] will not operate regardless of your settings. To execute
[Special Action], you need to start WinGP.

GP-Pro EX Reference Manual A-77


Executing Multiple Actions (Programs) with a Switch Operation

A.3.2 Triggered Action Restrictions

• For the trigger bit's ON/OFF, leave an interval longer than the communication cycle
time*1 or display scan time*2, whichever is longer.
• After you turn ON the Trigger Bit Address, a screen change occurs before the drawing or
erasing is complete. The Trigger Bit Address is turned OFF.
• The only graphic data can be stored are Bin data. BCD data cannot be used.
• If the graphical data to be stored are outside the range, they will become the default value
of zero.
• For coordinate data, the top-left of the screen is coordinate (0, 0). For graphics in a
window, the top-left of the screen registered as a window is coordinate (0, 0).
• For the color attribute's background color, if you designate "Black + Medium Speed
Blink" or color code 255, the background color will become transparent.
• The following shows actions which occur immediately after a screen is changed or power
is turned ON.
Triggered Condition Direct Access Method Memory Link Method
Bit Value Bit Value Bit Value Bit Value
"0" "1" "0" "1"
0 → 1(Bit Rising) X O X X
1 → 0(Bit Falling) O X X X
0 ↔ 1(Bit Changing O O X X
State)

O: The operation is performed immediately after the screen is changed, or the power is
turned ON.
X: The operation is not performed immediately after the screen is changed, or the power
is turned ON.

*1 The communication cycle time is the time it takes to request and take in data from the
GP unit to the PLC. It is stored in the internal device LS2037 as binary data. The unit
is milliseconds (ms). There is an error of +/−10 ms.
*2 Display Scan Time is the time it takes to display/calculate one screen. It is stored in
the internal device LS2036 as binary data. The unit is milliseconds (ms). There is an
error of +/−10 ms.

GP-Pro EX Reference Manual A-78


Drawing Using Other Languages

A.4 Drawing Using Other Languages

A.4.1 Details
This section provides an example of how to create a switch label using a Chinese
(Simplified) stroke font.
In addition to Chinese (Simplified), GP-Pro EX supports languages that use the ASCII
character set, Chinese (traditional), Korean, Cyrillic, and Thai.

GP-Pro EX Reference Manual A-79


Drawing Using Other Languages

A.4.2 Setup Procedure


• This procedure shows you how to use Chinese (Simplified) to enter a label
for the screen change switch described in Section 12.2, "Changing the
Display Screen by Touch". See that section for how to specify the settings for
screen change switches.
)"11.2 Changing Screens by Touch" (page 11-4)
• For more information on stroke fonts, see Section, "Stroke Font, Standard
Font".
)"6.2 Defining Stroke Font and Standard Font" (page 6-3)
Follow the steps below to draw a switch label in another language.

Follow the procedures below in the order that they are listed:

1. Add Chinese (Simplified) to the Windows  multilanguage display/input function settings.


• " ‹ When using Windows‚XP" (page A-81)
• " ‹ When using Windows‚ 2000" (page A-83)

2." „ Adding Chinese (Simplified) Stroke Font to Project" (page A-86)

3." „ Inputting Chinese (Simplified) into Change Screen Switch Label" (page A-88)

GP-Pro EX Reference Manual A-80


Drawing Using Other Languages

„ Adding Chinese (Simplified) to Windows Multilanguage Display


‹ When using WindowsXP
1 From the Windows XP [Control Panel], point to [Date, Time, Language, and Regional
Options], and open the [Regional and Language Options] dialog box.

2 On the [Languages] tab, in [Text services and input languages], click the [Details] button.

3 The [Text Services and Input Languages] dialog box appears. On the [Settings] tab, click
[Add...].

4 In the [Add Input language] dialog box, select [Chinese (PRC)] in [Input language]. In
[Keyboard layout/IME], select [Chinese (Simplified) - Microsoft Pinyin IME 3.0]. Click
[OK].

GP-Pro EX Reference Manual A-81


Drawing Using Other Languages

5 Click [Apply], then [OK] to close the dialog box.

6 Click [OK] to close the [Regional and Language Options] dialog box.

GP-Pro EX Reference Manual A-82


Drawing Using Other Languages

‹ When using Windows 2000


1 In the [Control Panel], open the [Regional Options] dialog box.
2 On the [General] tab, under [Language settings for the system], select [Simplified Chinese].
Click [OK].

• The dialog box below appears when adding Simplified Chinese for the first
time. Insert the Windows2000 CD-ROM into the PC and click [OK].

3 When the data has finished being copied from the CD, you must restart the PC.
The dialog box below appears. Click [Yes].

4 After restarting, from the [Control Panel] select [Keyboard] to open the [Keyboard
Properties] dialog box.

GP-Pro EX Reference Manual A-83


Drawing Using Other Languages

5 From the [Input Locales] tab, in the [Installed input locales] area, click [Add...].

6 The [Add Input Locale] dialog box appears. Select the language to add from the [Input
locale] drop-down menu and click [OK].
In this example, use [Chinese (PRC)] for [Input locale] and [Chinese (Simplified) - MS-
PinYin98] for [Keyboard layout/IME].

GP-Pro EX Reference Manual A-84


Drawing Using Other Languages

7 Click [Apply] and click [OK] to close the window.

GP-Pro EX Reference Manual A-85


Drawing Using Other Languages

„ Adding Chinese (Simplified) Stroke Font to Project


• Please refer to the following for details about Stroke Font.
) "6.2 Defining Stroke Font and Standard Font" (page 6-3)
1 From the [System Settings] menu, select [Font Settings]. The following dialog box appears.

• If the [System Settings] tab is not displayed, from the [View (V)] menu, point
to [Work Space (W)] and select [System Settings (S)].

2 From [Font Used in Project], select the [Chinese (Simplified) Stroke Font] check box.

3 The following message appears.

GP-Pro EX Reference Manual A-86


Drawing Using Other Languages

Click [Yes]. You can confirm that the User Screen Area is also used.

The font data is


also saved in the
area where the
screen data is
saved.

Click [No]. The font addition is canceled.

4 Clear the check box for the fonts you are not using. This allows more free space in the Font
Area.

• Japanese Standard Font, English Standard Font, and English Stroke Font are
all fixed. You cannot remove these fonts.

GP-Pro EX Reference Manual A-87


Drawing Using Other Languages

„ Inputting Chinese (Simplified) into Change Screen Switch Label


1 In the task bar click the keyboard input system icon (WindowsXP it's Language), and start
the Chinese (PRC) keyboard input system.
For WindowsXP For Windows2000

2 Launch GP-Pro EX. Double-click on the Change Screen Switch created with the process in
"11.2 Changing Screens by Touch" (page 11-4). Select the [Label] tab, set the [Font Type],
[Display Language], and enter the label using pin yin.

• When you select the [Stroke Font] in [Font Type] or change the [Display
Language], the following dialog box may appear. This confirms to add the
font type since a switch has been set before adding the font.

To add the font, click [Yes].


If you click [Cancel], adding the font is canceled. The entered text cannot be
properly displayed on the GP.

GP-Pro EX Reference Manual A-88


Drawing Using Other Languages

3 Click [OK] to close the [Switch/Lamp] dialog box. The Change Screen Switch's label
changes to Chinese (Simplified).

GP-Pro EX Reference Manual A-89


Transferring Data Between a CF Card and a USB Memory Device

A.5 Transferring Data Between a CF Card and a USB Memory


Device

A.5.1 Detail
You can use the Special Data Display [File Manager] on the GP screen to copy or move data
from the CF Card to USB memory, or from USB memory to the CF card.
This function can be used for securing available space by transferring data not immediately
required in the CF Card to a USB memory device when the CF Card has limited available
space, or for making a backup of the data.

CF USB
MOVIE <DIR>
step1.SDX
step2.SDX
step3.SDX

CF Card
CUT COPY PAS DIPS ALL DEL
TE

File Manager

USB memory

GP-Pro EX Reference Manual A-90


Transferring Data Between a CF Card and a USB Memory Device

A.5.2 Setup Procedure


• Please refer to the settings guide for details.
) "24.10.2 [Special Data Display] Settings Guide „ File Manager" (page 24-88)
By using Special Data Display [File Manager], the data in the CF card inserted in the GP can
be moved to the USB memory device.

CF USB
MOVIE <DIR>
step1.SDX
step2.SDX
step3.SDX

CF Card
CUT COPY PAS DIPS ALL DEL
TE

File Manager

USB memory

1 From the [Parts (P)] menu, point to [Special Data Display (P)] and select [File Manager (M)].
Place File Manager on the screen.

GP-Pro EX Reference Manual A-91


Transferring Data Between a CF Card and a USB Memory Device

2 Double-click the Special Data Display [File Manager]. The following dialog box appears.

3 From [Action Mode], point to [File Operation], select [Target Data], and select [CF <-->USB
Storage].

4 Click the [Switch] tab. Select the [Display] check box. In [Select Shape], select the shape of
the switch, specify the label and color and then click [OK].

• You can check the approximate available space of the CF card and the USB
memory device by specifying the settings for [CF Card Available Space] and
[External Memory Available Space]. To access these options, from System
Settings, point to [Display Unit] and select [Mode].

GP-Pro EX Reference Manual A-92


Transferring Data Between a CF Card and a USB Memory Device

A.5.3 Operating Procedure


1 Insert the CF card and the USB memory into the GP.
2 Touch the File Manager Display Switch to call up [File Manager] on the GP screen.
File Manager
CF USB
MOVIE <DIR>
step1.SDX
step2.SDX
step3.SDX

CUT COPY PAS DISP ALL DEL


TE

Beep
Touch the display switch again to close the [File Manager].
The contents of the CF card are shown on the left and the contents of the USB memory are shown on the right.
Closes the File Manager.

CF USB < DIR > is displayed to the right


MOVIE <DIR> of the folder name.
step1.SDX
Display Area step2.SDX Returns to the previous folder.
step3.SDX
Previous Page

Next Page
Information
Area
CUT COPY PAS DISP ALL DEL
TE

[DEL] : Deletes the selected file or folder.


[ALL] : Selects all the files in the displayed folder.
[DISP] : Displays the files in the selected folder. If you select a CSV file, it will be
displayed in [CSV Display]. If you select a JPEG file, it will be displayed in
[Picture Display].
[PASTE] : Pastes the file that was cut or copied.
[COPY] : Copies the selected file or folder.
[CUT] : Cuts the selected file or folder.

• Display Area
Displays the file name up to 19 characters. If the file name contains more than 19 characters, the file
name appears as "..." after the first 19 characters. (For example "ZR12345678901234...")
Displays the folder name up to 14 characters. If the folder name contains more than 14 characters,
the folder name appears as "..." after the first 14 characters. (For example
"ABCDEFGHIJK...<DIR>"). The full-path name can contain up to 100 characters (folder name +
file name).

GP-Pro EX Reference Manual A-93


Transferring Data Between a CF Card and a USB Memory Device

• Information Area
Selecting a folder displays the folder creation date. Selecting a file displays the creation date and
size of the file.

• Do not connect more than 1 USB storage. If you do so, the USB devices may
not be recognized properly.
• If a CF Card or USB memory device is not inserted, File Manager will still
be displayed, however nothing appears in the Display Area. Immediately
after a CF Card or USB memory is inserted in the GP, first the root folder is
displayed.

3 To open a file in a child folder, touch the folder name then touch [DISP]. This displays the
files in the folder.

CF USB
MOVIE <DIR>
step1.SDX
step2.SDX
step3.SDX

CUT COPY PAS DISP ALL DEL


TE

• Touch the selected file again to clear the selection.


• Multiple files can be selected in the displayed area. If you switch the page,
the selection is cleared. Up to seven folders or files can be displayed on one
page.
• The files is displayed in the order in which they were created. It is not
possible to sort the files by file name or time stamp.

4 Once you have selected the files, touch [CUT]. The [USB] is highlighted.
5 Touch [PASTE]. The message, "If a file already exists, it will be overwritten." is displayed.
Touch [OK] to paste the file to [USB].

CF USB
MOVIE <DIR> step1.SDX
step2.SDX
step3.SDX

CUT COPY PAS DISP ALL DEL


TE

The file was transferred from the CF Card to the USB memory device.
• While accessing a CF Card or a USB memory device, do not reset the
display unit or remove the CF Card or USB memory device.

GP-Pro EX Reference Manual A-94


Transferring Data Between a CF Card and a USB Memory Device

• You cannot change the size of the File Manager Window.


• A file cannot be copied or transferred in the following cases: CF Card → CF
Card, and USB device → USB device.
• If you switch pages while [CUT] or [COPY] is selected, the selection is not
cleared.
• The CSV file open in the [CSV Display] cannot be cut or deleted.
• If you switch the screen while a file is being copied, cut, or deleted, the
process continues while the screen is switched.
• An error occurs if you transfer a file to a folder that is not displayed correctly
in File Manager or if you try to perform a file operation in that folder.

Moving a File Manager


The screen position of Special Data Display [File Manager] can be changed.

1 Touch the top of the [File Manager]


CF USB 1
MOVIE
step1.SDX
<DIR> Display.
step2.SDX
step3.SDX
2 Touch the desired position on the screen
where you want the display to move.
CUT COPY PAS DISP ALL DEL
TE

3 The [File Manager] Display moves to


display the specified position.

• If the [File Manager] Display runs off


the screen at a specified position, the
coordinates adjust so that the entire
window is displayed.

CF USB 2 3
MOVIE <DIR>
step1.SDX
step2.SDX
step3.SDX

CUT COPY PAS DISP ALL DEL


TE
CF USB
MOVIE <DIR>
step1.SDX
step2.SDX
step3.SDX

CUT COPY PAS DISP ALL DEL


TE

GP-Pro EX Reference Manual A-95


System Variables

A.6 System Variables

The predefined variables in GP-Pro EX are called system variables.


System variables are either logic system variables (#L system variables) or HMI system
variables (#H system variables). System variables indicate the state of the GP and affect
operation. Similar to symbol variables, system variables have variable types (integer/bit) and
operate in the same way as symbol variables.
• You cannot add or delete system variables.
• The names of system variables is the same regardless of [Variable Format]
and [Address Format].
• #L system variables are retentive variables. Even if you turn off the GP, their
current values are saved. #H system variables are volatile variables. You can
confirm if a variable is retentive or volatile in the Properties window's [Detail
Settings].

GP-Pro EX Reference Manual A-96


System Variables

A.6.1 Logic System Variables (#L System Variables)


For models that support logic, you can use the Logic System Variables when in the [System
Settings] workspace, [Logic Programs] screen, the [Logic Program] option is enabled.
For models that support logic programs, see the following.
) "1.3 List of Supported Functions by Device" (page 1-5)
„ Bit Logic System Variables
Variable Name Description Read Write
Ladder Reference Flag
#L_RunMonitorA ON in RUN O X
#L_AlwaysON Always ON O X
Calculation Flag
#L_CalcZero Zero flag O X
#L_CalcCarry Carry flag O X
System Settings
#L_ScanModeSW Mode setting of the logic O X
#L_AutoRunSW Mode setting at startup O X
#L_InOutSW Setting of external input and output O X
enable
#L_FaultStopSW Setting for continuous error switching O X
#L_SyncRunSW Synchronous Communication with O X
External Devices/PLCs
Operation Information
#L_UnlatchClear Zero clear for the clear area O O
#L_LatchClear Zero clear for the keep area O O
Sampling
#L_Clock100ms 100 ms clock pulse O X
#L_Clock1sec 1 second clock pulse O X
#L_Clock1min 1 minute clock pulse O X
Address Refresh
#L_RefreshEnable Address Refresh Enable Flag O X
Error information
#L_BatteryErr Battery malfunction O X
#L_Error Logic error O X
#L_StopPending Logic stop wait flag O X
#L_Fault Error handler stop flag O O
#L_IOFault I/O error flag O X

GP-Pro EX Reference Manual A-97


System Variables

‹ #L_RunMonitorA (ON in RUN)


ON when the logic program is running, and OFF when the logic program is not running.
Because this is a read-only area, writing is not possible. If you write in this area, the
operation may fail.
‹ #L_AlwaysON (Normally ON)
On at the beginning of a logic scan, regardless of whether or not the logic program is used.
Because this is a read-only area, if OFF is written, in the program below the #L_AlwaysON
bit is turned OFF.
ON is rewritten at the beginning of the next scan. Do not perform a write operation for
#L_AlwaysON.
‹ #L_CalcZero (Zero flag)
#L_CalcZero turns ON only when the operation result is zero (0).
Every time an operation is executed, the contents of #L_CalcZero are rewritten.
After the execution of an operation, #L_CalcZero rewrites OFF or ON. Because this is a
read-only area, writing is not possible.
‹ #L_CalcCarry (Carry flag)
Depending on the result after the execution of an operation, #L_CalcCarry turns ON only
when a carry occurs.
Every time an operation is executed, the contents of #L_CalcCarry are rewritten.
After the execution of an operation, #L_CalcCarry rewrites OFF or ON. Because this is a
read-only area, writing is not possible.
‹ #L_ScanModeSW (Mode setting of the logic)
You can check the operation mode of the logic program currently being executed.
When #L_ScanModeSW is ON, operation is in CPU Scan Percentage mode. When
#L_ScanModeSW is OFF, operation is in Fixed Scan Time mode. Because this is a read-only
area, writing is not possible.
‹ #L_AutoRunSW (Mode setting at startup)
When the action setting at power ON is set to RUN, #L_AutoRunSW turns ON.
When the action setting at power ON is set to STOP, #L_AutoRunSW turns OFF.
Because this is a read-only area, writing is not possible.
‹ #L_InOutSW (Setting of external input and output enable)
If the external input and output settings are enabled in the action settings at power ON,
#L_InOutSW turns ON.
If the external input and output settings are disabled in the action settings at power ON,
#L_InOutSW turns OFF.
Because this is a read-only area, writing is not possible.
‹ #L_FaultStopSW (Continuous error switch setting)
When [Minor Errors] is set to STOP, operation stops when a minor error occurs and
#L_FaultStopSW turns ON.
When the [Minor Errors] is set to RUN, operation continues when a minor error occurs and
#L_FaultStopSW turns OFF.
Because this is a read-only area, writing is not possible.

GP-Pro EX Reference Manual A-98


System Variables

‹ #L_SyncRunSW (Synchronous Communication with External Devices/PLCs)


If communication with external devices/PLCs is synchronized in the action settings when
powering ON, #L_SyncRunSW turns ON.
If communication with external devices/PLCs is not synchronized in the action settings when
powering ON, #L_SyncRunSW turns OFF.
Because this is a read-only area, writing is not possible.
‹ #L_UnLatchClear (Zero clear of the clear area)
By turning ON #L_UnLatchClear, zero clear of the clear area is requested. (An up edge is
detected and the area is cleared to zero.)
This variable operates only when the logic program is in STOP.
The setting value and time base of the timer and the setting value of the counter cannot be
cleared to zero. The system variables and addresses of the connection devices cannot be
cleared to zero.
Reading and writing is possible in this area.
‹ #L_LatchClear (Zero clear of a keep area)
By turning ON #L_LatchClear, zero clear of a keep area is requested. (An up edge is detected
and the area is cleared to zero.)
This bit operates only when the logic program is in STOP.
The setting value and time base of the timer and the setting value of the counter cannot be
cleared to zero. The system variables and addresses of the connection devices cannot be
cleared to zero.
Reading and writing is possible in this area.
‹ #L_Clock100ms (100 ms clock pulse)
The variable turns ON and OFF repeatedly with a frequency of 50ms OFF time and 50ms ON
time.
Because this is a read-only area, writing is not possible.
When the Scan Time is longer than the clock pulse, ON and OFF are not repeated. Confirm
and set the Scan Time.
‹ #L_Clock1sec (1 second clock pulse)
The variable turns ON and OFF repeatedly with a frequency of 500ms OFF time and 500ms
ON time.
Because this is a read-only area, writing is not possible.
When the Scan Time is longer than the clock pulse, ON and OFF are not repeated. Confirm
and set the Scan Time.
‹ #L_Clock1min (1 minute clock pulse)
The variable turns ON and OFF repeatedly, with a frequency of 30s OFF time and 30s ON
time.
Because this is a read-only area, writing is not possible.
When the Scan Time is longer than the clock pulse, ON and OFF are not repeated. Confirm
and set the Scan Time.

GP-Pro EX Reference Manual A-99


System Variables

‹ #L_RefreshEnable
When the address refresh is enabled, the bit is turned ON.
Enable Condition:
(1) First PLC communication scan is complete. (When more than one PLC is connected, all
first communication scans are complete.)
(2) PLC communication is normal.
Disable Condition:
(1) First PLC communication scan is not complete. (When more than one PLC is connected,
all first communication scans are not complete.)
(2) PLC communication failure is occurred. (When you connect more than one, more than
one of PLC communication failures are occurred.)
‹ #L_BatteryErr (Battery malfunction)
Turns on when battery malfunction information is detected on the GP.
If this bit turns ON, the #L_BatteryErr bit does not turn OFF until the GP is reset or the
power turns OFF.
Because this is a read-only area, writing is not possible.
‹ #L_Error (Logic error)
Turns ON if an error occurs in the logic operation.
If this bit turns ON, the #L_Error bit does not turn OFF until the GP display unit is reset or
the power turns OFF.
Because this is a read-only area, writing is not possible.
‹ #L_StopPending (Logic stop wait flag)
The #L_StopPending bit remains ON Until #L_StopScans reaches 0.
Until #L_StopScans is zero, the #L_StopPending bit remains ON for the duration of the scans
until the logic stops.
Because this is a read-only area, writing is not possible.
‹ #L_Fault (Error handler stop flag)
This flag is referenced at the end of the "error handler" subroutine to determine whether to
stop or continue the execution of the logic program.
The execution of the logic program on the GP will stop at the end of ERRH routine if the
#L_Fault bit is ON.
Reading and writing is possible in this area.
#L_Fault is not used without an "error handler" subroutine.
‹ #L_IOFault (I/O error flag)
#L_IOFault turns ON if an I/O error occurs on the I/O driver.
The flag remains until another error occurs or until the GP is reset.

GP-Pro EX Reference Manual A-100


System Variables

„ Integer Logic System Variables


Variable Name Description Read Write
Scan Time
#L_ScanTime The time from the start of step 0 of the O X
current scan to the start of step 0 of the
next scan
#L_AvgScanTime The average of 64 #L_ScanTime cycles O X
#L_MinScanTime The minimum scan time for O X
#L_ScanTime
#L_MaxScanTime The maximum scan time for O X
#L_ScanTime
#L_ScanCount Number of scans O X
#L_LogicTime The time from the start of step 0 to the O X
END instruction
#L_AvgLogicTime The average of 64 #L_LogicTime O X
cycles
#L_MinLogicTime The minimum logic time for O X
#L_LogicTime
#L_MaxLogicTime The maximum logic time for O X
#L_LogicTime
Status
#L_Status Logic status information O X
#L_Platform Code number of the GP platform O X
#L_Version Logic firmware version O X
#L_EditCount Number of online edits O X
#L_IOInfo I/O driver information O X
#L_LogicInfo Logic Information O X
*1
#L_IOMasterDrv∗ Master I/O Driver Extended Depends Depends
Information on the I/O on the I/O
Driver Driver
System Settings
#L_ConstantScan Logic startup frequency O X
#L_PercentScan Logic operation rate O X
#L_WatchdogTime Logic WDT value O X
#L_AddressRefreshTime Connection device address refresh time O X
Sampling
#L_Time Time information O X
Continued

GP-Pro EX Reference Manual A-101


System Variables

Variable Name Description Read Write


Operation Information
#L_Command Changes the logic operation mode O O
#L_LogicMonitor The logic monitor startup switch O O
#L_LogicMonStep Indicates the steps for displaying the O O
logic monitor
I/O Status
#L_IOStatus Status of the built-in I/O driver O X
Error information
#L_CalcErrCode Storage area for calculation error codes O X
#L_FaultStep Storage area for the step Number of the O X
calculation error
#L_FaultLogicScreen Storage area for the logic screen number O X
of the calculation error
Logic Stop
#L_StopScans Number of logic stop scans O O
Keep Variable Backup
#L_BackupCmd Backup Command O O
Continued

GP-Pro EX Reference Manual A-102


System Variables

Variable Name Description Read Write


*2*3
LT Common
#L_ExIOFirmVer Extended I/O port firmware version O X
#L_ExIOSpCtrl Special I/O control O O
#L_ExIOSpOut Special output O X
#L_ExIOSpParmChg Change Special I/O parameter O O
#L_ExIOSpParmErr Special I/O parameter error O X
#L_ExIOAccelPlsTbl Acceleration/deceleration pulse table O O
#L_ExIOCntInCtrl Counter input control O O
#L_ExIOCntInExtCtrl Counter input external control O O
#L_PWM∗_WHZ Output frequency of Ch∗ O O
#L_PWM∗_DTY Ch∗ ON duty value O O
#L_PLS∗_LHZ Output frequency of Ch∗ O O
#L_PLS∗_NUM Ch∗ output pulse O O
#L_PLS∗_SHZ Ch∗ initial output frequency O O
#L_PLS∗_ACC Ch∗ acceleration and deceleration time O O
#L_PLS∗_CPC Ch∗ current pulse output O O
#L_HSC∗_MOD Ch∗ count system O O
#L_HSC∗_PLV Ch∗ preload value O O
#L_HSC∗_PSV Ch∗ pre-strobe value O X
#L_HSC∗_ONP Ch∗ ON preset value O O
#L_HSC∗_OFP Ch∗ OFF preset value O O
#L_HSC∗_HCV Ch∗ current counter value O X
*1 [∗] = 0 to 255.
*2 For details, see "30.5 Controlling External I/O in LT" (page 30-24).”
*3 [∗] = Channel Number (1 to 4).

GP-Pro EX Reference Manual A-103


System Variables

‹ #L_ScanTime (The time from the start of step 0 of the current scan to the start
of step 0 of the next scan)
Stores the scan time of the previous scan just before the execution of the next scan.
Scan time is the time required for I/O reading, execution of the logic program, I/O output,
and display processing.
The unit is 0.1 ms.

Read Run

Scan
Mode

Display Write
Processing

‹ #L_AvgScanTime (The average of 64 #L_ScanTime cycles)


Stores the average scan time.
Average scan time is the average time required for I/O reading, execution of the logic
program, I/O writing, and display processing in one scan.
The variable is updated with each completion of 64 scan cycles.
The unit is 0.1 ms.

Read Run

Scan
Mode

Display Write
Processing

‹ #L_MinScanTime (The minimum scan time of #L_ScanTime)


Stores the minimum scan time of the logic program.
When #L_ScanTime is updated, the minimum scan check is performed and the variable is
updated with every scan.
The unit is 0.1 ms.

GP-Pro EX Reference Manual A-104


System Variables

‹ #L_MaxScanTime (The maximum scan time of #L_ScanTime)


Stores the maximum scan time of the logic program.
When #L_ScanTime is updated, the maximum scan check is performed and the variable is
updated with every scan.
The unit is 0.1 ms.
‹ #L_ScanCount (Number of scans)
Upon completion of each logic program scan, the counter increments the variable.
The value in #L_ScanCount ranges from 0 to 16#FFFFFFFF. When the maximum value
(16#FFFFFFFF) is exceeded, the variable is incremented again from 0.
You can confirm whether the logic program is being executed by checking #L_ScanCount.
‹ #L_LogicTime (The time from the start of step 0 to the END instruction)
Stores the logic time of the previous scan execution.
Logic time is the time required for I/O reading, execution of the logic program, and I/O
writing in one scan. The display processing time is not included. The unit is 0.1 ms.
‹ #L_AvgLogicTime (The average of 64 #L_ScanTime cycles)
Stores the average logic time.
Average logic time is the average time required for I/O reading, execution of the logic
program, and I/O writing in one scan.
The variable is updated with each completion of 64 scan cycles. The unit is 0.1 ms.

Read Run

Scan
Mode

Display Write
Processing

‹ #L_MinLogicTime (The minimum logic time of #L_LogicTime)


Stores the minimum logic time of the logic program.
When updating #L_LogicTime, the minimum logic time is checked and the variable is
updated with every scan.
The unit is 0.1 ms.

GP-Pro EX Reference Manual A-105


System Variables

‹ #L_MaxLogicTime (The maximum logic time of #L_LogicTime)


Stores the maximum logic time of the logic program.
When updating #L_LogicTime, the maximum logic time is checked and the variable is
updated with every scan.
The unit is 0.1 ms.
‹ #L_Status (The logic status information)
Displays the state of the GP. Bytes and bits are defined as follows:
Byte 0: Displays the current error state on the GP.
Byte 1: Displays the error state history. This byte resets to 0 only when the GP is reset.
Byte 2: Displays the current operation state.
Byte 3: Reserved area.

Byte 3 Byte 2 Byte 1 Byte 0


Reserved Current state Error state history Current error state

Byte 0 (latch)
Total errors Scan error Reserved Read Error Overflow I/O error Minor errors Major errors

Bit 7 6 5 4 3 2 1 0

Byte 1 (latch)
Total errors Scan error Reserved Read Error Overflow I/O error Minor errors Major errors

Bit 15 14 13 12 11 10 9 8

Byte 2 (latch)
Reserved Awaiting Standby Stopped Pause Force change I/O available In RUN
Communication Enable/
Disable
Bit 23 22 21 20 19 18 17 16

Byte 3 (latch)
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved

Bit 31 30 29 28 27 26 25 24

GP-Pro EX Reference Manual A-106


System Variables

‹ #L_Platform (The GP platform code number)


Stores the GP platform code number.
H
Stores the GP platform code number.
L

Format Code
AGP-3302B 0x00020404
AGP-3301 0x00020504
AGP-3300 0x00020514
AGP-3400 0x00020614
AGP-3500 0x00020714
AGP-3600 0x00020814
AGP-3450 0x00020634
AGP-3550 0x00020734
AGP-3650 0x00020834
AGP-3750 0x00020934
AGP-3510 0x00020A14
AGP-3560 0x00020A34
LT-3201A 0x00030204
LT-3301 0x00030504
LT-3300 0x00030514

‹ #L_Version (The logic firmware version)


Stores the logic firmware version.
‹ #L_EditCount (The number of online edits)
Stores the number of online edits. (This variable cannot be executed while writing in RUN.)
‹ #L_IOInfo (I/O driver information)
Stores information on the I/O driver.
‹ #L_LogicInfo (Logic Information)
Reserved by the System.
‹ #L_IOMasterDrv∗ (Master I/O Driver Extended Information)
[∗] = 0 to 255.
Stores Master I/O Driver Extended Information.
) "30.7.6 Using I/O Driver Instructions" (page 30-180)

GP-Pro EX Reference Manual A-107


System Variables

‹ #L_ConstantScan (The logic startup frequency)


Sets the scan time in units of 10 ms in Fixed Scan Time mode.
When logic time is constant, the display processing time can be extended by increasing the
value of #L_ConstantScan. By decreasing the value, the display processing time can be
reduced. This is because most of the processing time is used by logic functions.
This variable can be set by default or specified in Monitor mode during logic operation.

) "28.13.3 Logic To adjust Scan Time ‹ Fixed Scan Time" (page 28-132)

‹ #L_PercentScan (The logic operation rate)


Sets the usage rate of the logic function compared to the total logic processing time in CPU
Scan Percentage mode. Specify this variable in units of 10 ms.
This variable can be set by default or specified in Monitor mode during logic operation.

) "28.13.3 Logic To adjust Scan Time ‹ CPU Scan Percentage" (page 28-133)

‹ #L_WatchdogTime (WDT value of the logic)


Sets the WDT value (watch dog timer) in ms.
When #L_ScanTime exceeds this value, a major error occurs.
This variable can be set by default or specified in Monitor mode during logic operation.
‹ #L_AddressRefreshTime (The connection device address refresh time)
Stores the address refresh time for the connection device addresses used in the logic program.
The unit is 100 µs.

) "28.13.3 Logic To adjust Scan Time „ Address Refresh" (page 28-135)

‹ #L_Time (Time information)


Indicates the "time" set in the logic in 4-digit BCD.
The time is stored in the following state:
For example 11:19 PM

Hour (tens) Hour (ones) Minute (tens) Minute (ones)


Value 2 3 1 9

GP-Pro EX Reference Manual A-108


System Variables

‹ #L_Command (Changes the logic operation mode)


This is an integer variable used as a logic control command.
After the logic acknowledges #L_Command, the bits other than bit 7 are reset to 0. If
multiple bits are ON, the least significant bit is prioritized.

Byte 3 Byte 2 Byte 1 Byte 0


Reserved Reserved Reserved

byte 0
I/O Reserved Pause Continue 1 scan Reset Run Stop
Enable/
disable
Bit 7 6 5 4 3 2 1 0

‹ #L_LogicMonitor (Startup switch of the logic monitor)


Starts up and operates the logic program monitor function on the GP.
The following shows each operation.

Byte 3 Byte 2 Byte 1 Byte 0

Byte 0
Reserved Reserved Reserved Reserved Reserved Reserved Logic Address
monitor monitor
startup: 1 startup: 1
Bit 7 6 5 4 3 2 1 0

Byte 1
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved

Bit 15 14 13 12 11 10 9 8

Byte 2: 2
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved

Bit 23 22 21 20 19 18 17 16

Byte 3: 3
Running: 1 Reserved Reserved Reserved Reserved Reserved Reserved Reserved
Stopped: 0

Bit 31 30 29 28 27 26 25 24

‹ #L_LogicMonStep (Indicates the steps for displaying the logic monitor)


Stores the starting rung number to be displayed when the logic monitor is running.
If the logic monitor is not running, write the rung number in #L_LogicMonStep to start up
the logic monitor with the specified rung number as the first rung when the logic monitor
trigger bit (bit 0 of #L_LogicMonitor) turns OFF → ON.
This variable is used when the logic monitor function is enabled.

GP-Pro EX Reference Manual A-109


System Variables

‹ #L_IOStatus (Status of the built-in I/O driver)


Stores the error codes for the built-in I/O driver.
The error codes can be confirmed by checking the error messages displayed in #L_IOStatus
and on the screen.
The detailed error code classifications are defined as follows:
Error Code Description
001 - 049 Project data error
050 - 099 Hardware error
100 - 199 Application error
200 - 254 General error

The stored error codes are as shown below.


H Model Number Storage Area
L Critical 0 0 0 0 0 Settings Verifications Error Code Storage
Failure Area

Verifications
When the I/O attribute of the specified unit is the same as that of the actually connected unit,
but the points differ, "1" is set.
Settings
When the I/O attribute of the specified unit is different from that of the actually connected
unit, "1" is set.
Critical Failure
When a failure that stops the logic such as an auxiliary board ID conflict or project data
failure is found, "1" is set.

Error Messages

Error Code Classification Description


RGEA∗∗∗ Built-in I/O driver

∗∗∗ indicates the error codes for each driver (0 - 255).


For details, see the error information of each I/O Driver.

GP-Pro EX Reference Manual A-110


System Variables

‹ #L_CalcErrCode
The calculation error state can be identified in #L_CalcErrCode. The area is cleared to 0
when reset.
H
Stores the calculation error codes.
L

Error Code List

Error Code Description


0000 - No error.
0001 Minor error An overflow occurs when converting a real number to
(continue) an→integer, or a 64-bit real number to a →32-bit real
number.
0002 Major error (stop) A reference exceeded the area of the array.
0003 A reference exceeded the range of an integer.
0004 Stack overflow.
0005 An invalid instruction code is used.
0006 An error occurred during error handler processing.
0007 The scan time exceeded the WDT.
0008 Major error (stop) The critical failure occurred on the I/O driver.
0009 Software error
0010 An invalid operand is used.
0011 - Reserved
0012 Minor error BCD/BIN conversion error
0013
(continue)
ENCO/DECO conversion error
0014 - Reserved
0015 Minor error The SRAM data (user program) is read from
(continue) a destroyed FROM.
0016 The number of shift bits exceeded the range.
6701 • The CJ and CALL instructions have no jump destination.
• The index has been modified so that the address is outside of
the P0 to P4095 range where a label is not defined.
• P63 was executed in a CALL instruction.
P63 cannot be used in a CALL instruction to branch to END.
6702 The CALL instruction has a nesting level of 6 or higher.
6703 The interrupt has a nesting level of 3 or higher.
Continued

GP-Pro EX Reference Manual A-111


System Variables

Error Code Description


6704 Continuous error The FOR and NEXT instructions have a nesting level of 6 or
higher.
6705 The application instruction operand is outside the target
device.
6706 The device Number and data value of the application
instruction operand have exceeded the range.
6707 The final register was accessed without specifying the
parameter settings.
6708 FROM/TO instruction error
6709 Other (invalid branch)
6710 Parameter incompatibility
6730 The sampling time (Ts) is out of range (Ts <= 0).
6731
6732 Continuous error The input filter constant (α) is out of range (α < 0 or 100 <=
α).
6733 The proportion gain (Kp) is out of range (Kp < 0).
6734 The integral calculus time (Ti) is out of range (Ti < 0).
6735 The differential gain (Kd) is out of range (Kd < 0 or 201 <=
Kd).
6736 The differential calculus time (Td) is out of range (Td < 0).
6740 Sampling time (Ts) <= sampling frequency
6742 The change in measurement value is out of range (∆PV < -32768 or 32767 < ∆PV).
6743 The deviation is out of range (EV < -32768 or 32767 < EV).
6744 The integral calculated value is out of range (other than -32768 to 32767).
6745 The differential value is out of range because the differential gain (Kd) is out of
range.
6746 The differential calculated value is out of range (other than -32768 to 32767).
6747 The PID calculation result is out of range (-32768 to 32767).
6748 The PID output upper limit setting value < Output lower limit setting value
6749 PID input/output change alarm settings error.
6750 << Step response method >>
Auto-tuning result failure
6751 << Step response method >>
Incompatibility of auto-tuning direction
Continued

GP-Pro EX Reference Manual A-112


System Variables

Error Code Description


6752 << Step response method >>
Auto-tuning failure
6753 << Limit cycle method >>
Incompatibility of auto-tuning output settings values
[ULV (upper limit) <= LLV (lower limit)]
6754 << Limit cycle method >>
Incompatibility of auto-tuning PV threshold (hysteresis) settings values (SHpv < 0)
6755 << Limit cycle method >>
Auto-tuning transition state error
(The data in the device managing the transition state was not successfully rewritten.)
6756 << Limit cycle method >>
Result error caused by exceeding the auto-tuning measurement time.
(τ on > τ, τ on < τ, τ < 0)
6757 << Limit cycle method >>
The proportion gain of the auto-tuning result is out of range.
(Kp = other than 0 to 32767)
6758 << Limit cycle method >>
The integral calculus time of the auto-tuning result is out of range.
(Ti = other than 0 to 32767)
6759 << Limit cycle method >>
The differential calculus time of the auto-tuning result is out of range.
(Td = other than 0 to 32767)
6760 The sum of ABS data from the server is inconsistent.
6762 The port specified by the inverter communication instruction is already being used.
6765 Application instruction usage time error
6770 Writing to the FLASH memory board failed
6771 The FLASH memory board is disconnected.
6772 The write error that occurs when writing to the FLASH memory board is prohibited.

‹ #L_FaultStep
Stores the program step Number when abnormal processing occurs.
‹ #L_FaultLogicScreen
Stores the logic screen Number when abnormal processing occurs.
INIT : 1
MAIN : 2
ERRH : 3
SUB-01: 32 to SUB-32: 63

GP-Pro EX Reference Manual A-113


System Variables

‹ #L_StopScans
Enter a numeric value to execute scanning for the specified number of times. The logic scan
continues until the setting reaches 0. Meanwhile, the #L_StopPending bit is ON. When this
bit turns OFF, the logic stops.
‹ #L_BackupCmd
When you backup the data of the variables specified to be kept, it triggers backup and restore.
0 Bit: When backup is executing, the lower 16 bits are turned OFF automatically.
1 Bit: When restore in executing, the lower 16 bits are turned OFF automatically.
8 Bit: When backup is complete (normal completion), it is turned ON. When an error occurs, it is
turned OFF.
9 Bit: When restore is complete (normal completion), it is turned ON. When an error occurs, it is
turned OFF.
The other bits are reserved.

H 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
L 0 0 0 0 Keep Variable 0 0 0 0 Keep Variable
Backup Backup Request
Completion Bit Bit

Keep Variable Backup Request Bit


0 0 Restore Execution Backup Execution

Bit OFF ON
Backup Execution None Request (Backup of variable)
Restore Execution None Request (Restore of variable)
After execution, it is turned OFF automatically.
When the request bits are simultaneously turned ON, restore is executed after the backup.

Keep Variable Backup Completion Bit


0 0 Restore Backup Completion
Completion

Bit OFF ON
Backup Completion None Completion Notice
Restore Completion None Completion Notice

GP-Pro EX Reference Manual A-114


System Variables

• You cannot backup in offline mode or transfer mode.


• You can only restore the same project that you backed up. If it is a different
project, restore will not execute.
• When you execute backup and restore sequentially, the screen display speed
may slow, or the online logic monitor may discontinue. Also, depending on
the project, communication may be affected. When you allocate
#L_BackupCmd to the switch parts, specify the [Bit Set] and do not touch
continuously. Do not backup or restore on the D-Script using
#L_BackupCmd.
• You can back up only when Logic is stopped.

GP-Pro EX Reference Manual A-115


System Variables

A.6.2 HMI system variables (#H system variables)


„ Bit type
Variable Name Description Read Write
#H_Alarm_Trigger The alarm is triggered (regardless of O O
the particulars that occurred)
#H_Control_Buzzer Buzzer Output O O
#H_Control_BuzzerEnable Enable the Buzzer Output O O
#H_Control_HardcopyPrint Print Control for Screen Hard Copy O O
#H_Control_JpegCaptureEnable Enable Screen Capture O O
#H_Control_JpegCaptureTrigger Control of Screen Capture O O
#H_Control_PrintCancel Control of Print Cancel O O
#H_Control_USBDetachTrigger *1
USB Removal Control O O
#H_DeviceMonitor Device Monitor Start O O
#H_LadderMonitor *2
Ladder Monitor Start (None cache O O
start)
#H_LadderMonitorCache Ladder Monitor Start *2 (Enable O O
cache start)
#H_Status_DispOnOff Display ON/OFF O X
#H_Status_JpegCaptureCompletion Screen Capture Status (Completed) O X
#H_Status_JpegCaptureProcess Screen Capture Status (Processing O X
in Progress)
#H_Status_Print Printer Status O X
#H_Status_USBUsing *1
USB status O X

GP-Pro EX Reference Manual A-116


System Variables

*1 WinGP does not operate. #H_Status_USBUsing is in the OFF state at all times. When
#H_Control_USBDetachTrigger is turned ON, nothing operates.
The operation to insert and remove a USB storage device is as follows.
When you connect a USB storage device to the display, #H_Status_USBUsing is ON.
When you remove a USB storage device, turn ON #H_Control_USBDetachTrigger.
When the USB storage device can be removed, #H_Status_USBUsing turns OFF
automatically.
When #H_Control_USBDetachTrigger is ON while writing the data from the USB
storage device, #H_Status_USBUsing does not turn OFF until data writing is complete.
Turns OFF automatically
Turn ON
ON OFF
#H_Control_USBDetachTrigger

OFF ON OFF
#H_Status_USBUsing

Accessing Access End


USB File Access
Turns ON automatically when a USB Automatically turns OFF
storage device is inserted. (Removing USB storage is possible)

When #H_Status_USBUsing is OFF, you cannot access the USB storage device. Remove the
USB storage device and insert again.
Do not transfer to offline mode, transfer data to the display, or insert and remove the USB
storage device while writing data to the USB storage. This may result in an incomplete file
or damage to the USB storage device.
*2 To start the ladder monitor, refer to the "PLC Ladder Monitor Operation Manual" provided
with your PLC's ladder monitor product (sold separately).

GP-Pro EX Reference Manual A-117


System Variables

„ Integer type
Variable Name Description Read Write
#H_BackLightColor 2-color Backlight Switching*1 O O
#H_ChangeScreenNo Change To Screen Number O O
#H_CounterbySecond 1-Second Binary Counter O X
#H_CurrentDay Day Data (Current Value) O X
#H_CurrentDayofTheWeek Day (Current Value)*2 O X
#H_CurrentHour Hour Data (Current Value) O X
#H_CurrentMinute Minute Data (Current Value) O X
#H_CurrentMonth Month Data (Current Value) O X
#H_CurrentScreenNo Current Screen Number O X
#H_CurrentSecond Second Data (Current Value) O X
#H_CurrentYear Year Data (Current Value) O X
#H_DispScanCounter Display Scan Counter O X
#H_DispScanTime Display Scan Time O X
#H_GlobalWindowControl Window Control O O
#H_GlobalWindowNo Window Screens O O
#H_GlobalWindowPosX Window Display Position (X) O O
#H_GlobalWindowPosY Window Display Position (Y) O O
#H_JpegCaptureFileNo Screen Capture File O O
#H_LoginUserID User ID for current user O X
#H_SetDay Day Data (Setting Value) O O
#H_SetHour Hour Data (Setting Value) O O
#H_SetMinute Minute Data (Setting Value) O O
#H_SetMonth Month Data (Setting Value) O O
#H_SetSecond Second Data (Setting Value) O O
#H_SetYear Year Data (Setting Value) O O
*1 It operates only on models that support 2-color backlight switching.
"1.3 List of Supported Functions by Device" (page 1-5)
When you write "0", it is amber and "1" is red. Do not set other colors.
*2 The current value for the day is stored in LS9310. Please refer to [ A.1.4.2 System Data
Area] Clock Data (Current) in (page A-18) for the stored value.

GP-Pro EX Reference Manual A-118

You might also like