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

Backup Area

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*3

Call Screen

b_call( )

-

Circle

dsp_circle( )

Dot

dsp_dot( )

Line

dsp_line( )

Rectangle

dsp_rectangle( )

Memory Operation

Offset Address

Compare Memory

_memcmp ( )

Copy Memory
memcpy( )

Copy Memory (Variable Specification)
_memcpy_EX( )

Copy Memory (String Mode)

memcpystr( )

-

Memory Ring

memring ( )

Search Memory

_memsearch ( )

Initialize Memory
memset( )

Initialize Memory (Variable Specification)
_memset_EX( )

Initialize Memory (String Mode)

memsetstr( )

-

Shift Memory

_memshift

SIO Port Operation

Label Settings

Receive
([p:SIO])

Send
([p:SIO])

Extended Receive
IO_READ_EX( )

-

Extended Send
IO_WRITE_EX( )

-

Standby Reception
IO_READ_WAIT( )

-

Standby
_wait( )

-

Bit Operation

Bit Settings
set( )

Clear Bit
clear( )

Toggle Bit
toggle( )

Date/Time Operations

Write to TIME type

SetTIME( )

-

Write to DATE type

SetDATE( )

-

Write to TIME_OF_DAY type

SetTOD( )

-

Write to DATE_AND_TIME type

SetDT( )

-

File Operation

File Copy

_FileCopy

-

Text Operation

Decimal Number to String Conversion
_bin2decasc( )

-

Hexadecimal Number to String Conversion
_bin2hexasc( )

-

Decimal Text-To-Integer Conversion
_decasc2bin( )

-

Data Buffer to Internal Device
_dlcopy( )

-

Hexadecimal Text-To-Integer Conversion
_hexasc2bin( )

-

Internal Device To Data Buffer
_ldcopy( )

-

String Concatenate
_strcat( )

-

String Length
_strlen( )

-

Partial Text
_strmid( )

-

Set String
_strset(databuf*, )

-

Label Settings
[e:STR_ERR_STAT]

-

CF File Operation,
SD File Operation,
SD/CFast File Operation*2

Delete File
_CF_delete( ), _SD_delete( )

Output File List
_CF_dir( ), _SD_dir( )

Read File
_CF_read(), _SD_read(), _USB_read()

Read CSV File
_CF_read_csv( ), _SD_read_csv( )

Change File Name
_CF_rename( ), _SD_rename( )

Write File
_CF_write( ), _SD_write( )

Label Settings

USB file operation

Delete File
_USB_delete( )

Output File List
_USB_dir( )

Read File
_USB_read( )

Read CSV File
_USB_read_csv( )

Change File Name
_USB_rename( )

Write File
_USB_write( )

Label Settings

Printer Operation

Label Settings

Send
IO_WRITE([p:PRN])

Others

Debug
_debug( )

Application Trigger

Exec_Process( )

Exit WinGP

Exit_WinGP( )

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

*2 When performing SD/CFast file operations, you can also use SD file operation functions to perform file operations on CFast files.

*3 When using draw functions in Extended Scripts, create scripts that use "_wait" functions or "if" expressions.

 

Command

Items

Command/Function

D-script/
Global D-Script

Extended Script

Conditional Expressions

if - endif

if - else - endif

loop - endloop

break

return

-

Comparison

Logical AND

Logical OR

Negation (NOT)

Less than (<)

Less than or equal to (<=)

Not equal to (<>)

Greater than (>)

Greater than or equal to (>=)

Equal (==)

Operator

Addition (+)

Subtraction (-)

Modulus (%)

Multiplication (*)

Division (/)

Assignment (=)

Shift Left (<<)

Shift Right (>>)

Bit Operator Logical AND (&)

Bit Operator Logical OR (|)

Bit Operator Exclusive OR (^)

Bit Operator 1's Complement (~)