Fuji Electric MICREX-SX series User Manual Download Page 34

Section 3  Inverter Communication

3-2

3-2 Data Write Program

The remote data write (R_WRITE) FB is used to send data to an inverter.

(1) FB format

(2) Explanation of terminals

Note: The data to send shall be prepared in the following manner.

R_WRITE

REQ

MODULE_NO

CHANNEL_NO

STATION_NO

VAR_TYPE

REMOTE_VAR

SIZE

SD

BOOL

BOOL

INT

Array 1

Array 2

DONE

ERROR

STATUS

    REMOTE_VAR

SD

BOOL

UINT

UINT

UDINT

UINT

Array 1

UINT

Array 2

Terminal name

Data type

I/O

Description

REQ

BOOL

IN

Request to send
At the rising edge of this signal, the initialization data prepared in SD is sent.

MODULE_NO

UINT

IN

RS-485 port No. designation
Fixed to UNIT#8

CHANNEL_NO

UINT

IN

Communication type code
Designates the type of communication. Fixed to UINT#0

STATION_NO

UDINT

IN

Sets the RS-485 station No. of the inverter. (1 to 255)

VAR_TYPE

UINT

IN

Variable specification method

Fixed to UINT#1

REMOTE_VAR

Array 1

IN_OUT

Address specification

2-word UINT type array variable is connected.

Enters "function code" of the inverter in the first word and "write No." in the second

word.

SIZE

UINT

IN

Send data size Designates the size of send data by the number of words.

SD

Array 2

IN_OUT

Send data

The data to send is prepared. Maximum 82 bytes (43 words) of data can be sent.

(see note)

DONE

BOOL

OUT

Normal end Set ON for one scan period when the data is successfully sent.

ERROR

BOOL

OUT

Transmission error Set ON for one scan period if transmission error occurred.

STATUS

INT

OUT

Status

The content of occurred transmission error is indicted by a code.

For details, refer to "3-4 Error Code".

N <= 86

Format of prepared send data (SD)

No. of send data bytes

Data 2

Send data size

(SIZE)

Data 1

Data 4

Data 3

Data N

Data N-1

0

F

Summary of Contents for MICREX-SX series

Page 1: ...FEH425b series USER S MANUAL Inverter for Home Elevator PLC Function Manual Type HHE 3 0CL1S 7GH1 ...

Page 2: ...manual may not be reproduced in whole or part in any form without prior written approval by the manufacturer 2 The contents of this manual including specifications are subject to change without prior notice 3 If you find any ambiguous or incorrect descriptions in this manual please write them down along with the manual No shown on the cover and contact FUJI Title Manual No Contents User s Manual I...

Page 3: ...ious accident Both safety instruction categories provide important information Be sure to strictly observe these instructions Warning Never touch any part of charged circuits as 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 otherwise electric shock err...

Page 4: ...topping or anything else during the system running Wrong operation might break or cause problems to the machine Engage the loader connector in a correct orientation otherwise an erratic 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 erratic opera...

Page 5: ...om right of the cover of this manual Printed on Manual No Revision contents Jan 2006 FEH425 First edition Feb 2006 FEH425a Some mistakes were corrected Oct 2006 FEH425b The product type was changed Old type FRN3 0CL1S 7GH New type HHE 3 0CL1S 7GH1 ...

Page 6: ...ication 3 1 Memory for Inverter Communication 3 1 3 2 Data Write Program 3 2 3 3 Data Read Program 3 3 3 4 Error Code 3 4 3 5 Inverter Function Code and Write Read No 3 4 Section 4 High speed Counter 4 1 High speed Counter Specifications 4 1 4 1 1 List of specifications 4 1 4 1 2 Pin layout of encoder input 4 2 4 1 3 List of system memory for high speed counter 4 2 4 1 4 Operation modes of high sp...

Page 7: ...1 2 1 Operating range for each access level App 1 2 Appendix 1 2 2 Functions to manage password App 1 3 Appendix 1 3 How to Use Password App 1 4 Appendix 1 3 1 Registering password App 1 4 Appendix 1 3 2 Password authentication App 1 7 Appendix 1 3 3 Changing password App 1 8 Appendix 1 3 4 Clearing password App 1 10 Appendix 1 4 Notes on Use App 1 11 Page ...

