T
ABLE
OF
C
ONTENTS
Preface-11 FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
DTIM (100-ms Dual Timer).........................................................................................................................20-1
DTMH (10-ms Dual Timer)..........................................................................................................................20-1
DTMS (1-ms Dual Timer)............................................................................................................................20-1
TTIM (Teaching Timer) ..............................................................................................................................20-3
CHAPTER
21: Trigonometric Function Instructions
RAD (Degree to Radian) .............................................................................................................................21-1
DEG (Radian to Degree) .............................................................................................................................21-2
SIN (Sine) .................................................................................................................................................21-3
COS (Cosine) .............................................................................................................................................21-4
TAN (Tangent)...........................................................................................................................................21-5
ASIN (Arc Sine) .........................................................................................................................................21-6
ACOS (Arc Cosine) .....................................................................................................................................21-7
ATAN (Arc Tangent)...................................................................................................................................21-8
CHAPTER
22: Logarithm / Power Instructions
LOGE (Natural Logarithm) ..........................................................................................................................22-1
LOG10 (Common Logarithm) ......................................................................................................................22-2
EXP (Exponent) .........................................................................................................................................22-3
POW (Power).............................................................................................................................................22-4
CHAPTER
23: File Data Processing Instructions
FIFOF (FIFO Format)..................................................................................................................................23-1
FIEX (First-In Execute) ...............................................................................................................................23-3
FOEX (First-Out Execute)............................................................................................................................23-3
NDSRC (N Data Search) .............................................................................................................................23-5
CHAPTER
24: Clock Instructions
TADD (Time Addition) ................................................................................................................................24-1
TSUB (Time Subtraction) ............................................................................................................................24-5
HTOS (HMS to Sec)....................................................................................................................................24-9
STOH (S to HMS) .....................................................................................................................................24-10
HOUR (Hour Meter) .................................................................................................................................24-11
CHAPTER
25: Data Log Instructions
DLOG (Data Log) .......................................................................................................................................25-1
TRACE (Data Trace) .................................................................................................................................25-15
CHAPTER
26: Script
SCRPT (Script)...........................................................................................................................................26-1
Script Function Overview ............................................................................................................................26-3
Script Programming and Management .........................................................................................................26-5
Programming Scripts ................................................................................................................................26-12
Script Programming Examples...................................................................................................................26-19
Important Notes ......................................................................................................................................26-42
About the Priority of the Operator .............................................................................................................26-43
CHAPTER
27: Flow Calculation Instructions
SCALE (Convert Analog Input) ....................................................................................................................27-1
FLWA (Analog Flow Totalizer) .....................................................................................................................27-9
FLWP (Pulse Flow Totalizer)......................................................................................................................27-18
CHAPTER
28: User-defined Macro Instruction
UMACRO (User-defined Macro) ...................................................................................................................28-1
APPENDIX
Execution Times for Instructions .................................................................................................................. A-1
Breakdown of END Processing Time ............................................................................................................. A-5
Differences between User-defined Macros and Subroutines ............................................................................ A-6
Instruction Size (Bytes) ............................................................................................................................... A-8
User Program Execution Error .................................................................................................................... A-12
INDEX