22.11 Built-In Function (Instruction) / Conditional Expressions

Function

Items

Command/Function

D-Script/
Global D-Script

Extended Script

Data Type

Bin, BCD

Bin only

Bit Length

16 bit, 32 bit

Signed +/-

Enabled/Disabled

Address

Bit Address

Internal Device

Word Address

Internal Device

Temporary Address

*1

Trigger

Continuous Action

-

Timer

-

When Bit turns ON

-

While Bit is ON

-

When Bit turns OFF

-

While Bit is OFF

-

On Bit Change

-

When Condition becomes True

-

While Condition is True

-

When Condition becomes False

-

While Condition is False

-

Draw

22.11.1.1 Call Screen

-

22.11.1.2 Circle

22.11.1.3 Dot

22.11.1.4 Line

22.11.1.5 Rectangle

Memory Operation

22.11.2.1 Offset Address

22.11.2.2 Compare Memory

_memcmp ( )

22.11.2.3 Copy Memory
memcpy ( )

22.11.2.4 Copy Memory (Variable Specification)
_memcpy_EX ( )

22.11.2.5 Copy Memory (String Mode)

_memcpystr( )

-

22.11.2.6 Memory Ring

memring ( )

22.11.2.7 Search Memory

_memsearch ( )

22.11.2.8 Initialize Memory
memset ( )

22.11.2.9 Initialize Memory (Variable Specification)
_memset_EX ( )

22.11.2.10 Initialize Memory (String Mode)

memsetstr( )

-

22.11.2.11 Shift Memory

_memshift

SIO Function

22.11.3.1 Label Settings

22.11.3.2 Receive
([p:SIO])

22.11.3.3 Send
([p:SIO])

22.11.3.4 Extended Receive
_IO_READ_EX ( )

-

22.11.3.5 Extended Send
_IO_WRITE_EX ( )

-

22.11.3.6 Standby Reception
_IO_READ_WAIT( )

-

22.11.3.7 Standby
wait( )

-

Bit Operation

22.11.4.1 Set Bit
set( )

22.11.4.2 Clear Bit
clear ( )

22.11.4.3 Toggle Bit
toggle ( )

Date/Time Operations

22.11.5.1 Write to TIME type

SetTIME( )

-

22.11.5.2 Write to DATE type

SetDATE( )

-

22.11.5.3 Write to TIME_OF_DAY type

SetTOD( )

-

22.11.5.4 Write to DATE_AND_TIME type

SetDT( )

-

File Operation

22.11.6.1 File Copy

_FileCopy

-

Text Operation

22.11.9.1 Decimal Number to String Conversion
_bin2decasc ( )

-

22.11.9.2 Hexadecimal Number to String Conversion
_bin2hexasc ( )

-

22.11.9.3 Decimal Text-To-Integer Conversion
_decasc2bin( )

-

22.11.9.4 Data Buffer to Internal Device
_dlcopy ( )

-

22.11.9.5 Hexadecimal Text-To-Integer Conversion
_hexasc2bin( )

-

22.11.9.6 From Internal Device To Data Buffer
_ldcopy ( )

-

22.11.9.7 String Concatenate
_strcat( )

-

22.11.9.8 String Length
_strlen( )

-

22.11.9.9 Partial Text
_strmid( )

-

22.11.9.10 Text Settings
_strset(databuf*, )

-

22.11.9.11 Label Settings
[e:STR_ERR_STAT]

-

CF File Operation/SD File Operation

22.11.7.1 Delete File
_CF_delete ( ), _SD_delete( )

22.11.7.2 Output File List
_CF_dir ( ), _SD_dir( )

22.11.7.3 Read File
_CF_read ( ), _SD_read( )

22.11.7.4 Read CSV File
_CF_read_csv ( ), _SD_read_csv( )

22.11.7.5 Change File Name
_CF_rename ( ), _SD_rename( )

22.11.7.6 Write File
_CF_write ( ), _SD_write( )

22.11.7.7 Label Settings

USB file operation

22.11.7.1 Delete File
_USB_delete ( )

22.11.7.2 Output File List
_USB_dir ( )

22.11.7.3 Read File
_USB_read ( )

22.11.7.4 Read CSV File
_USB_read_csv ( )

22.11.7.5 Change File Name
_USB_rename ( )

22.11.7.6 Write File
_USB_write ( )

22.11.7.7 Label Settings

Printer Operation

22.11.8.1 Label Settings

22.11.8.2 Send
IO_WRITE ([p:PRN])

Others

22.11.10.1 Debug Function
_debug ( )

22.11.10.2 Application Trigger

Exec_Process( )

22.11.10.3 Exit WinGP

Exit_WinGP( )

*1 The temporary address exists separate from the D-script and global D-script.

Command

Items

Command/Function

D-Script/
Global D-Script

Extended Script

Conditional Expressions

22.11.11.1 if - endif

22.11.11.2 if - else - endif

22.11.11.3 loop - endloop

22.11.11.4 break

22.11.11.5 return

-

Comparison

22.11.12.1 Logical AND

22.11.12.2 Logical OR

22.11.12.3 Negation (NOT)

22.11.12.4 Less than (<)

22.11.12.5 Less than or equal to (<=)

22.11.12.6 Not equal to (<>)

22.11.12.7 Greater than (>)

22.11.12.8 Greater than or equal to (>=)

22.11.12.9 Equal to (==)

Operator

22.11.13.1 Addition (+)

22.11.13.2 Subtraction (-)

22.11.13.3 Modulus (%)

22.11.13.4 Multiplication (*)

22.11.13.5 Division (/)

22.11.13.6 Assignment (=)

22.11.13.7 Shift Left (<<)

22.11.13.8 Shift Right (>>)

22.11.13.9 Bit Operator Logical AND (&)

22.11.13.10 Bit Operator Logical OR (|)

22.11.13.11 Bit Operator Exclusive OR (^)

22.11.13.12 Bit Operator 1's Complement (~)