Page 8: ...munication 544 words System memory SM 512 words Temporary memory 4096 words Available basic data type Note 3 BOOL INT DINT UINT UDINT TIME DT WORD DWORD Max No of elements of array data type 16 bit data 4096 32 bit data 2048 No of structure data type members 200 Data type nesting 1 level Array of arrays Array of structures No of tasks Default tasks 1 Periodic tasks Max 4 Event tasks Max 4 Total of...

Page 9: ...ED lights up The nonfatal fault flag memory error flag and memory backup error flag are set to ON You can check the error with the diagnostic function of the loader To restore the system set the memory backup error flag to OFF with the user program or loader or power this board off and on again The nonfatal fault flag and memory error flag are set to OFF and the ALM LED goes out Backup Note 4 Back...

Page 10: ...gnment Note 3 It is possible to set the initial values of standard memory and retain memory using the free space of program memory Initial values require 2 5 steps for one address IW QW MW1 0 MW3 0 MW8 0 MW10 0 Input output memory I Q 512 words 8192 points Standard memory M 4800 words Retain memory M 2048 words User FB memory M 2560 words System FB instance memory M 4096 words Inverter communicati...

Page 11: ...i11 Di12 to Di21 Di22 to Di27 Di28 to Di47 Do00 to D015 Do16 to D034 PLC loader connector Common terminal for I O IW0 0 IW0 1 IW0 2 IW0 3 QW0 0 QW0 1 QW0 2 QW0 3 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Di00 Do00 Do01 Do02 Do03 Do04 Do05 Do06 Do07 Do08 Do09 Do10 Do11 Do12 Do13 Do14 Do15 Do16 Do17 Do18 Do32 X1 X2 X3 X4 X5 X6 X7 X8 Do33 Do34 FWD REV Do19 Do20 Do21 Do22 Do23 Do24 Do25 Do26 Do27 Do28 Do2...

Page 12: ...rse command to inverter X1 X3 Speed command 0 to 7 steps X4 Warning reset By setting this flag to ON warning input from inverter 30B is set to OFF X5 Enable coast to stop X6 X8 Universal DI Note I O signal assignment to the inverters with an asterisk can be changed The table above describes the initial settings 4 Address representation The address representation in a PLC application is as follows ...

Page 13: ...by an external interrupt signal it is necessary to assign the external interrupt activation flag MX10 266 3 to an event variable Interrupt input is held temporarily by an internal latch circuit The default of the latch circuit status is 0 reset To enable interrupt set the external interrupt enable flag MX10 268 3 to ON The interrupt is disabled the flag is set OFF by default If the interrupt is en...

Page 14: ...e In this mode all memories are initialized assigned initial values or cleared to 0 when this board is powered up No checks is performed on battery connection or voltage The battery less operation mode is set by the CPU running definition under the system definition MX10 0 12 MX10 0 15 Not used MX10 1 0 CPU number Fixed to 0 for this board MX10 1 1 MX10 1 5 Not used MX10 1 6 User ROM card connecti...

Page 15: ...y and I O MX10 2 14 Not used MX10 2 15 User fatal fault Set to ON when the user program turns on one of the user fatal fault flags MX10 14 0 to MX10 16 15 Address Name Description MX10 4 0 MX10 4 1 Not used MX10 4 2 Memory error Set to ON when an error has occurred in the memory of this board MX10 4 3 Not used MX10 4 4 Application error Set to ON when an error has been found in an application prog...

Page 16: ...error Set to ON when an error has occurred in the user program ROM in this board Note Set to ON when an error has occurred in the user ROM card Fatal fault MX10 8 3 Application RAM error Set to ON when an error has occurred in the user program RAM in this board Fatal fault MX10 8 4 MX10 8 14 Not used MX10 8 15 Memory backup error Set to ON when no power failure time data is retained May clear the ...

Page 17: ... factor 16 MX10 15 15 User fatal fault factor 31 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 non fatal error has occurred and the CPU continues running when either one of these bits is set to ON by an application program Changing the bit set to ON to OFF by an application program lets the system recove...

Page 18: ...X10 22 12 MX10 22 14 Not used MX10 22 15 CPU operation definition 2 error Set to ON when the definition of operation of this board is erroneous Fatal fault MX10 23 0 CPU I O group definition error for default tasks Set to ON when input is defined for output Fatal fault MX10 23 1 CPU I O group definition error for level 0 tasks MX10 23 2 CPU I O group definition error for level 1 tasks MX10 23 3 CP...

