21.11 Built-In Function (Instruction) / Conditional Expressions

Instructions

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

Trigger

Continuous Action

×

Timer

×

When Bit turns ON

×

Bit is ON

×

When Bit turns OFF

×

Bit is OFF

×

On Bit Change

×

When Condition is True

×

While Condition is True

×

When Condition is not Satisfied

×

While Condition is False

×

Draw

Call Screen

×

Dot

Line

Circle

Rectangle

Operator

Addition (+)

Subtraction (-)

Modulus (%)

Multiplication (*)

Division (/)

Assignment (=)

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 (==)

Memory Operation

Copy Memory
memcpy ( )

Initialize Memory
memset ( )

Copy Memory (Variable Specification)
_memcpy_EX ( )

Initialize Memory (Variable Specification)
_memset_EX ( )

Offset Address

Shift Memory

Memory Ring

Search Memory

Compare Memory

Bit Operation

Shift Left (<<)

Shift Right (>>)

Bitwise AND (&)

Bitwise OR (|)

Bitwise XOR (^)

1's Complement

Set Bit
set ( )

Clear Bit
clear ( )

Toggle Bit
toggle ( )

Conditional Expressions

if - endif

if - else - endif

loop - endloop, break

loop - endloop, return

×

Address

Bit Address

Internal Device

Word Address

Internal Device

Temporary Working Address

*1

Constant

Dec, Hex, Oct

SIO Function

Receive
([p:SIO])

Send
([p:SIO])

Extended Receive
_IO_READ_EX ( )

×

Extended Send
_IO_WRITE_EX ( )

×

Standby Receive Function
_IO_READ_WAIT ( )

×

Control
[c:EXT_SIO_CTRL]

Status
[s:EXT_SIO_STAT]

Received Data Size
[r:EXT_SIO_RCV]

Standby Function
wait ( )

×

Text Operation

Text

×

Data Buffer
databuf0, databuf1, databuf2, databuf3

×

Set String
_strset ( )

×

Data Buffer To Internal Device
_dlcopy ( )

×

From Internal Device To Data Buffer
_ldcopy ( )

×

Hexadecimal Text-To-Integer Conversion
_hexasc2bin ( )

×

Decimal Text-To-Integer Conversion
_decasc2bin ( )

×

Hexadecimal Number to String Conversion
_bin2hexasc ( )

×

Decimal Number to String Conversion
_bin2decasc ( )

×

String Length
_strlen ( )

×

String Concatenate
_strcat ( )

×

Partial String
_strmid ( )

×

Text Operation Error Status
[e:STR_ERR_STAT]

×

Function

Call

return

×

CF File Operation

Read CF File

Output File List
_CF_dir ( )

Read File
_CF_read ( )

Read CSV File
_CF_read_csv ( )

Write File
_CF_write ( )

Delete File
_CF_delete ( )

Change File Name
_CF_rename ( )

USB file operation

Read USB File

Output File List
_USB_dir ( )

Read File
_USB_read ( )

Read CSV File
_USB_read_csv ( )

Write File
_USB_write ( )

Delete File
_USB_delete ( )

Change File Name
_USB_rename ( )

Printer Operation

Send
IO_WRITE ([p:PRN])

Debug

Debug Function
_debug ( )

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