Contents
Preface
Safety Precautions
Revision
Contents
Section 1 Specications
1-1 Performance Specications ...............................................................................................................1-1
1-2 Function Specications ......................................................................................................................1-3
1-3 Memory ..............................................................................................................................................1-4
1-3-1 Memory map .................................................................................................................................................1-4
1-3-2 Input/output memory area .............................................................................................................................1-6
1-3-3 Standard memory area .................................................................................................................................1-7
1-3-4 Retain memory area......................................................................................................................................1-8
1-3-5 User FB instance memory area ....................................................................................................................1-9
1-3-6 System FB instance memory area ................................................................................................................1-10
1-3-7 System memory area ....................................................................................................................................1-11
1-3-8 SPF original special relay/register area ........................................................................................................1-22
1-4 I/O Address Assignment ..................................................................................................................... 1-40
1-4-1 Rules for assigning I/O addresses ................................................................................................................1-40
1-4-2 Example of address assignment ...................................................................................................................1-40
1-5 Variables .............................................................................................................................................1-42
1-5-1 Overview of variables ....................................................................................................................................1-42
1-5-2 Variable declaration .......................................................................................................................................1-43
1-6 Data Types .........................................................................................................................................1-47
1-6-1 Organization of data types ............................................................................................................................1-47
1-6-2 Basic data types ............................................................................................................................................1-48
1-6-3 Derived data types ........................................................................................................................................1-50
1-7 Tasks ..................................................................................................................................................1-55
1-7-1 Task specications ........................................................................................................................................1-55
1-7-2 Types and operations of tasks ......................................................................................................................1-55
1-7-3 Example of xed cycle task operation ...........................................................................................................1-56
1-7-4 Example of event task operation ...................................................................................................................1-57
1-8 Program Organization Units (POUs) ..................................................................................................1-58
1-9 Calendar Function ..............................................................................................................................1-61
1-9-1 Calendar value range ....................................................................................................................................1-61
1-9-2 Calendar accuracy ........................................................................................................................................1-61
1-9-3 How to monitor and set the calendar from D300win .....................................................................................1-61
1-9-4 How to monitor and set the calendar from an application program...............................................................1-62
1-10 Writing/Reading Data to/from Memory Pack .................................................................................... 1-63
Section 2 Programming Languages
2-1 Types of Programming Languages ....................................................................................................2-1
2-2 LD Language ...................................................................................................................................... 2-2
2-2-1 LD language ..................................................................................................................................................2-2
2-3 FBD Language ...................................................................................................................................2-3
2-3-1 Function summary.........................................................................................................................................2-4
2-3-2 Function block summary ...............................................................................................................................2-28
2-3-3 SPF Original FCTs ........................................................................................................................................2-41
2-4 ST Language ...................................................................................................................................... 2-43
2-4-1 ST operators .................................................................................................................................................2-43