Page 19: ...ror Set to ON when a task registration error has been found Fatal fault MX10 39 0 Missing level 0 task Set to ON when a task is missing May clear the error condition by using an application program Nonfatal fault MX10 39 1 Missing level 1 task MX10 39 2 Missing level 2 task MX10 39 3 Missing level 3 task MX10 39 4 Level 0 task slow down Set to ON when program execution is deferred and the predefin...

Page 20: ...escription MX10 50 0 Configuration flag Set to ON while the PLC is running normally or in nonfatal fault condition MX10 50 1 MX10 50 15 Not used MX10 51 0 Error flag Set to ON when the PLC stops due to fatal fault or is running in nonfatal fault condition MX10 51 1 MX10 51 15 Not used Configuration flag Error flag Board status OFF OFF Nonexistent ON OFF Normal run or stop ON ON Nonfatal fault run ...

Page 21: ... speed counter MW10 272 MW10 274 MW10 275 1 High speed counter control MW10 272 Address Name Description MX10 272 0 Count control Sets the counting operation of high speed counter ON Stop counting OFF Enable counting MX10 272 1 Current value reset Resets the current value of high speed counter MX10 272 2 Match interrupt enable Sets Enable Disable of match interrupt for high speed counter ON Enable...

Page 22: ... current value coincides with the set value when match interrupt is enabled the set event task is started MX10 275 1 MX10 275 15 Not used 4 High speed counter current value set value preset current value MD10 276 to 284 Address Name Description MD10 276 High speed counter current value Stores the current value of high speed counter MD10 278 Not used MD10 280 High speed counter comparison value set...

Page 23: ...298 1 User ROM card mismatch This flag is set ON if there is a mismatch in content between the built in RAM of this board and the user ROM card flash memory installed there This flag is set OFF when data is transferred from the built in RAM to the user ROM card MX10 298 2 MX10 298 15 Not used 17 Specific announce relay MW10 299 Address Name Description MX10 299 0 Enable constant scanning This flag...

Page 24: ...ersonal computer loader The system configuration is as follows CNIN1 CNIN2 CNIN3 CNIN4 CNOUT1 CNOUT2 PLC loader connector Battery connector This board Personal computer loader Both NW0H CNV and NW0H CA3 are necessary Converter type NW0H CNV Cable type NW0H CA3 3m External I O connector Inverter motor External I O device Inverter parameter PLC program data ...

Page 25: ...memory to tasks in units of bits High speed counter definition Scale x 2 or x 4 2 2 2 Setting parameter of the PLC The PLC parameter setting includes the following items CPU running definition Memory allocation setting I O group setting and High speed counter setting 1 CPU running definition Right click the resource icon in the project tree to display the menu On this menu execute the Settings com...

Page 26: ...tializes the memory before starting operation Data backup errors are not detected Default is battery less run OFF Constant scanning setting Constant scanning function executes PLC processing input arithmetic processing output at a given interval 1 to 255ms If required PLC processing time exceeds the set value of constant scanning this function does not work Default is No Scanning usually I O statu...

Page 27: ... System FB memory 0 word 4096 word 15872 word Enter each memory size into the text box If you click the Default button all set values are reset Assigning variables to memory A program loader assigns variables to memory when a project is compiled Variables are suitably assigned in order in which they are declared Therefore if compilation is performed after the application is changed the variables m...

Page 28: ...Extended setting dialog AT range can be specified for non retain high speed memory high speed area of general memory non retain normal memory general memory area and retain memory If the checkbox for each memory is set OFF it becomes impossible to specify an address of a variable AT specification for the area Specify the AT range in increments of 2 words When SFC language is used and SFC program i...

Page 29: ...Double click the System_Definition icon in the project tree to display the system configuration screen shown below 2 2 System Definition Select the CPU on the system configuration screen and then click the Property button The Module properties dialog is displayed On this dialog click the Parameter button to display the CPU board parameter dialog Property button Double click ...

Page 30: ...displayed Select a task Only the tasks to which a program is assigned are displayed Click this button to register all the I Os on the I O list to the default task automatically Output of expansion I O board can be registered on a point basis For registration procedure refer to Output detail setting Click this button to cancel all registered I Os at a time ...

Page 31: ...expansion board for output detail setting and click the Detail button The following dialog is displayed Initially all bits are selected Set the bit to be controlled by the default task to ON and the bit to be controlled by other task to OFF Then click the OK button Select other task in the level and click the Detail button to display the dialog Set the bit to be assigned to the task to ON Click th...

