Fuji Electric SPF Series Скачать руководство пользователя страница 48

1-39

Section 1  Specifications

Address

Name

Description

Attribute

%MW3.61440

Parameter for data storage 

area 1 of memory pack

(Area size: 4K words)

Data memory type (1: Standard memory, 3: Retain memory)

R/W

%MW3.61441

• Data memory start address of data to be written

• Data memory start address to store read data

%MW3.61442

Number of words to write/read

%MW3.61443

Request command

(*1)

%MW3.61444

Operation status

(*2)

%MW3.61445

Actual number of read/written words

%MW3.61446

%MW3.61447

Not used

%MW3.61448

Parameter for data storage 

area 2 of memory pack

(Area size: 4K words)

Data memory type (1: Standard memory, 3: Retain memory)

R/W

%MW3.61449

• Data memory start address of data to be written

• Data memory start address to store read data

%MW3.61450

Number of words to write/read

%MW3.61451

Request command

        (Same as *1)

%MW3.61452

Operation status

        (Same as *2)

%MW3.61453

Actual number of read/written words

%MW3.61454

%MW3.61455

Not used

%MW3.61456

Parameter for data storage 

area 1 of memory pack

(Area size: 8K words)

Data memory type (1: Standard memory, 3: Retain memory)

R/W

%MW3.61457

• Data memory start address of data to be written

• Data memory start address to store read data

%MW3.61458

Number of words to write/read

%MW3.61459

Request command

        (Same as *1)

%MW3.61460

Operation status

        (Same as *2)

%MW3.61461

Actual number of read/written words

%MW3.61462

%MW3.61463

Not used

%MW3.61464

       |

%MW3.61471

Not used

