Appendix 4 Insturction List
Appendix 4.1.6 Comparison Function
No.
Description (n can be extended up to 8)
‘Greater than’ comparison
OUT <= (IN1>IN2) & (IN2>IN3) & ... & (INn-1 > INn)
‘Greater than or equal to’ comparison
OUT <= (IN1>=IN2) & (IN2>=IN3) & ... & (INn-1 >= INn)
‘Equal to’ comparison
OUT <= (IN1=IN2) & (IN2=IN3) & ... & (INn-1 = INn)
'Less than or equal to' comparison
OUT <= (IN1<=IN2) & (IN2<=IN3) & ... & (INn-1 <= INn)
‘Less than’ comparison
OUT <= (IN1<IN2) & (IN2<IN3) & ... & (INn-1 < INn)
‘Not equal to’ comparison
OUT <= (IN1<>IN2) & (IN2<>IN3) & ... & (INn-1 <> INn)
Appendix 4.1.7 Character String Function
Appendix 4.1.8 Date and Time of Day Function
Find a length of a character string
Take a left side of a string (size of L) and output it
Take a right side of a string (size of L) and output it
Take a middle side of a string (size of L from the P-th
character)
Concatenate the input character string in order
Insert the second string after the P-th character of the first
string
Delete a string (size of L from the P-th character)
Replace a size of L from the P-th character of the first string by
the second string
Find a starting point of the first string which has a same
pattern of the second string.
Add time (Time/time of day/date and time addition)
2 SUB_TIME Subtract time (Time/time of day/date and time
Calculate time by subtracting date from date
Calculate time by subtracting TOD from TOD
Calculate time by subtracting DT from DT
Concatenate date to make TOD