Page 32: ... speed counter that is built in the CPU board is described below Click the HI Counter Definition tab on the CPU Board parameter dialog to display the following window Select the scale and click the OK button Default is x4 For more information about the high speed counter function refer to Section 4 High speed Counter ...

Page 33: ...loader or by user program or the power is turned off Receive error This bit is set ON if receive error is detected It is set OFF when data is received normally It is possible to control the inverter from an application of the PLC R_READ FB and R_WRITE FB are used for communication between the inverter and an application of the PLC 3 1 Memory for Inverter Communication 15 8 7 0 WM8 0 Status data 1 ...

Page 34: ...O UDINT IN Sets the RS 485 station No of the inverter 1 to 255 VAR_TYPE UINT IN Variable specification method Fixed to UINT 1 REMOTE_VAR Array 1 IN_OUT Address specification 2 word UINT type array variable is connected Enters function code of the inverter in the first word and write No in the second word SIZE UINT IN Send data size Designates the size of send data by the number of words SD Array 2...

Page 35: ...T 0 STATION_NO UDINT IN Sets the RS 485 station No of the inverter 1 to 255 VAR_TYPE UINT IN Variable specification method Fixed to UINT 1 REMOTE_VAR Array 1 IN_OUT Address specification 2 word UINT type array variable is connected Enters function code of the inverter in the first word and write No in the second word SIZE UINT IN Receive data size Designates the size of read data by the number of ...

Page 36: ...Password setting response This is a response to a request for password setting 1E No password registered Although no password is registered a password is entered 20 Undefined command received A command cannot be processed because it is not defined 21 Split parameter error There is no continuity between SEQ_NO and end information 22 Parameter error Connection method setting error The connection met...

Page 37: ...le cable of smaller electrostatic capacity etc Item Specification No of input channels 1 channel Phase 2 Phase signal 90 phase difference Multiplication Multiplication 2 or 4 Max input frequency 50 kHz Counting range Signed 32 bit binary addition and subtraction counter DINT type 2147483648 to 2147483647 Current value reset function Reset by application using system memory for high speed counter C...

Page 38: ...e OFF Disable MX10 272 3 Match occurrence clear Clears the match occurrence status of high speed counter When this flag is set ON a request to clear is issued When the clearing is completed this flag is set OFF by the system MX10 272 4 Match interrupt latch reset Resets the match interrupt latched while interrupt was disabled for high speed counter Note MX10 272 5 Not used MX10 272 6 Comparison va...

Page 39: ...rrupt is enabled the set event task is started MX10 275 1 MX10 275 15 Not used Address Name Description MD10 276 High speed counter current value Stores the current value of high speed counter MD10 278 Not used MD10 280 High speed counter comparison value setting Stores the set value to compare with the current value The value set in this area takes effect when the comparison value set flag MX10 2...

Page 40: ...ulse while A phase is H At the trailing edge of B phase pulse while A phase is L Timing of decremental counting At the leading edge of B phase pulse while A phase is L At the trailing edge of B phase pulse while A phase is H 4 1 4 Operation modes of high speed counter The pulses that are input through the encoder input PA and PB are counted up or down Signed 32 bit data expressed by two s compleme...

Page 41: ...ling edge of B phase pulse while A phase is L At the trailing edge of A phase pulse while B phase is H At the leading edge of A phase pulse while B phase is L Timing of decremental counting At the trailing edge of B phase pulse while A phase is H At the leading edge of B phase pulse while A phase is L At the leading edge of A phase pulse while B phase is H At the trailing edge of A phase pulse whi...

Page 42: ...s 4 1 5 Timing chart 1 Two phase double multiplication 2 Two phase quadruple multiplication t1 t1 T Current counter value A phase PA B phase PB t1 t1 t1 2 5µs or more T 20µs or more t1 t1 T Current counter value A phase PA B phase PB t1 t1 t1 2 5µs or more T 20µs or more ...

Page 43: ...nter 4 2 1 Setting system definition Perform settings of the high speed counter built into this board Click the HI Counter Definition tab on the CPU board parameter dialog box to display the following screen Select the scale and click the OK button Default is x 4 ...