(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.

1514

0

Request type

5754h: Write request

5244h: Read request

Request bit

  1: Request issued, 2: No request

f

 Bit address

15141312 11

8 7

0

Error code

Executing

f

 Bit address

Abnormal end
Normal end

* For details, see “1-10 Writing/Reading Data to/from Memory Pack.”

Содержание SPF Series

Страница 1: ...series USER S MANUAL Instructions FEH525a For SX Programmer Expert D300win Type NP4H SEDBV3...

Страница 2: ...rdware specifications and operations of units in the MICREX SX series SPF User s Manual Instructions Expert MICREX SX series SPH FEH200 Describes the memory language and system definitions of the MICR...

Страница 3: ...terminals and exposed metal portion while the power is turned ON It may result in an electric shock to the operator Turn OFF the power before mounting dismounting wiring maintaining or checking otherw...

Страница 4: ...operation might occur Before touching the PLC discharge any static electricity that may have been collected on your body To discharge it touch a grounded metallic object Static electricity might cause...

Страница 5: ...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 R_READ R_WRITE and C_ETH...

Страница 6: ...7 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 specifications 1 55 1 7 2 Types and operations of tasks 1 55 1 7 3 Example o...

Страница 7: ...tinuous operation of SFC 2 62 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 Un...

Страница 8: ...l fault MW10 14 to MW10 16 1 15 10 User nonfatal fault MW10 18 to MW10 20 1 15 11 System definition error factor MW10 22 to MW10 27 Read only 1 16 12 Application program error factor MW10 38 to MW10 4...

Страница 9: ...f variables 1 42 1 5 2 Variable declaration 1 43 1 Usage of variables 1 43 2 Assigning variables to memory 1 44 3 Retaining variables during power failure 1 46 4 Setting initial value for variable 1 4...

Страница 10: ...Note 1 I O memory I Q 512 words Standard memory M 4096 words 8192 words Retain memory M 2048 words 4096 words User FB instance memory 4096 words 8192 words User FB instance memory Initial value setti...

Страница 11: ...Us task 64 Default task 8 Fixed cycle task Event task Total of all tasks Max 64 No of user function blocks 128 No of user functions 128 Nesting depth of user function blocks user functions 64 levels i...

Страница 12: ...C Backup Note 3 Program memory system definition Built in RAM Built in lithium primary battery Built in flash memory Note 4 ZIP file Built in flash memory Data memory Built in RAM Built in lithium pr...

Страница 13: ...ory Note 4 I Q MW1 0 MW1 4095 MW3 0 MW3 2047 MW10 0 MW10 511 Notes 1 You can increase or decrease the size of the standard memory excluding high speed memory retain memory user FB instance memory and...

Страница 14: ...Initial values require 2 5 steps per variable 5 The initial value setting memory is automatically allocated according to the size of the user FB instance memory and uses the area of user FB memory x 1...

Страница 15: ...send data to the main unit and by output devices such as relays solenoids and indicators which show the results of program executions G Key points 1 Input is represented by I prefix and output by Q pr...

Страница 16: ...m the top of the standard memory is the area where data access in the CPU is processed at high speed 4 The sizes of the standard memory areas can be changed taking those of other areas into account No...

Страница 17: ...ccount For the details of memory size change see 3 3 2 CPU memory size definition Notes 1 The CPU runs in cold start mode when started by the Initial run command of the loader and in warm start mode w...

Страница 18: ...ry size change see 3 3 2 CPU memory size definition 2 When setting an initial value in the user FB internal memory No of words in user FB instance area that are defined in the variable worksheet x 9 8...

Страница 19: ...ce 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 4 By default the numbers of timers additional timers c...

Страница 20: ...Not used MW10 18 MW10 20 User nonfatal fault factor 0 factor 47 MW10 21 Not used MW10 22 MW10 27 System definition error factor MW10 28 MW10 37 Not used MW10 38 MW10 41 Application program error fact...

Страница 21: ...0 1 5 Not used MX10 1 6 User ROM card connection state ON Connected OFF Not connected MX10 1 7 User ROM card write protect ON Write protected OFF Write permitted enabled when MX10 1 6 is ON MX10 1 8 S...

Страница 22: ...thy unit is mounted MX10 2 6 MX10 2 12 Not used MX10 2 13 Other hardware error ON when an error occurs in hardware other than the CPU memory and I O MX10 2 14 Not used MX10 2 15 User fatal fault ON wh...

Страница 23: ...d This bit can be set OFF by an application program Nonfatal fault Address Name Description Level MX10 12 0 System definition error ON when an error is found in the system definition Fatal fault MX10...

Страница 24: ...MX10 16 0 User fatal fault factor 32 MX10 16 15 User fatal fault factor 47 Address Name Description MX10 18 0 User nonfatal fault factor 0 A nonfatal error occurs when any of these bits is set to ON...

Страница 25: ...error ON when the running definition of SPF contains an error Fatal fault MX10 23 0 CPU I O group definition error for default tasks ON when an input unit is defined for an output unit Fatal fault MX1...

Страница 26: ...t MX10 39 0 Missing level 0 task ON when a task is missing These bits can be set OFF by an application program Nonfatal fault MX10 39 1 Missing level 1 task MX10 39 2 Missing level 2 task MX10 39 3 Mi...

Страница 27: ...xecution of level 13 task MX10 43 9 Level 14 start flag ON during the first execution of level 14 task MX10 43 10 Level 15 start flag ON during the first execution of level 15 task MX10 43 11 Level 16...

Страница 28: ...e the main unit is stopped due to a fatal fault or running in a nonfatal fault condition MX10 51 1 MX10 51 15 Not used Resource configuration information Resource fault information Resource status OFF...

Страница 29: ...nonfatal fault condition MX10 58 5 MX10 64 7 Not used MX10 64 8 Expansion left side unit configuration ON when the expansion left side unit is in a normal or nonfatal fault condition MX10 64 9 MX10 6...

Страница 30: ...he mounted user ROM card flash memory Transferring data from the RAM to the user ROM card sets this bit to OFF MX10 298 2 MX10 298 15 Not used Address Name Description MX10 299 0 Enable constant scann...

Страница 31: ...lag is set ON year month day time minute and second data set in the built in calendar data MW1 61442 to MW1 61447 are written to the built in calendar This bit is automatically set OFF R W MX1 61449 1...

Страница 32: ...event task and not set to ON in practice When a rising or falling edge of the signal of the input terminals X0 to X15 in the main unit is detected the set event task operates MX1 61486 15 Interrupt i...

Страница 33: ...nit This memory can be read and reset written from an application R W MX1 61495 15 External interrupt factor occurrence for falling edge 15 MX1 61496 0 MX1 61497 15 Not used Address Name Description A...

Страница 34: ...d counter ON Clear OFF Clear release Operation is performed at the end of the scan R W MX1 61537 7 High speed counter CH7 current value clear MX1 61537 8 MX1 61537 15 Not used MX1 61538 0 High speed c...

Страница 35: ...pdated at the execution of the high speed counter current set value write instruction W_HSC R MD3 61576 High speed counter CH7 set value 3 High speed counter direction signal MW3 61536 4 High speed co...

Страница 36: ...end of the scan R W MX1 61600 1 MX1 61600 15 Not used MX1 61601 0 Pulse output status display CH0 Displays the status of the pulse output CH0 ON Ready for pulse output OFF Pulse outputting R MX1 6160...

Страница 37: ...o 15 H MW1 61626 MW1 61627 Not used MW1 61628 Acceleration deceleration time for multi axis control 1 to 30 000 ms L R MW1 61629 H MW1 61630 MW1 61649 Not used MW1 61650 Positioning parameter current...

Страница 38: ...Not used MW1 61708 Acceleration deceleration time for multi axis control 1 to 30 000 ms L R MW1 61709 H MW1 61710 MW1 61729 Not used MW1 61730 Positioning parameter current value for CH3 Maximum frequ...

Страница 39: ...MW3 61609 Not used Address Name Description Attribute MW3 61610 Positioning step position Note 2 Step position for CH0 When using Gr 0 2 and 3 for multi axis R W MW3 61611 Step position for CH1 MW3 61...

Страница 40: ...4 2 Xon Xoff status PORT 2 Displays the reception status of Xon Xoff of PORT 2 This flag is set ON when Xoff is received and OFF when Xon is received MX1 61794 3 MX1 61795 1 Not used MX1 61795 2 Xon X...

Страница 41: ...a receive buffer overflow occurs during data reception Reset to 1 and restarted when the maximum value FFFF is exceed MW1 61823 MW1 61826 Not used MW1 61827 Parity error counter PORT 3 Counted up when...

Страница 42: ...bits indicate the configuration data of the station No 3 The lower 8 bits indicate the configuration data of the station No 2 MW1 61868 Configuration data Station Nos 4 and 5 The upper 8 bits indicate...

Страница 43: ...nd area Send area of station No 7 reception area when viewed from other stations 32 words MW1 62144 MW1 62175 Station No 8 Send area Send area of station No 8 reception area when viewed from other sta...

Страница 44: ...sending retries in TCP communication Fixed to 8 R MW1 62415 Close process during TCP sending timeout Not supported MW1 62416 Close process during response receiving timeout Not supported MW1 62417 No...

Страница 45: ...62445 Not used MW1 62446 Sending retry number of times Indicates the number of sending retries in TCP communication Fixed to 8 R MW1 62447 Close process during TCP sending timeout Not supported MW1 6...

Страница 46: ...retry number of times Indicates the number of sending retries in TCP communication Fixed to 8 R W MW3 62415 Close process during TCP sending timeout Not supported MW3 62416 Close process during respon...

Страница 47: ...eration mode R W MW3 62445 Not used MW3 62446 Sending retry number of times Indicates the number of sending retries in TCP communication Fixed to 8 R W MW3 62447 Close process during TCP sending timeo...

Страница 48: ...3 61452 Operation status Same as 2 MW3 61453 Actual number of read written words MW3 61454 MW3 61455 Not used MW3 61456 Parameter for data storage area 1 of memory pack Area size 8K words Data memory...

Страница 49: ...ut Therefore for main units and expansion units with both inputs and outputs words are assigned first to inputs and then to outputs The main unit occupies eight words of the I O area input four words...

Страница 50: ...ain unit with 60 points Unit No 0 Input 36 points output 24 points Output 24 points Output 16 points Expansion right side unit Unit No 3 Output 16 points Expansion right side unit Unit No 2 Input 4 po...

Страница 51: ...mories to use is described Because hardware and control logic can be separated by coding a program with variables it is possible to make highly reusable application programs Control system Y6 Y1 AC100...

Страница 52: ...vidual processing function of a system However considering the modularization of application program the variables that can be used only in a certain program POU are necessary On the other hand in ord...

Страница 53: ...memory an address out of the AT range of standard memory is specified 2 When user specifies no address like variables Condition 1 and Condition 2 variables are assigned to the top one in order of the...

Страница 54: ...t I O address Refer to 1 4 for address assignments Prefix Memory size G Key points To assign 32 bit DINT or DWORD type variables 32 bit array type variables and structure type variables to real addres...

Страница 55: ...ode When started up for the first time after user ROM with different memory allocation was installed When started up for the first time after memory backup error occurred When started up for the first...

Страница 56: ...in the figure below ANY is a data type that can hold a basic data type or any of derived data types Data type names in italics represent generic data types and boxed data type names represent basic da...

Страница 57: ...occupies 16 memory bits 1 word and handles integer values from 32768 to 32767 Examples 1000 0 12345 INT 1234 INT 16 FF0F 3 DINT double integer A DINT occupies 32 memory bits 1 double word and handles...

Страница 58: ...No Type Example 1 Binary representation WORD 2 1010111110101111 DWORD 2 11110000111100001010111110001111 2 Hexadecimal representation WORD 16 0F0E DWORD 16 FFFF000F 8 DATE date The DATE data type hand...

Страница 59: ...ata types An array is made up of two or more elements of the same data type Arrays may be either 1 or 2 dimensional arrays Example of using a 1 dimensional array data type Sample data type definition...

Страница 60: ...on 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 indexed from 1 to 3 Example of a variable declaration The data type...

Страница 61: ...structures of arrays Examples of using structured data types Sample data type definition The structured data type machine consists of five data types namely X_POS UDINT Y_POS DINT DEPTH UINT RPM UINT...

Страница 62: ...er name in the above example are X_POS Y_POS DEPTH RPM and FLAG For example in order to access the 5th row RPM of num_hole_pro num_hole_pro 5 RPM is specified Structure of arrays Array is defined as a...

Страница 63: ...n their declarations Initialize array structure data type variables by an application program Derived data type variable cannot be overwritten online Neither array data type variables nor structure da...

Страница 64: ...2 Types and operations of tasks 1 Default task Always repeat execution Assign programs requiring no responsibility and periodicity in arithmetical operations Maximum 64 programs can be assigned With t...

Страница 65: ...ht side unit Data output processing User program processing Main unit Data input processing Expansion right side unit Data input processing Main unit Data output processing Start request Task 0 Start...

Страница 66: ...ent occurred Checking task execution time and execution cycle You can check the task execution time and cyclr on the resource information screen that can be displayed from the control dialog of D300wi...

Страница 67: ...rds occupying the user FB instance area Total words Main unit with 14 24 points 1536 words Main unit with 32 40 60 points 3072 words VAR_INPUT 256 words No of terminals max 128 VAR_OUTPUT VAR_IN_OUT V...

Страница 68: ...variables Some of the output and internal variables must retain their contents until the function block is called next time Consequently a function block does not always generate the same output even...

Страница 69: ...ot affect each other if they are of different types 3 Program A program is the basic program organization unit for a user application Only programs can be assigned to tasks neither functions nor funct...

Страница 70: ...temperature of 25 C when active Notes The accuracy of the calendar varies depending on the environmental conditions such as an ambient temperature When a main unit is to be used in a system where a h...

Страница 71: ...ial relay The year month day hour minute second and day of the week data of the built in calendar are automatically set in the SPF original special register You can directly access them from an applic...

Страница 72: ...tect switch of the memory pack is set to on data can be written in the memory pack Special register Address Name Description MW3 61440 Parameter for data storage area 1 of memory pack Data memory type...

Страница 73: ...fied for the number of words to write read 17h Specified address error This error occurs if the specified data memory start address is out of the range Execution procedure 1 The memory area to be writ...

Страница 74: ...nal FCTs 2 41 1 Disable interrupt TASK_DI 2 41 2 Enable interrupt TASK_EI 2 42 2 4 ST Language 2 43 2 4 1 ST operators 2 43 2 4 2 ST statements 2 44 2 5 IL Language 2 45 2 5 1 IL instruction summary 2...

Страница 75: ...V2 compatible LD language FBD language LD FBD language LD language FBD language ST language Note 2 SFC elements LD language FBD language SFC elements Note 3 Notes 1 Specify the programming language on...

Страница 76: ...be processed Comment Comments may appear in any location on the worksheet Notes The graphical languages supported by the MICREX SX series are of the free layout format Multiple circuits may be laid o...

Страница 77: ...t 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 Comment Comme...

Страница 78: ...3 FEH200 2 4 10 8 FEH200 2 4 8 No of input operands 1 Shift left SHL _WORD Select SEL_INT Function name REAL REAL SQRT WORD WORD UINT IN N SHL_WORD INT G IN0 IN1 BOOL INT INT SEL_INT ANY_NUM ANY_NUM...

Страница 79: ...Second input Third input ST Area for storing operation result Notes You cannot specify in the IL language any function that has the same mnemonic as an IL instruction e g ADD Instructions such as ADD...

Страница 80: ...e an OUT value remains unchanged A TRUE or FALSE value for the operation is output to the ENO terminal When ENO is TRUE 1 the operation has been normally done and when FALSE 0 an error has occurred in...

Страница 81: ...number of steps increases by two 3 When a variable is associated only with the ENO terminal the number of steps increases by two 4 When a variable is associated with neither the EN nor ENO terminal th...

Страница 82: ...hown in the figure below are created by using a program or user function block portion C is assigned to the temporary area If a variable B associated with the EN terminal is set to OFF C is undefined...

Страница 83: ...T DINT_TO_INT INT UINT UINT_TO_INT INT UDINT UDINT_TO_INT INT REAL REAL_TO_INT INT TIME TIME_TO_INT INT WORD WORD_TO_INT DINT INT INT_TO_DINT DINT UINT UINT_TO_DINT DINT UDINT UDINT_TO_DINT DINT REAL...

Страница 84: ...nversion TIME_TO _UDINT Type conversion DWORD_TO _UDINT Type conversion DT_TO _UDINT Type conversion DATE_TO _UDINT Type conversion TOD_TO _UDINT Type conversion INT_TO _REAL 3 3 3 3 3 3 3 3 3 3 3 3 3...

Страница 85: ...rsion BOOL_TO _DWORD Type conversion WORD_TO _DWORD Type conversion DINT_TO _DWORD Type conversion UDINT_TO _DWORD Type conversion INT_TO _TIME Type conversion DINT_TO _TIME 3 3 3 3 3 3 3 3 3 3 3 3 3...

Страница 86: ...W_BCD_TO _INT BCD conversion D_BCD_TO _INT BCD conversion W_BCD_TO _DINT BCD conversion D_BCD_TO _DINT BCD conversion INT_TO _W_BCD BCD conversion DINT_TO _W_BCD 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 TIME...

Страница 87: ...ction 2 Programming Languages Instruction symbol No of steps Related section Name BCD conversion INT_TO _D_BCD BCD conversion DINT_TO _D_BCD 3 3 DWORD INT INT_TO_D_BCD DWORD DINT DINT_TO_D_BCD FEH200...

Страница 88: ...Square root SQRT Natural logarithm LN Common logarithm LOG Exponent EXP Sine SIN Cosine COS Tangent TAN Arc sine ASIN Arc cosine ACOS Arc tangent ATAN Addition ADD 3 3 3 3 3 3 3 3 3 3 3 3 3 No of inpu...

Страница 89: ...iplication MUL Division DIV Division remainder MOD Exponent EXPT Move MOVE Negation NEG 3 No of input operands 1 3 4 3 4 3 ANY_NUM ANY_NUM ANY_NUM ANY_NUM MUL ANY_NUM ANY_NUM ANY_NUM SUB ANY_NUM ANY_N...

Страница 90: ...ROR _WORD Rotate right ROR _DWORD Logical product AND Logical add OR 3 3 3 3 3 3 3 3 No of input operands 1 No of input operands 1 WORD IN N WORD UINT SHL_WORD DWORD IN N DWORD UINT SHL_DWORD WORD IN...

Страница 91: ...elated section Name Logical negation NOT Negation NOT_BOOL Negation NOT_WORD Negation NOT_DWORD 3 3 3 3 Exclusive XOR No of input operands 1 ANY_BIT ANY_BIT ANY_BIT ANY_BIT XOR ANY_BIT ANY_BIT NOT BOO...

Страница 92: ...elect SEL_WORD Select SEL_DWORD Select SEL_TIME 8 FEH200 2 4 10 BOOL G IN0 IN1 BOOL BOOL BOOL SEL_BOOL INT G IN0 IN1 BOOL INT INT SEL_INT DINT G IN0 IN1 BOOL DINT DINT SEL_DINT UINT G IN0 IN1 BOOL UIN...

Страница 93: ...value MAX_REAL Minimum value MIN_INT Minimum value MIN_DINT Minimum value MIN_UINT Minimum value MIN_UDINT Minimum value MIN_REAL 3 FEH200 2 4 10 3 INT INT INT MAX_INT DINT DINT DINT MAX_DINT UINT UI...

Страница 94: ...LIMIT_INT Limit LIMIT_DINT Limit LIMIT_UINT Limit LIMIT_UDINT Limit LIMIT_REAL 6 FEH200 2 4 10 INT MN IN MX INT INT INT LIMIT_INT DINT MN IN MX DINT DINT DINT LIMIT_DINT UINT MN IN MX UINT UINT UINT L...

Страница 95: ...No of input operands x3 1 No of input operands x3 1 No of input operands x3 1 No of input operands x3 1 3 BOOL elementary elementary elementary Note 1 GT BOOL elementary elementary elementary Note 1...

Страница 96: ...btract time SUB_TD_TD Subtract time SUB_DT_T Subtract time SUB_DT_DT Multiply time MUL_T_N Multiply time MUL_T_R Divide time DIV_T_N 5 8 8 5 6 8 6 8 6 7 7 7 TIME TIME TIME ADD_T_T TOD TOD TIME ADD_TD_...

Страница 97: ...symbol No of steps Related section Name Divide time DIV_T_R Concatenate time CONCAT_D_D Convert DT to TOD DT_TO_TOD Convert DT to DATE DT_TO_DATE 7 5 5 6 FEH200 2 4 13 TIME TIME REAL DIV_T_R DT DATE T...

Страница 98: ...E_DWORD Encode ENCODE_WORD Encode ENCODE_DWORD Bit count BITCOUNT_WORD Bit count BITCOUNT_DWORD 3 3 3 3 3 3 3 4 3 4 3 3 WORD IN N WORD UINT SBIT_WORD DWORD IN N DWORD UINT SBIT_DWORD WORD IN N WORD UI...

Страница 99: ...C_COIL Step sequence bit SC 32 bit addition with carry ADC Carry after 32 bit addition ADCO INT IN DB INT INT DBAND_INT DINT IN DB DINT DINT DBAND_DINT REAL IN DB REAL REAL DBAND_REAL INT IN DZ INT IN...

Страница 100: ...division DIVL Upper order digit in 64 bit division DIVU Shift left 32 bits with carry SLC Carry after 32 bits shift left SLCO Shift right 32 bits with carry SRC Carry after 32 bits shift right SRCO D...

Страница 101: ...mming Languages 7 SPF Original FCTs Functions Instruction symbol No of steps Related section Name Disable interrupt TASK_DI Enable interrupt TASK_DI 6 6 WORD LEVEL WORD TASK_DI WORD LEVEL WORD TASK_EI...

Страница 102: ...SET PV BOOL BOOL INT Q CV CTU CTU_1 BOOL INT CD LOAD PV BOOL BOOL INT Q CV CTD CTD_1 Notes 1 The number of steps depends on the operands used Consequently the number of steps of array variables will b...

Страница 103: ...ST CTU_1 CU LD INPUT2 Reset input ST CTU_1 RESET LD SETDATA Set value ST CTU_1 PV CAL CTU_1 Read CTU_1 unconditionally LD CTU_1 Q ST OUTFLAG Up bit LD CTU_1 CV ST CURRENT Current value Passes input p...

Страница 104: ...the MICREX SX SPF series 1 IEC standard function blocks Instruction symbol No of steps Related section Name 8 6 6 12 12 8 FEH200 2 4 3 Set reset flip flop SR Reset set flip flop RS Rising edge detect...

Страница 105: ...CTUD On delay timer TON BOOL BOOL INT CU CD RESET LOAD PV BOOL BOOL BOOL BOOL INT QU QD CV CTUD CTUD_1 10 Off delay timer TOF 10 Real time clock RTC BOOL TIME IN PT BOOL TIME Q ET TP TP_1 BOOL TIME I...

Страница 106: ...L TIME IN PT BOOL TIME Q ET MR MR_1 BOOL ARRAY OF ARRAY STRUCT ARRAY ENABLE FILE FCB IN X_SIZE Y_SIZE BOOL ARRAY OF ARRAY STRUCT ARRAY UINT UINT ERROR FILE FCB IN FFST FFST_1 Sequential file load firs...

Страница 107: ...L DINT DINT TIME XOUT Q INT_DINT INT_DINT_1 REAL BOOL RUN R1 XIN X0 I_T BOOL BOOL REAL REAL TIME XOUT Q INT_REAL INT_REAL_1 10 Filter FILTER_DINT 10 Filter FILTER_REAL DINT RUN XIN TAU BOOL DINT TIME...

Страница 108: ...W_RTC_1 BOOL BOOL BOOL IN BOOL ERROR IN Q T_S T_S_1 FEH200 2 4 3 FEH630 S4 2 FEH630 S4 3 R_READ_1 BOOL UINT UINT UDINT UINT ANY UINT ANY R_READ DONE ERROR STATUS REMOTE_VAR SD BOOL BOOL INT ANY ANY RE...

Страница 109: ...t read R_HSC High speed counter flag control W_HSC_FLG High speed counter current value latch R_HSC_LATCH 19 FEH534 3 2 R_HSC BOOL BOOL Q EN R_HSC_1 UINT HSC_POS BOOL DINT ERROR CV W_HSC BOOL BOOL Q E...

Страница 110: ...OOL UDINT UDINT BOOL BOOL BOOL UINT ACT ERROR Q STATUS EN PAUSE PLS_POS DIR FREQ COUNT PLS_PLS_1 PLS_PWM BOOL BOOL Q EN UINT PLS_POS UDINT PERIOD PLS_PWM_1 UDINT WIDTH BOOL ERROR UINT STATUS PLS_PARA...

Страница 111: ...ulse generator PLS_MPG FEH529 4 4 PLS_W_CNT BOOL BOOL BOOL UINT DINT DONE ERROR REQ PLS_POS DATA PLS_W_CNT_1 PLS_MPOS_1 PLS_MPOS BOOL BOOL UINT ANY ACT ERROR Q STEP_DONE STATUS PRG BOOL BOOL BOOL BOOL...

Страница 112: ...ANY ANY OK O_STS S_END S_ERR S_STS R_END R_ERR R_STS R_LEN S_DAT R_DAT PARA BOOL WORD BOOL BOOL WORD BOOL BOOL WORD INT ANY ANY ANY OPEN S_REQ S_LEN S_DAT R_DAT PARA CSPF_MODM_1 CSPF_MODM BOOL BOOL IN...

Страница 113: ...UINT UDINT WORD WORD UINT UINT UINT UINT UINT UINT WORD type array WORD type array WORD type array WORD type array O_OK O_ERR S_END S_ERR R_END R_ERR S_SIZE_O R_SIZE_O S_DAT R_DAT INFO RAS BOOL BOOL...

Страница 114: ...409 Instruction symbol No of steps Related section Name 57 PID operation FB PID FEH409 Section 3 PID_1 PID BOOL INT INT INT BOOL BOOL ANY MV PHA PLA DHA DLA SHA SLA MHA MLA ERR NG STATUS AT_OK AT_ERR...

Страница 115: ...To enable interrupt use the TASK_EI instruction TASK_DI WORD WORD LEVEL 2 Description of FCT terminals Parameter Data type Description LEVEL WORD Specify the bit position of the target task level ON...

Страница 116: ...VEL is turned from ON to OFF the interrupt enabled state continues To disable interrupt use the TASK_DI instruction 2 Description of FCT terminals Parameter Data type Description LEVEL WORD Specify th...

Страница 117: ...erator Data type Description Sample value Precedence 1 Parentheses expression 2 3 4 5 45 Highest 2 Function Function name parameter LN A MAX X Y 3 Exponentiation REAL base exponent 3 0 4 0 8 1E 1 4 Si...

Страница 118: ...ecuted according to the value of the conditional expression FOR Iteration statement Repeatedly executes the executable statement according to the initial value final value and incremental or decrement...

Страница 119: ...on result 1 ST Store ANY Stores the current operation result in the operand 1 STN Store not ANY_BIT Stores the inverted value of the current operation result in the operand 1 S Set BOOL Sets the opera...

Страница 120: ...result 1 SUB Operates the subtraction of the operation result specified in parentheses from the current operation result and sets the result to the operation result 1 MUL Multiplication ANY_NUM Operat...

Страница 121: ...tion result specified in parentheses as the right hand side and sets the result BOOL value to the operation result 1 LT Comparison elementary excluding STRING Operates the comparison of the current op...

Страница 122: ...tion condition 1 Process 1 Transition condition 2 Process 2 Transition condition 3 Process 3 STEP1 ACT01 When represented in SFC form STEP2 ACT02 STEP3 ACT03 T1 T2 T2 N ACT01 N ACT02 N ACT03 T1 T2 T3...

Страница 123: ...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 Initial step The initial step can b...

Страница 124: ...above figure one step may be assigned two or more actions There is no limit to the number of actions that can be assigned to one step Notes The state of a step is represented by its status For example...

Страница 125: ...ation 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 pr...

Страница 126: ...ep There are nine types of action qualifiers 1 N non stored The action is repeated while the step is active Note S001 T001 ACT1 2 P Pulse The action is executed only once when the step is activated S0...

Страница 127: ...th the S SD DS or SL qualifier The action is stopped if a specified action has been executed in advance by an S SD DS or SL qualifier when this step is activated If the action is a BOOL variable the v...

Страница 128: ...deactivated before the preset time is reached 7 SD Stored and time delayed The action is started after a preset time after the step is activated The action is started after the preset time has elapse...

Страница 129: ...s reached 9 SL Stored and time limited When the step is activated the action is started and its execution is repeated until a preset time is reached The action is stopped when the preset time is reach...

Страница 130: ...is defined by assigning a BOOL variable or programming by either IL ST LD or FBD language Transition to which an FB is directly assigned Transition to which a BOOL variable is directly assigned The u...

Страница 131: ...own below a transition to S003 occurs when S002 is active and both inputs of transition condition INP1 and INP2 are set to 1 Active Active Inactive Active Inactive Inactive Active Inactive Inactive In...

Страница 132: ...tion Two or more control flows which are implemented by the divergence of sequence selection converge into one Control is transferred to S003 when either S004 or S005 is active and the subsequent tran...

Страница 133: ...usly when S009 is active and T004 is set to 1 5 Simultaneous sequences convergence Two or more control flows which are implemented by the simultaneous sequences divergence converge into one Control tr...

Страница 134: ...lly 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 Variable representation Step flag s...

Страница 135: ...e application Example of resetting an action program In the above example OUT remains on when the step active state switches from S018 to S019 To turn off OUT on state transition create the following...

Страница 136: ...e retain memory This operation enables SFC program to continuously run at warm start of the CPU Operation of D300win 1 On the Memory allocation setting dialog box click the Extended setting A button T...

Страница 137: ...ation 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 6 LED display at built in flash memory un match 3 4 3 3 2 CPU memory size definition 3 6 1...

Страница 138: ...P bits input Section 3 3 4 When reset Input filtering time Specification of the input filtering time for the digital input of the main unit Section 3 3 5 When reset High speed counter setting Mode set...

Страница 139: ...d 0 zero and numbers beginning with 1 one are assigned to Expansion right side units in their connected order The front board is connected on the front of the main unit and registered below the Expans...

Страница 140: ...on No is automatically determined according to its connected order Note To register an Expansion unit or front board select the main unit and then click the Insert button or press the Insert key The M...

Страница 141: ...can time exceeds the set value of constant scanning ordinary scan is performed 2 If the constant scanning and fixed cycle task are used at the same time the periodic task is not started within the per...

Страница 142: ...ick 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...

Страница 143: ...nstance memory 0K word 5 5K words 16K words Memory type Minimum value Initial value Maximum value Standard memory non retain memory MW1 4K words 8K words 40K words Retain memory MW3 0K word 4K words 3...

Страница 144: ...tomatically generated SFC variables Step flags step_name X and action flags action_name X that are automatically generated by SFC are not declared as variables and therefore cannot explicitly be made...

Страница 145: ...task The Expansion unit is assigned to the default task fixed and you cannot change the setting here Setting procedure Click the I O group setting tab on the Main unit parameter dialog box to display...

Страница 146: ...he button for Input select or Output select The unit is allocated The output can be assigned to tasks in units of bit Select the target unit from the Output select box and then click the Detail button...

Страница 147: ...the RUN STOP bit is set ON Notes The input that is designated for the remote RUN STOP input must be assigned to the default task by I O group setting No remote RUN STOP bit is set by default This sett...

Страница 148: ...he following Not set uncheck 0 5 micro s 1 micro s 1 5 micro s 2 micro s 2 5 micro s 3 micro s 3 5 micro s 10 micro s 30 micro s 100 micro s 300 micro s 1 ms 3 ms 3 10 ms 10 ms or 15 ms By default 1 5...

Страница 149: ...lication U D 2 multiplication P R 1 multiplication P R 2 multiplication P R App Ctrl 1 multiplication P R App Ctrl 2 multiplication A B 1 multiplication A B 2 multiplication A B 3 multiplication or A...

Страница 150: ...rd 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 Setting procedure Click...

Страница 151: ...nt are subject to revision due to the modification of the product 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 co...

Отзывы: