Fuji Electric SPH Series User Manual

Fuji Electric SPH Series User Manual

Micrex-sx series, for sx-programmer expert d300win
Table of Contents

Advertisement

series
USER'S MANUAL
Instructions
(For SX-Programmer Expert [D300win]
Type: NP4H-SEDBV3)
FEH525a

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SPH Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Fuji Electric SPH Series

  • Page 1 series USER’S MANUAL Instructions (For SX-Programmer Expert [D300win] Type: NP4H-SEDBV3) FEH525a...
  • Page 2 Describes the functions and the operations of SX-Programmer FEH257 (D300win) <Reference>, MICREX-SX series Expert (D300win) V3. * In addition to the above manuals, the following Fuji Electric Co.,Ltd.site offers various manuals and technical documents associated with MICREX-SX series. URL http://www.fujielectric.com Notes 1.
  • Page 3 Safety Precautions Be sure to read the "Safety Precautions" thoroughly before using the module. Here, the safety precautions items are classified into "Warning" and "Caution". Warning : Incorrect handling of the device may result in death or serious injury. Caution : Incorrect handling of the device may result in minor injury or physical damage.
  • Page 4  Do not attempt to change system configurations (such as installing or removing expansion block) while the power is ON, otherwise, failure or erratic operation might occur.  Do not attempt to repair the module by yourself, but contact your Fuji Electric agent, otherwise, fire, accident or failure might occur.
  • Page 5 Revision * The manual No. is printed at the bottom right of the cover of this manual. Printed on * Manual No. Revision contents Mar. 2017 FEH525 First edition Dec. 2017 FEH525a • The following sub sections were added. “1-3-8 (9) and (10),” and “1-10.” •...
  • Page 6: Table Of Contents

    Contents Preface Safety Precautions Revision Contents Section 1 Specifications 1-1 Performance Specifications .......................1-1 1-2 Function Specifications ........................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...
  • Page 7 Contents 2-4-2 ST statements ...............................2-44 2-5 IL Language ............................2-45 2-5-1 IL instruction summary ..........................2-45 2-6 SFC Elements ............................2-48 2-6-1 SFC elements ...............................2-49 2-6-2 Step transition ...............................2-57 2-6-3 Automatically generated SFC variables ......................2-60 2-6-4 SFC programming precautions ........................2-61 2-6-5 Continuous operation of SFC ........................2-62 Section 3 System Definition 3-1 System Definition Summary .......................3-1 3-2 System Configuration Definition ......................3-2...
  • Page 8 Section 1 Specifications 1-1 Performance Specifications ..............1-1 1-2 Function Specifications ................1-3 1-3 Memory .....................1-4 1-3-1 Memory map ....................1-4 (1) Main unit with 14/24 points ................1-4 (2) Main unit with 32/40/60 points ...............1-5 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...
  • Page 9 (7) Memories related to general purpose communication %MW1.61793 to %MW1.61838 ..............1-31 (8) Memories related to CPU link %MW1.61858 to %MW1.62399 ....1-33 (9) Memories related to Ethernet %MW1.62400 to %MW1.62463, %MW3.62400 to %MW3.62463 ....1-35 (10) Data write/read parameter for memory pack %MW3.61440 to %MW3.61471 ..............1-39 1-4 I/O Address Assignment ...............1-40 1-4-1 Rules for assigning I/O addresses ...............1-40...
  • Page 10: Performance Specifications

    Section 1 Specifications 1-1 Performance Specifications Specification Item Main unit with 14/24 points Main unit with 32/40/60 points Stored program, Control system Cyclic scanning system (default task), fixed cycle task, event task I/O connection method Direct input/output (local bus) Whole: Scan batch refresh system I/O control system Digital I/O: Task synchronized refresh system 16-bit processor...
  • Page 11 Section 1 Specifications Item Specification No. of structure data type members Max. No. of elements of array data type 16-bit data type: 4096, 32-bit data type: 2048 Default tasks (Cyclic scanning): 1 No. of tasks Fixed cycle tasks + Event tasks: 15 in total 64 / Default task Program instance (No.
  • Page 12: Function Specifications

    Section 1 Specifications 1-2 Function Specifications Item Main unit specification External interrupt input function Max. 16 points (rising edge / falling edge / rising and falling edges) Pulse catch function Max. 36 points (rising edge / falling edge) No. of channels Max.
  • Page 13: Memory

    Section 1 Specifications 1-3 Memory 1-3-1 Memory map (1) Main unit with 14/24 points IEC representation (Input) (Output) Input/output memory (Note 3) (I/Q) 512 words (8192 points) Standard memory %MW1.0 (High-speed) (Note 2) %MW1.4095 4K words Program memory 8K steps Standard memory 0K word %MW3.0...
  • Page 14 Section 1 Specifications (2) Main unit with 32/40/60 points IEC representation (Input) (Output) Input/output memory (Note 3) (I/Q) 512 words (8192 points) Standard memory %MW1.0 (High-speed) (Note 2) %MW1.4095 4K words Program memory %MW1.4096 20K steps Standard memory 4K words %MW1.8191 %MW3.0 Retain memory...
  • Page 15: Input/Output Memory Area

    Section 1 Specifications 1-3-2 Input/output memory area The input/output memory area is a window through which data are exchanged between the main unit (user application) and external devices. This area is used by input devices such as pushbuttons, switches, and sensors which send data to the main unit and by output devices such as relays, solenoids, and indicators which show the results of program executions.
  • Page 16: Standard Memory Area

    Section 1 Specifications 1-3-3 Standard memory area The standard memory area is used for auxiliary relays that are used internally in the PLC. G Key points: 1) In the direct addressing mode, this memory area is specified in he format of %Mo1..(replace o with any of X, W, or D). Usually, since a variable declaration is used to assign memory to an application program, you may neglect addresses in programming.
  • Page 17: Retain Memory Area

    Section 1 Specifications 1-3-4 Retain memory area The retain memory area is used for the auxiliary relays that are used internally in the PLC. G Key points: 1) In the direct addressing mode, this memory area is specified in he format of %Mo3..(replace o with any of X, W, or D). Usually, since a variable declaration is used to assign memory to an application program, you may neglect addresses in programming.
  • Page 18: User Fb Instance Memory Area

    Section 1 Specifications 1-3-5 User FB instance memory area The user FB instance memory area is an instance memory area dedicated to each user FB used internally in the PLC. G Key points: 1) The size of the user FB instance memory area can be changed taking those of other areas into account. For the details of memory size change, see “3-3-2 CPU memory size definition.”...
  • Page 19: System Fb Instance Memory Area

    Section 1 Specifications 1-3-6 System FB instance memory area The user FB memory area is a real memory area dedicated to the system FBs such as timers, counters, and differential instructions that are used internally in the PLC. G Key points: 1) At PLC startup, predefined initialization is performed.
  • Page 20: System Memory Area

    Section 1 Specifications 1-3-7 System memory area The use of the system memory is predetermined; the flags to indicate the operating status and error condition of the MICREX-SX SPF series system are allocated. (1) System memory %MW10.84 %MW10.0 Resource operating status Not used %MW10.1 Resource switch / User ROM status...
  • Page 21: Resource Operating Status %Mw10.0 (Read Only)

    Section 1 Specifications (2) Resource operating status %MW10.0 (Read only) This area indicates the resource (main unit) operating status and operating modes. Address Name Description %MX10.0.0 ON while the main unit is running. %MX10.0.1 Stop ON while the main unit is stopped. %MX10.0.2 Fatal fault ON when a fatal error occurs in the main unit.
  • Page 22: Resource Fatal Fault Factor %Mw10.2 (Read Only)

    Section 1 Specifications (4) Resource fatal fault factor %MW10.2 (Read only) This area indicates the factors of fatal faults. If a fatal fault occurs, the resource (main unit) stops operation. Address Name Description %MX10.2.0 CPU error ON when a fatal fault occurs in the main unit. %MX10.2.1 Not used %MX10.2.2...
  • Page 23: Memory Error Factor %Mw10.8, %Mw10.9 (Read Only)

    Section 1 Specifications Memory error factor %MW10.8, %MW10.9 (Read only) Address Name Description Level %MX10.8.0 System ROM error ON when an error occurs in the system ROM in the main unit. Fatal fault %MX10.8.1 System RAM error ON when an error occurs in the system RAM in the main unit. Fatal fault ON when an error occurs in the ROM in the main unit for storing Fatal fault...
  • Page 24: User Fatal Fault %Mw10.14 To %Mw10.16

    Section 1 Specifications User fatal fault %MW10.14 to %MW10.16 Address Name Description %MX10.14.0 User fatal fault factor 0 A fatal error occurs and the main unit stops when any of these bits is set to ON by an application program. %MX10.14.15 User fatal fault factor 15 %MX10.15.0 User fatal fault factor 16...
  • Page 25: System Definition Error Factor %Mw10.22 To %Mw10.27 (Read Only)

    Section 1 Specifications (11) System definition error factor %MW10.22 to %MW10.27 (Read only) Address Name Description Level %MX10.22.0 Not used ON when the contents of the system definition in the main unit do Fatal fault %MX10.22.1 System definition error not match the actual system configuration. %MX10.22.2 Not used %MX10.22.9...
  • Page 26: Application Program Error Factor %Mw10.38 To %Mw10.41

    Section 1 Specifications (12) Application program error factor %MW10.38 to %MW10.41 Address Name Description Level ON when the execution time of a default task exceeds the Fatal fault %MX10.38.0 Application WDT error preset value of a watchdog timer. ON when an error occurs during user program execution that Fatal fault %MX10.38.1 Application execution error...
  • Page 27: Announce Relay %Mw10.42, %Mw10.43 (Read Only)

    Section 1 Specifications %MX10.41.4 Level 4 task slow-down ON when program execution is deferred and the predefined Nonfatal fault fixed cycle time is not Maintained. %MX10.41.5 Level 10 task slow-down These bits can be set OFF by an application program. %MX10.41.6 Level 11 task slow-down %MX10.41.7...
  • Page 28: Resource Running Information %Mw10.49 (Read Only)

    Section 1 Specifications (14) Resource running information %MW10.49 (Read only) Address Name Description %MX10.49.0 Main unit running ON while the main unit is running. %MX10.49.1 Not used %MX10.49.15 (15) Resource configuration/fault information %MW10.50, %MW10.51 (Read only) The resource configuration/fault information enables an application program to recognize the status of the main unit. Resource configuration Resource fault Resource status...
  • Page 29: Configuration/Configuration Fault Information %Wm10.52 To %Wm10.83 (Read Only)

    Section 1 Specifications (16) Configuration/configuration fault information %WM10.52 to %WM10.83 (Read only) This area indicates the status of the expansion units/boards. Address Name Description %MX10.52.0 Main unit configuration ON when the main unit is in a normal or a nonfatal fault condition. %MX10.52.1 Expansion right side unit 1 configuration When the main unit is powered on, the bit corresponding to the...
  • Page 30: User Rom Status %Mw10.298 (Read Only)

    Section 1 Specifications (17) User ROM status %MW10.298 (Read only) This area indicates the status of the ROM in the SPF main unit. Address Name Description ON when a mismatch occurs between the contents of the RAM and those of the built-in flash memory in the main unit. %MX10.298.0 Built-in flash memory mismatch * Transferring data from the RAM to the built-in flash memory sets this...
  • Page 31: Spf Original Special Relay/Register Area

    Section 1 Specifications 1-3-8 SPF original special relay/register area *Attribute (R: read only, R/W: readable and writable) (1) Built-in calendar data %MW1.61442 to %MW1.61449 Address Name Description Attribute Sets the year data (last two digits of Christian year) of the built-in %MW1.61442 Year data calendar.
  • Page 32: Memories Related To Interrupt %Mw1.61480 To %Mw1.61498

    Section 1 Specifications %MX1.61476.0 Pulse catch falling edge 0 ON for one scan period during the next scan when a falling edge pulse that is inputted to the input terminals X0 to X35 of the main unit is detected. %MX1.61476.15 Pulse catch falling edge 15 %MX1.61477.0 Pulse catch falling edge 16 %MX1.61477.15 Pulse catch falling edge 31...
  • Page 33 Section 1 Specifications 2) External interrupt factor occurrence %MW1.61492 to %MW1.61497 Address Name Description Attribute External interrupt factor ON when an interrupt factor occurs due to detection of a rising %MX1.61492.0 edge of the signal of the input terminals X0 to X15 in the main occurrence for rising edge 0 unit.
  • Page 34: Wm1.61536 To %Wm1.61561, %Wm3.61536 To %Wm3.61577

    Section 1 Specifications (5) Memories related to high-speed counter %WM1.61536 to %WM1.61561, %WM3.61536 to %WM3.61577 These are special relays/registers for the high-speed counter function built in the main unit. 1) High-speed counter control flag %MW1.61536 to %MW1.61538 Address Name Description Attribute High-speed counter CH0 Sets the counting operation of the high-speed counter.
  • Page 35 Section 1 Specifications 3) High-speed counter direction signal %MW3.61536 Address Name Description Attribute High-speed counter CH0 Sets the direction signal (by software) of the high-speed counter. %MX3.61536.0 direction signal (by software) OFF: Forward, OFF: Reverse * This setting is reflected at the end of the scan or at the execution of the high-speed counter flag control instruction (W_HSC_FLG).
  • Page 36: Memories Related To Pulse/Positioning %Mw1.61600 To %Mw1.61769, %Mw3.61600 To %Mw3.61613

    Section 1 Specifications (6) Memories related to pulse/positioning %MW1.61600 to %MW1.61769, %MW3.61600 to %MW3.61613 These are special relays/registers for pulse output and positioning functions built in the main unit. 1) Pulse control flag %MW1.31600 to %MW1.61601 Address Name Description Attribute Sets the pulse output start timing.
  • Page 37 Section 1 Specifications 2) Positioning parameter display %MW1.61610 to %MW1.61769 Address Name Description Attribute %MW1.61610 Maximum frequency (1 to 200,000 Hz) Positioning parameter current value for CH0 %MW1.61611 %MW1.61612 Startup frequency (0 to 200,000 Hz) %MW1.61613 %MW1.61614 Stop speed (0 to 200,000 Hz) %MW1.61615 %MW1.61616 Acceleration time (1 to 30,000 ms)
  • Page 38 Section 1 Specifications Address Name Description Attribute %MW1.61690 Maximum frequency (1 to 200,000 Hz) Positioning parameter current value for CH2 %MW1.61691 %MW1.61692 Startup frequency (0 to 200,000 Hz) %MW1.61693 %MW1.61694 Stop speed (0 to 200,000 Hz) %MW1.61695 %MW1.61696 Acceleration time (1 to 30,000 ms) %MW1.61697 %MW1.61698 Deceleration time (1 to 30,000 ms)
  • Page 39 Section 1 Specifications 3) Positioning current value display %MW3.61600 to %MW3.61609 Address Name Description Attribute %MW3.61600 CH0 pulse output current value Positioning current value (Note 1) %MW3.61601 %MW3.61602 CH1 pulse output current value %MW3.61603 %MW3.61604 CH2 pulse output current value %MW3.61605 %MW3.61606 CH3 pulse output current value...
  • Page 40: Memories Related To General Purpose Communication %Mw1.61793 To %Mw1.61838

    Section 1 Specifications (7) Memories related to general purpose communication %MW1.61793 to %MW1.61838 These are special relays/registers for the general purpose communication function of the communication unit/board. Address Name Description Attribute %MX1.61793.0 Displays the RTS status of PORT 1. Control signal status (PORT 1) %MX1.61793.1 Displays the CTS status of PORT 1.
  • Page 41 Section 1 Specifications Address Name Description Attribute Parity error counter Counted up when a parity error occurs during data reception. %MW1.61811 (PORT 1) Reset to 0 and restarted when the maximum value (FFFF) is exceed. Framing error counter Counted up when a framing error occurs during data reception. %MW1.61812 (PORT 1) Reset to 0 and restarted when the maximum value (FFFF) is exceed.
  • Page 42: Memories Related To Cpu Link %Mw1.61858 To %Mw1.62399

    Section 1 Specifications (8) Memories related to CPU link %MW1.61858 to %MW1.62399 These are special relays/registers for the CPU link function of the communication unit/board. Address Name Description Attribute The bit Nos. 0 to F correspond to the station Nos. 0 to F respectively. Link station configuration %MW1.61858 ON: When connected to the link (during communication)
  • Page 43 Section 1 Specifications %MW1.61888 Send area of station No. 0 Station No. 0 Send area (reception area when viewed from other stations) [32 words] %MW1.61919 %MW1.61920 Send area of station No. 1 Station No. 1 Send area (reception area when viewed from other stations) [32 words] %MW1.61951 %MW1.61952 Send area of station No.
  • Page 44: Memories Related To Ethernet %Mw1.62400 To %Mw1.62463, %Mw3.62400 To %Mw3.62463

    Section 1 Specifications (9) Memories related to Ethernet %MW1.62400 to %MW1.62463, %MW3.62400 to %MW3.62463 These are special registers related to the Ethernet front board and expansion left side unit. 1) Special register non-retain area (for front board) Address Name Description Attribute %MW1.62400 MAC address (L) %MW1.62401 MAC address (M)
  • Page 45 Section 1 Specifications 2) Special register non-retain area (for expansion left side unit) Address Name Description Attribute %MW1.62432 MAC address (L) %MW1.62433 MAC address (M) Indicates the MAC address of the self station. %MW1.62434 MAC address (H) %MW1.62435 Not used %MW1.62436 IP address (L) Indicates the IP address of the self station.
  • Page 46 Section 1 Specifications 3) Special register retain area (for front board) Address Name Description Attribute %MW3.62400 Not used %MW3.62403 %MW3.62404 IP address (L) Indicates the IP address of the self station. %MW3.62405 IP address (H) %MW3.62406 Subnet mask (L) Indicates the subnet mask %MW3.62407 Subnet mask (H) %MW3.62408 Default gateway address (L) Indicates the IP address of the default gateway...
  • Page 47 Section 1 Specifications 4) Special register retain area (for expansion left side unit) Address Name Description Attribute %MW3.62432 Not used %MW3.62435 %MW3.62436 IP address (L) Indicates the IP address of the self station. %MW3.62437 IP address (H) %MW3.62438 Subnet mask (L) Indicates the subnet mask %MW3.62439 Subnet mask (H) %MW3.62440 Default gateway address (L)
  • Page 48: Data Write/Read Parameter For Memory Pack %Mw3.61440 To %Mw3.61471

    Section 1 Specifications (10) Data write/read parameter for memory pack %MW3.61440 to %MW3.61471 These are special registers for writing/reading data to/from the memory pack mounted on the main unit. Address Name Description Attribute %MW3.61440 Data memory type (1: Standard memory, 3: Retain memory) •...
  • Page 49: I/O Address Assignment

    Section 1 Specifications 1-4 I/O Address Assignment 1-4-1 Rules for assigning I/O addresses In MICREX-SX series SPF, follow the rules below to assign I/O addresses. Period Period Bit address Prefix Unit No. Word No. (0 to 15) Input : %IX (bit), %IW (word), %ID (double word) Output : %QX (bit), %QW (word), %QD (double word) (1) Unit No.
  • Page 50 Section 1 Specifications (2) Example of a system in which expansion units are connected to a main unit (60 points) Expansion Expansion Expansion Main unit with 60 points right side unit right side unit right side unit Unit No. 0 Unit No.
  • Page 51: Variables

    Section 1 Specifications 1-5 Variables 1-5-1 Overview of variables MICREX-SX series is a PLC that conforms to IEC61131 (programming language standards of programmable controllers). Its application program realizes control through “program code worksheet” in which the logic operation of a program is described and “variables worksheet”...
  • Page 52: Variable Declaration

    Section 1 Specifications 1-5-2 Variable declaration Variables are declared in tabular format as shown below. Specify the initial value of the variable. Enter the variable name. Specify the type of the variable. Specify the data type. Enter the variable comment. Assign an address to the variable.
  • Page 53: Assigning Variables To Memory

    Section 1 Specifications (2) Assigning variables to memory When variables are declared and complied on the variables worksheet, they are assigned to the CPU internal memory. There are two methods for assigning variables: the method that user specifies arbitrary address of the CPU internal memory (AT specification) and the method that D300win allocates CPU internal memory during compilation.
  • Page 54 Section 1 Specifications <Format for address assignment> I/O address Refer to “1-4” for address assignments. Memory size Symbol Size BOOL (1 bit) Word (16 bits) Double word (32 bits) Prefix Symbol Size Identifies an external input area. Identifies an external output area. Identifies an internal memory area.
  • Page 55: Retaining Variables During Power Failure

    Section 1 Specifications (3) Retaining variables during power failure The variables that are so set as to be retained during power failure (the variables assigned to reMain memory) are reset at cold start (when started up initially from D300win) and retained at warm start (when started up from D300win or when the unit is powered up).
  • Page 56: Data Types

    Section 1 Specifications 1-6 Data Types 1-6-1 Organization of data types The data types that are supported by the MICREX-SX series SPF can be depicted in a tree form as shown in the figure below. ANY is a data type that can hold a basic data type or any of derived data types. elementary ANY_NUM ANY_REAL...
  • Page 57: Basic Data Types

    Section 1 Specifications 1-6-2 Basic data types Basic data types refer to data whose value range and bit count are defined by IEC 61131-3. The MICREX-SX series SPF supports the following basic data types: No. Keyword Data type No. of bits Value range BOOL Boolean 0 or 1...
  • Page 58 Section 1 Specifications 7) TIME (duration) This deals with the set value or current value of timer. Time data in the range from 0 to 4,294,967,295ms can be expressed. Units are d (day), h (hours), m (minutes), s (seconds) and ms (milliseconds). You can combine them in various ways. <Examples>...
  • Page 59: Derived Data Types

    Section 1 Specifications <About BCD data> BCD is not defined as a data type in IEC. BCDs are represented as an encoding option of WORD or DWORD. The MICREX-SX series handles BCD as unsigned data. Data length Value range 16 bits (WORD) 0 to 9999 32 bits (DWORD) 0 to 99999999...
  • Page 60 Section 1 Specifications <Example of using a 2-dimensional array data type> <Sample data type definition> Data type “x_data” is made up of 10 integers that are indexed from 1 to 10 and data type “y_data” is made up of 3 instances of “x_data,”...
  • Page 61: Structured Data Types

    Section 1 Specifications (2) Structured data types A structured data type is made up of two or more similar or different data types. Structured data type is used in situations where data items of different data types are necessary for a single operation. Structured data type may be contained in an array (array of structures) or contain arrays (structures of arrays).
  • Page 62 Section 1 Specifications <Array of structures> Structures may be contained in an array. <Sample data type definition> The example shown below defines an array of 10 machines, indexed from 1 to 10, which are defined in the above example. <Sample variable declaration> The data type of variable “num_hole_pro”...
  • Page 63: Restrictions On Derived Data Types

    Section 1 Specifications <Initialization of derived data type variable> For derived data type variable, such as array variable and structure variable, no initial value can be set on the variable worksheet. The assignment of initial value to derived data type variable is made by application program. <Sample variable declaration>...
  • Page 64: Tasks

    Section 1 Specifications 1-7 Tasks A task is a time schedule for program execution. Tasks determine the sequence (time schedule) of program execution. For the MICREX-SX SPF series, the following three types of tasks are provided: default task for cyclic processing, fixed cycle tasks, and event tasks. Programs that will always be executed need be assigned to tasks so that their execution sequence can be determined.
  • Page 65: Example Of Fixed Cycle Task Operation

    Section 1 Specifications 1-7-3 Example of fixed cycle task operation Example of the operation of fixed cycle task is used is explained under the following operating conditions. <Operating conditions> Task priority: Task 0 > Task 1 > Default task (cyclic) Task type: Task 0: Fixed cycle task (1ms cycle) Task 1: Fixed cycle task (3ms cycle)
  • Page 66: Example Of Event Task Operation

    Section 1 Specifications 1-7-4 Example of event task operation An example of operation of an event task is explained below. <Operating conditions> Task priority: Task 0 > Task 1 > Default task (cyclic) Task type: Task 0: Event task Task 1: Fixed cycle task (1ms cycle) Default task <Task operation>...
  • Page 67: Program Organization Units (Pous)

    Section 1 Specifications 1-8 Program Organization Units (POUs) The program organization units include functions (FCTs), function blocks (FBs), and programs (PGs). Programs are programmed by the user. Functions and function blocks may be supplied by the manufacturer or made by the user. <Types of program organization units>...
  • Page 68 Section 1 Specifications 1) Function A function is a program organization unit that, when executed, generates a single data item, including multiple elements such as an array or structure). A function has no internal state, that is, executions of a function with the same input parameters always generate the same output.
  • Page 69 Section 1 Specifications <Uses of input/output variables of a function block> Within a function block Outside a function block Read an input variable Possible Not possible Write an input variable Not possible Possible Read an output variable Possible Possible Write an output variable Possible Not possible FB name: AAA...
  • Page 70: Calendar Function

    Section 1 Specifications 1-9 Calendar Function The values of the calendar built in a main unit of the MICREX-SX series SPF can be monitored and set from D300win. They can also be monitored and set from an application program. 1-9-1 Calendar value range The calendar can measure calendar values from 1970-01-01 00:00:00 through 2069-12-31 23:59:59.
  • Page 71: How To Monitor And Set The Calendar From An Application Program

    Section 1 Specifications 1-9-4 How to monitor and set the calendar from an application program 1) HW_RTC (Hardware RTC) - Original FB Use the hardware RTC function block (HW_RTC) to monitor and set the calendar from an application program. For details, see the description of HW_RTC.
  • Page 72: Writing/Reading Data To/From Memory Pack

    Section 1 Specifications 1-10 Writing/Reading Data to/from Memory Pack You can write/read data of the data memory (standard memory and retain memory) to/from a memory pack (Type: NA8PMF-20) that is mounted on a main unit. • A memory pack has three areas for writing data. (The size of the data storage area 1 and 2 is 4K words each, and the size of the data storage area 3 is 8K words.) •...
  • Page 73 Section 1 Specifications Notes: 1) If the specified number of request words exceeds the memory area, data for the allowable size are written or read and the operation is completed normally. 2) If the “Normal end” bit is ON when a request is issued, the request is not executed. Before issuing the request again, set OFF the “Normal end”...
  • Page 74: Section 2 Programming Languages

    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 (1) Symbols used in the function summary ............2-4 (2) Describing a function in the IL language ............2-5 (3) Describing a function in the ST language ............2-5 (4) Specification of enable flags (EN/ENO) ............2-6 (5) Function summary ..................2-9...
  • Page 75: Types Of Programming Languages

    Section 2 Programming Languages 2-1 Types of Programming Languages The MICREX-SX SPF series supports five programing languages that are defined in IEC 61131-3. These programming languages are classified under two text languages and three graphics languages as shown below. Graphic languages LD language (Ladder Diagram) FBD language (Function Block Diagram) SFC elements (Sequential Function Chart)
  • Page 76: Ld Language

    Section 2 Programming Languages 2-2 LD Language LD language is a graphical language that consists of contacts and coils that are connected to two vertical bus lines. LD language are used with FBD language in applications where timers, counters, and applications instructions are to be used. <Examples of LD language>...
  • Page 77: Fbd Language

    Section 2 Programming Languages 2-3 FBD Language The FBD language allows block diagrams to be used to represent programs. FBD language clearly show the relationship between arithmetic instructions and input/output and visually show the flow of operation. For example, the operation “output = (data1 + data2) x data3” can be represented as shown below in FBD language. <Sample FBD language representation>...
  • Page 78: Function Summary

    Section 2 Programming Languages 2-3-1 Function summary Functions are supported by the IL, ST, LD, and FBD languages. The operation of a function remains the same for these languages. (1) Symbols used in the function summary Instruction symbol Name No. of steps Page Input data type Output data type...
  • Page 79 Section 2 Programming Languages (2) Describing a function in the IL language To describe a function call in the IL language, specify, as the first input, the current operation result and, as the operator, the function call instruction (function name) that specifies the second and subsequent inputs as operands. 1) 1-input function “Input”...
  • Page 80 Section 2 Programming Languages (4) Specification of enable flags (EN/ENO) The start operation terminal “EN” and result terminal “ENO” can be used for the functions in the graphic language. <Example of a function with EN/ENO> FLAG START Associate a BOOL type operation condition variable with the EN terminal. When the variable associated with the EN terminal is TRUE (“1”), arithmetical operations are executed, while when FALSE (“0”), they are not performed.
  • Page 81 Section 2 Programming Languages <Numbers of function steps with EN/ENO enabled> The numbers of function steps with EN/ENO enabled are shown below. 1) When variables are associated with both of EN/ENO terminals, the number of steps increases by three. FLAG START 2) When a variable is associated only with the EN terminal, the number of steps increases by two.
  • Page 82 Section 2 Programming Languages <Considerations in using functions with EN/ENO enabled> 1) Using user functions When the circuit shown in the figure below is created by using a user function, S2 is assigned to the temporary area. If a variable A associated with the EN terminal is set to “OFF,”...
  • Page 83 Section 2 Programming Languages (5) Function summary The functions that are supported by the MICREX-SX series are classified into the following categories: Type conversion functions Function IEC standard functions Arithmetic functions Bit string functions Selection/comparison functions Time type data functions Original functions (unique to the MICREX-SX SPF series) 1) Type conversion functions Instruction symbol...
  • Page 84 Section 2 Programming Languages Instruction symbol Name No. of steps Related section FEH200 Type conversion INT_TO _UINT INT_TO_UINT UINT 2-4-11 Type conversion DINT_TO _UINT DINT DINT_TO_UINT UINT Type conversion UDINT_TO _UINT UDINT UDINT_TO_UINT UINT Type conversion REAL_TO _UINT REAL REAL_TO_UINT UINT Type conversion TIME_TO _UINT...
  • Page 85 Section 2 Programming Languages Instruction symbol Name No. of steps Related section FEH200 Type conversion DINT_TO _REAL DINT DINT_TO_REAL REAL 2-4-11 Type conversion UINT_TO _REAL UINT UINT_TO_REAL REAL Type conversion UDINT_TO _REAL UDINT UDINT_TO_REAL REAL Type conversion TIME_TO _REAL TIME TIME_TO_REAL REAL Type conversion...
  • Page 86 Section 2 Programming Languages Instruction symbol Name No. of steps Related section FEH200 Type conversion UINT_TO _TIME UINT UINT_TO_TIME TIME 2-4-11 Type conversion UDINT_TO _TIME UDINT UDINT_TO_TIME TIME Type conversion REAL_TO _TIME REAL REAL_TO_TIME TIME Type conversion UDINT_TO _DT UDINT UDINT_TO_DT Type conversion UDINT_TO _DATE...
  • Page 87 Section 2 Programming Languages Instruction symbol Name No. of steps Related section FEH200 BCD conversion INT_TO _D_BCD INT_TO_D_BCD DWORD 2-4-11 BCD conversion DINT_TO _D_BCD DINT DINT_TO_D_BCD DWORD 2-13...
  • Page 88 Section 2 Programming Languages 2) Arithmetic functions Instruction symbol Name No. of steps Related section FEH200 Absolute value ABS _INT ABS_INT 2-4-8 Absolute value ABS _DINT DINT ABS_DINT DINT Absolute value ABS _REAL REAL ABS_REAL REAL Square root SQRT REAL SQRT REAL Natural logarithm...
  • Page 89 Section 2 Programming Languages Instruction symbol Name No. of steps Related section FEH200 Subtraction ANY_NUM ANY_NUM 2-4-8 ANY_NUM ANY_NUM ANY_NUM ANY_NUM No. of input Multiplication operands + 1 ANY_NUM Division ANY_NUM ANY_NUM ANY_NUM Division remainder ANY_INT ANY_INT ANY_INT EXPT Exponent EXPT REAL REAL...
  • Page 90 Section 2 Programming Languages 3) Bit string functions Instruction symbol Name No. of steps Related section SHL_WORD FEH200 Shift left SHL _WORD WORD WORD 2-4-9 UINT SHL_DWORD Shift left SHL _DWORD DWORD DWORD UINT SHR_WORD Shift right SHR _WORD WORD WORD UINT SHR_DWORD...
  • Page 91 Section 2 Programming Languages Instruction symbol Name No. of steps Related section ANY_BIT ANY_BIT No. of input FEH200 ANY_BIT Exclusive 2-4-9 operands + 1 ANY_BIT Logical negation ANY_BIT ANY_BIT Negation NOT_BOOL BOOL NOT_BOOL BOOL Negation NOT_WORD WORD NOT_WORD WORD Negation NOT_DWORD DWORD NOT_DWORD...
  • Page 92 Section 2 Programming Languages 4) Selection/comparison functions Instruction symbol Name No. of steps Related section SEL_BOOL BOOL BOOL FEH200 Select SEL_BOOL BOOL 2-4-10 BOOL SEL_INT BOOL Select SEL_INT SEL_DINT BOOL DINT Select SEL_DINT DINT DINT SEL_UINT BOOL UINT Select SEL_UINT UINT UINT SEL_UDINT...
  • Page 93 Section 2 Programming Languages Instruction symbol Name No. of steps Related section MAX_INT FEH200 Maximum value MAX_INT 2-4-10 MAX_DINT DINT DINT Maximum value MAX_DINT DINT MAX_UINT UINT UINT Maximum value MAX_UINT UINT MAX_UDINT UDINT UDINT Maximum value MAX_UDINT UDINT MAX_REAL REAL REAL Maximum value...
  • Page 94 Section 2 Programming Languages Instruction symbol Name No. of steps Related section LIMIT_INT FEH200 Limit LIMIT_INT 2-4-10 LIMIT_DINT DINT DINT Limit LIMIT_DINT DINT DINT LIMIT_UINT UINT UINT Limit LIMIT_UINT UINT UINT LIMIT_UDINT UDINT UDINT Limit LIMIT_UDINT UDINT UDINT LIMIT_REAL REAL REAL Limit LIMIT_REAL REAL...
  • Page 95 Section 2 Programming Languages Instruction symbol Name No. of steps Related section elementary BOOL No. of input FEH200 elementary 2-4-10 operands Comparison (>) x3 - 1 elementary (Note 1) elementary BOOL No. of input elementary operands Comparison (>=) x3 - 1 elementary (Note 1) elementary...
  • Page 96 Section 2 Programming Languages 5) Time type data functions Instruction symbol Name No. of steps Related section FEH200 ADD_T_T TIME TIME Add time ADD_T_T 2-4-13 TIME ADD_TD_T Add time ADD_TD_T TIME ADD_DT_T Add time ADD_DT_T TIME SUB_T_T TIME TIME Subtract time SUB_T_T TIME SUB_D_D...
  • Page 97 Section 2 Programming Languages Instruction symbol Name No. of steps Related section DIV_T_R FEH200 Divide time DIV_T_R TIME TIME 2-4-13 REAL CONCAT_D_D DATE Concatenate time CONCAT_D_D Convert DT to TOD DT_TO_TOD DT_TO_TOD Convert DT to DATE DT_TO_DATE DT_TO_DATE DATE 2-23...
  • Page 98 Section 2 Programming Languages 6) Original FCTs (Functions) Instruction symbol Name No. of steps Related section SBIT_WORD FEH200 Set bit SBIT_WORD WORD WORD 2-4-7 UINT SBIT_DWORD Set bit SBIT_DWORD DWORD DWORD UINT RBIT_WORD WORD WORD Reset bit RBIT_WORD UINT RBIT_DWORD DWORD DWORD Reset bit...
  • Page 99 Section 2 Programming Languages Instruction symbol Name No. of steps Related section DBAND_INT FEH200 Dead band DBAND_INT 2-4-7 DBAND_DINT Dead band DBAND_DINT DINT DINT DINT DBAND_REAL Dead band DBAND_REAL REAL REAL REAL BIAS_INT Bias BIAS_INT BIAS_DINT DINT DINT Bias BIAS_DINT DINT BIAS_REAL REAL...
  • Page 100 Section 2 Programming Languages Instruction symbol Name No. of steps Related section DINT DINT FEH200 32-bit subtraction with borrow 2-4-7 DINT BOOL SBBO DINT BOOL Borrow after 32-bit subtraction SBBO DINT BOOL MULL Lower-order digit in 64-bit multiplication MULL DINT DINT DINT MULU...
  • Page 101 Section 2 Programming Languages 7) SPF Original FCTs (Functions) Instruction symbol Name No. of steps Related section 2-3-3 TASK_DI in this Disable interrupt TASK_DI WORD LEVEL WORD manual TASK_EI Enable interrupt TASK_DI WORD LEVEL WORD 2-27...
  • Page 102: Function Block Summary

    Section 2 Programming Languages 2-3-2 Function block summary Function blocks are supported by the IL, ST, LD, and FBD languages. The operation of a function block remains the same for these languages. The notational conventions used in the function block summary charts are almost the same as those which are used in the function summary charts except the following: •...
  • Page 103 Section 2 Programming Languages (2) Describing a function block in the IL language When describing a function block call in the IL language, it is necessary to specify input/output parameters and a call instruction (“CAL,” “CALC,” or “CALCN”) as shown below. <Sample program for calling an up counter FB (CTU_1)>...
  • Page 104 Section 2 Programming Languages (4) Function block summary The function blocks that are supported by the MICREX-SX series are classified into the following categories: Function block IEC standard function blocks The SX original function blocks (unique to the MICREX-SX series) For the SPB expanded function blocks (unique to the MICREX-SX SPF series) 1) IEC standard function blocks...
  • Page 105 Section 2 Programming Languages Instruction symbol Name No. of steps Related section CTUD_1 CTUD BOOL BOOL FEH200 BOOL BOOL Up down counter CTUD 2-4-3 BOOL RESET BOOL LOAD TP_1 Pulse BOOL BOOL TIME TIME TON_1 On-delay timer BOOL BOOL TIME TIME TOF_1 Off-delay timer...
  • Page 106 Section 2 Programming Languages 2) Original FBs (Function blocks) Instruction symbol Name No. of steps Related section RCT_1 BOOL FEH200 BOOL Ring counter 2-4-4 RESET BOOL TMR_1 Integrating timer BOOL BOOL BOOL RESET TIME TIME MR_1 Retriggerable timer BOOL BOOL TIME TIME FFST_1...
  • Page 107 Section 2 Programming Languages Instruction symbol Name No. of steps Related section FILTER_DINT_1 FILTER_DINT BOOL XOUT DINT FEH200 Filter FILTER_DINT DINT 2-4-4 TIME FILTER_REAL_1 FILTER_REAL BOOL XOUT REAL Filter FILTER_REAL REAL TIME INT_DINT_1 INT_DINT BOOL XOUT DINT BOOL BOOL Integrate INT_DINT DINT DINT...
  • Page 108 Section 2 Programming Languages Instruction symbol Name No. of steps Related section HW_RTC_1 HW_RTC FEH200 BOOL BOOL Hardware RTC (Real-time clock) HW_RTC 2-4-3 T_S_1 ERROR BOOL Test & set BOOL BOOL BOOL R_READ_1 R_READ DONE BOOL BOOL MODULE_NO ERROR UINT BOOL CHANNEL_NO STATUS...
  • Page 109 Section 2 Programming Languages 3) SPF original FBs (function blocks) 1. High-speed counter FBs Instruction symbol Name No. of steps Related section R_HSC_1 R_HSC BOOL BOOL High-speed counter current value direct read FEH534 UINT ERROR BOOL HSC_POS R_HSC DINT W_HSC_1 W_HSC BOOL BOOL...
  • Page 110 Section 2 Programming Languages 2. High-speed pulse output and high-speed positioning FBs Instruction symbol Name No. of steps Related section PLS_PLS_1 PLS_PLS BOOL BOOL BOOL PAUSE BOOL ERROR FEH529 Single pulse output PLS_PLS UINT PLS_POS BOOL BOOL UINT STATUS UDINT FREQ UDINT COUNT...
  • Page 111 Section 2 Programming Languages Instruction symbol Name No. of steps Related section PLS_W_CNT_1 PLS_W_CNT DONE BOOL BOOL FEH529 Pulse output HW register write PLS_W_CNT PLS_POS ERROR BOOL UINT DATA DINT PLS_MPOS_1 PLS_MPOS BOOL BOOL BOOL PAUSE ERROR BOOL Multi-axis positioning PLS_MPOS UINT PLS_GROUP...
  • Page 112 Section 2 Programming Languages 3. General purpose communication FBs Instruction symbol Name No. of steps Related section CSPF_FREE_1 CSPF_FREE BOOL OPEN BOOL BOOL S_REQ O_STS WORD S_LEN S_END BOOL S_ERR BOOL S_STS WORD FEH528 Non-procedural FB CSPF_FREE R_END BOOL R_ERR BOOL R_STS WORD...
  • Page 113 Section 2 Programming Languages 4. Ethernet communication FB Instruction symbol Name No. of steps Related section C_ETHERNET_1 C_ETHERNET BOOL O_EN O_OK BOOL BOOL S_REQ O_ERR BOOL BOOL R_EN S_END BOOL UINT MODULE_NO S_ERR BOOL UDINT IP_ADD R_END BOOL WORD MODE R_ERR BOOL WORD...
  • Page 114 Section 2 Programming Languages 5. PID operation FB Instruction symbol Name No. of steps Related section PID_1 BOOL BOOL BOOL M_MV BOOL BOOL MODE BOOL BOOL BOOL FEH409 BOOL PID operation FB Section 3 BOOL BOOL BOOL BOOL STATUS DWORD AT_OK BOOL AT_ERR...
  • Page 115: Spf Original Fcts

    Section 2 Programming Languages 2-3-3 SPF Original FCTs (1) Disable interrupt TASK_DI This FB is used to disable interrupt of a task. Specify a task level (0 to 4, 10 to 19) for which interrupt is disabled by a bit pattern. 1) Symbol TASK_DI WORD...
  • Page 116 Section 2 Programming Languages (2) Enable interrupt TASK_EI This FB is used to enable interrupt of a task. Specify a task level (0 to 4, 10 to 19) for which interrupt is enabled by a bit pattern. 1) Symbol TASK_EI WORD WORD LEVEL...
  • Page 117: St Language

    Section 2 Programming Languages 2-4 ST Language The ST language consists of operators and statements. Operators perform basic operations such as arithmetic or comparison operations. Statements specify the sequence of program execution and the flow of program control. ST language is a structured text language that is composed of a combination of these operators and statements.
  • Page 118: St Statements

    Section 2 Programming Languages 2-4-2 ST statements Format Description Related section Assignment statement. FEH200 Assigns the value of the expression, variable, or numeric value on the right-hand side to 2-5-4 the variable on the left-hand side. Condition statement. Executes the executable statement if the conditional expression is true. Condition statement.
  • Page 119: Il Language

    Section 2 Programming Languages 2-5 IL Language An instruction in the IL language consists of an instruction symbol, a variable name, and a comment specified on a single line. It is also possible to place a label, as shown on the first line of the figure below. The label serves as the destination of jump instructions.
  • Page 120 Section 2 Programming Languages Instruction Name Data type Description No. of Related steps section FEH200 Operates the logical add of the current operation result and the 2-6-3 inverted value of the operand value, and sets the result to the operation result. Logical ANY_BIT inverted add...
  • Page 121 Section 2 Programming Languages Instruction Name Data type Description No. of Related steps section FEH200 Operates the comparison of the current operation result as the left- 2-6-3 hand side of the “=” operator with the operand value as the right- elementary hand side, and sets the result (BOOL value) to the operation result.
  • Page 122: Sfc Elements

    Section 2 Programming Languages 2-6 SFC Elements An SFC is a program that specifies the operation of a plant or machine in flowchart form. Since it allows the flow of processes to be programmed in a natural manner, it facilitates the programmer to develop programs efficiently and to grasp the flow of a program as the flow of processes.
  • Page 123 Section 2 Programming Languages 2-6-1 SFC elements (1) Initial step This step activates the SFC network at the beginning of program execution. Only one initial step is required for an SFC network. Initial step The initial step can be programmed in the middle of the SFC network. Initial step 2-49...
  • Page 124 Section 2 Programming Languages (2) Normal step A normal step represents one process in the SFC program. A normal step may be in the active or inactive state. When a normal step is in the active state, it executes actions according to the control of the action qualifiers. Notes: Actions “A002,”...
  • Page 125 Section 2 Programming Languages (4) Termination step A termination step is one that has no following transition. It is used to mark the end of an SFC program. A termination step may be assigned an action which can be used for the termination processing of the application. Termination step 2-51...
  • Page 126 Section 2 Programming Languages (5) Action/action qualifier An action is a real program which is assigned to the initial, normal, and termination steps and which is executed on the object to be controlled. In an action, the programmer can assign a BOOL variable, or a program in IL, ST, LD, or FBD language. Action qualifier An action qualifier specifies the timing of execution or suppression of an action according to the active or inactive state of the step.
  • Page 127 Section 2 Programming Languages 3) S (Set) The execution of the action is started when the step is activated, but the action is executed repeatedly when the step is deactivated. The execution of the step is stopped using the R qualifier. S001 T001 ACT1...
  • Page 128 Section 2 Programming Languages 6) D (Time delayed) The action is started after a preset time after the step is activated. The action is executed repeatedly until the step is deactivated. The action is not executed if the step is deactivated before the preset time is reached. S001 T001 ACT1...
  • Page 129 Section 2 Programming Languages 8) DS (Delayed and stored) The action is started only when the step is held active for longer than a preset time. The action repeatedly continues execution until it is reset by the R qualifier. The action is not executed if the step is deactivated before the preset time is reached. S001 T001 ACT1...
  • Page 130 Section 2 Programming Languages (6) Transition Only one transition is programmed between two adjacent steps and specifies the conditions for making a transition from the preceding step to the following step. A transition condition is defined by assigning a BOOL variable or programming by either IL, ST, LD, or FBD language.
  • Page 131: Step Transition

    Section 2 Programming Languages 2-6-2 Step transition The process of transferring the active state from one step to another is called “transition.” When the current step is active and  the transition condition for the next step is turned on, the current step is deactivated and the next step is activated. (1) Single-flow transition In the example shown below, a transition to S003 occurs when S002 is active and both inputs of transition condition INP1 and INP2 are set to 1.
  • Page 132 Section 2 Programming Languages (3) Convergence of sequence selection Two or more control flows which are implemented by the divergence of sequence selection converge into one. Active Inactive Inactive Control is transferred to “S003” when either “S004” or “S005” is active and the subsequent transition is set to “1.” Inactive Inactive Active...
  • Page 133 Section 2 Programming Languages (4) Simultaneous sequences-divergence Control is transferred to two or more steps from one step at the same time. A maximum of 32 branches are allowed. Active Inactive Inactive Inactive Control is transferred to “S007” and “S008” simultaneously when “S009”...
  • Page 134: Automatically Generated Sfc Variables

    Section 2 Programming Languages 2-6-3 Automatically generated SFC variables Step flags and action flags variables are automatically generated in SFC. There is no need for the user to declare step flag and action flag variables. Each step has a step flag that indicates its active/inactive state.
  • Page 135: Sfc Programming Precautions

    Section 2 Programming Languages 2-6-4 SFC programming precautions (1) Step reset processing The system does not reset the action program that is connected to a step when its state is switched from the active to inactive state. If necessary, such action programs must be reset by the application. <Example of resetting an action program>...
  • Page 136: Continuous Operation Of Sfc

    Section 2 Programming Languages 2-6-5 Continuous operation of SFC When compilation is performed using SFC step or action flag as retain variable with D300win, SFC step flag or action flag is assigned to the retain memory. This operation enables SFC program to continuously run at warm start of the CPU. <Operation of D300win>...
  • Page 137: Section 3 System Definition

    Section 3 System Definition 3-1 System Definition Summary ..............3-1 3-2 System Configuration Definition ............3-2 3-2-1 System configuration definition ..............3-2 3-3 Parameters for Main Unit ................3-4 3-3-1 CPU running definition ...................3-4 (1) Watch dog timer setting .................3-4 (2) Running specification at power on ..............3-4 (3) Battery less run ....................3-4 (4) Constant scanning setting ................3-4 (5) I/O status latch function .................3-4...
  • Page 138: System Definition Summary

    Section 3 System Definition 3-1 System Definition Summary Recognition Name Definition Related page timing System configuration Registration of units existing in the configuration (system) Section 3-2 When reset definition Specification of watchdog timer, constant scan, I/O status Section 3-3-1 When latch, and built-in flash memory mismatch LED indication downloaded CPU running definition...
  • Page 139: System Configuration Definition

    Section 3 System Definition 3-2 System Configuration Definition For MICREX-SX series SPF, register the actual unit configuration in the project. 3-2-1 System configuration definition <Example of system configuration> Expansion Expansion Expansion Main unit with 40 points left side unit right side unit right side unit Type: NA0PA40T-31C Communication unit...
  • Page 140 Section 3 System Definition <Setting procedure> ‹ Double-click “System_Definition” in the project tree. The system definition screen opens. ‹ When creating a new project, if you use the template for the main unit to be used, the selected main unit is registered by default as shown below.
  • Page 141: Parameters For Main Unit

    Section 3 System Definition 3-3 Parameters for Main Unit 3-3-1 CPU running definition The CPU running definition includes the following six setting items: “Watchdog timer setting”, “Running specification at power on”, “Battery less run”, “Constant scanning setting”, “I/O status latch function”, and “LED display at built-in flash memory un-match”. (1) Watch dog timer setting The watchdog timer monitors default task execution time.
  • Page 142 Section 3 System Definition <Setting procedure> ‹ Right-click the resource icon in the project tree, and then left-click [Settings...]. The “Resource setting of MICREX-SX” dialog box opens. ‹ Click the [CPU running definition] to display the “CPU running definition” dialog box. ‹...
  • Page 143: Cpu Memory Size Definition

    Section 3 System Definition 3-3-2 CPU memory size definition Set the size of the internal data memory of the main unit. Although the whole size of the user memory area cannot be changed, you can change the size of individual area as needed. The size can be changed in units of 64 words.
  • Page 144: At Range

    Section 3 System Definition <Extended setting> Extended setting for memory allocation includes “AT range setting,” and “retain setting for automatically generated SFC variables.” (1) AT range AT range is the memory area for the user to specify the memory allocation for variables. When an area is specified as AT range, no variable is automatically assigned to it.
  • Page 145: I/O Group Setting

    Section 3 System Definition 3-3-3 I/O group setting You can specify which digital I/O of the main unit to be controlled by which task. The Expansion unit is assigned to the default task (fixed) and you cannot change the setting here. <Setting procedure>...
  • Page 146 Section 3 System Definition <Procedure for assigning to other tasks> ‹ Select another task for “Level”. “Level” indicates the priority level of the task. Select a unit, and then click the [>>] button for “Input select” or “Output select.” The unit is allocated. ‹...
  • Page 147: Remote Run/Stop Bit Setting

    Section 3 System Definition 3-3-4 Remote RUN/STOP bit setting You can designate an arbitrary external input (only one bit) for the “Start/Stop input” to the main unit. If this parameter is set, start/stop, download and clear operations from loader take effect only when the “RUN/STOP bit” is set ON. Notes: The input that is designated for the “remote RUN/STOP input”...
  • Page 148: Digital Filter Setting

    Section 3 System Definition 3-3-5 Digital filter setting You can set the digital filter for inputs of the main unit. This item is set in units of two points for the input terminals X0 to X15 and in units of four points for the input terminals X16 to X35. Select any of the following: “Not set (uncheck)”, “0.5 micro s,”...
  • Page 149: High-Speed Counter Setting

    Section 3 System Definition 3-3-6 High-speed counter setting Make settings of the high-speed counter that is built in the main unit (all models) as standard. The following items are set for individual channels (CH0 to CH7). 1) Mode selection Select either of the following modes for the channel to be used: “High-speed timer mode” or “High-speed counter mode.” 2) High-speed counter mode setting When selecting the high-speed counter mode, set the counter mode (“U/D 1 multiplication,”...
  • Page 150: High-Speed Pulse Output Setting

    Section 3 System Definition 3-3-7 High-speed pulse output setting Make settings of the high-speed pulse output that is built in the Advance Main unit as standard. The following items are set for individual channels (CH0 to CH7): the channel to be used, output mode (“A/B,” “U/D,” “P/R,” “PWM,” or “PLS”) and output polarity (positive logic or negative logic).
  • Page 151 Fuji Electric Co., Ltd. Gate City Ohsaki, East Tower, 11-2, Osaki 1-chome, Shinagawa-ku, Tokyo 141-0032, Japan E-mail: micrex-sx@fujielectric.com URL: http://www.fujielectric.com/ Materials covered in this document are subject to revision due to the modification of the product.

This manual is also suitable for:

Spf series

Table of Contents