Page 44: ... then ON again after it is written in the comparison value setting register MD10 280 When the setting of comparison value is completed this flag is automatically reset to 0 zero 4 2 6 Match interrupt This function makes an interrupt take place when the current counter value coincides with the set comparison value Flags related to match interrupt are listed below Name Address Description Interrupt ...

Page 45: ...POU assigned to the interrupt start address Priority of interrupt When multiple interrupts occur at a time an interrupt task to which the highest priority is given is executed first and then other interrupt tasks are executed in order of their priority levels When an interrupt of higher priority occurs while an interrupt task is being executed the former must wait till the latter is completed Maxi...

Page 46: ... processing is completed 4 When the match interrupt enable flag MX10 272 2 is set to ON interrupt disable In this case interrupt status is latched held internally and the match occurrence flag MX10 274 0 is set to ON Interrupt latch is possible only for once When interrupt is permitted latch is cleared and interrupt takes place To clear a latched interrupt while interrupt is disabled set the match...

Page 47: ...ted at 3 different levels level 1 level 2 and level 3 by setting passwords for access authentication Level 3 User Level 3 User Level 3 User Level 2 User Level 2 User Level 1 User Level 2 For maintenance Rights of level 3 are not given Level 1 Password authentication is not required No password Level 3 password Level 2 password Level 3 For administrator There is no restriction ...

Page 48: ...O O X Verify before monitor O O O X Clear Program system definition ZIP O X X X Data initialization of resource O O X O Program control O O X X Calendar time display O O O O Calendar time setting O O X O Resource information display Forced reset sampling trace reset trigger reset measurement of task execution time user ROM write protection O O X O View O O O O Failure diagnosis O O O O Redundancy ...

Page 49: ...t allowed to register a password 2 Authentication logon Logon operation to allow operations to the PLC Level 3 user By performing password authentication for each level operations for each level are allowed If passwored authentication is not performed access level 1 is provided Level 2 user Level 1 user 3 Change The registered password is changed Level 3 user Allowed to change passwords for level ...

Page 50: ...LC Click the Password button on the Control dialog to display the Password dialog If the PLC is running stop it Click the Registration Change button to display the Registration Change dialog If the Access level effective checkbox is set to ON the screen changes into the password entry screen for level 2 and 3 If a password is set without setting this checkbox to ON access restriction of the passwo...

Page 51: ...ssword After setting passwords for level 2 and 3 click the OK button The passwords are registered in the PLC and control returns to the Password dialog It is possible to register only the password for level 3 However it is not possible to register only the password for level 2 ...

Page 52: ...n V3 3 2 0 3 Only the password for level 3 is registered Access lavel is effective Authentication is performed with the registered password for level 3 J No restriction Level 3 Password authentication is not performed J Level 2 access right 4 Passwords for level 3 and level 2 are registered Access level is effective Authentication is performed with the registered password for level 3 J No restrict...

Page 53: ... to display the Password dialog Click the Password button to display the Password dialog The current access level is indicated Control dialog of access level 1 Indicates Level 1 when password authentication has not completed initial state Click the Authentication button to display the Authentication dialog Enter the registered password and click the OK button The authenticated access level is indi...

Page 54: ...red password Click the Password button on the Control dialog to display the Password dialog Click the Password button to display the Password dialog The current access level is indicated Click the Registration Change button to display the Registration Change dialog As shown below a user with access level 2 cannot change the password for level 3 ...

Page 55: ...Password Change the password for access level 2 and click the OK button The following dialog appears Clicking the Yes button returns control to the Password dialog The current access level is not changed Note While the PLC is running it is not possible to change the password ...

Page 56: ... registered passwords Only users with access level 3 can clear passwords Click the Password button on the Control dialog to display the Password dialog Click the Password button to display the Password dialog The current access level is indicated Click the Clear button to display the Clear dialog Clicking Yes button clears all passwords ...

Page 57: ...3 and level 2 12 steps of program memory is consumed If there is not 12 steps or more available space in the program memory it is not possible to set the password In addition when a program with maximum steps is downloaded to the PLC in which a password with the access level is registered the 3 level access restriction function becomes disabled 4 Downloading a program When a password of 3 level ac...

Page 58: ...Bank Ningyo cho Bldg 5 7 Nihonbashi Odemma cho Chuo ku Tokyo 103 0011 Japan Phone 81 3 5847 8011 Fax 81 3 5847 8172 URL http www fujielectric co jp fcs eng Information in this manual is subject to change without notice ...

Reviews: