background image

Summary of Contents for SYSMAC-XR005

Page 1: ...Sysmac Library User s Manual for EtherCAT N Smart Series Library W549 E1 06 SYSMAC XR005...

Page 2: ...ed for damages resulting from the use of the information contained in this publication Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other countries for O...

Page 3: ...meters for an OMRON E3NW Sensor Communications Unit an EtherCAT type You can use this library to reduce manpower of programming when implementing the processing for a Sensor Communications Unit This m...

Page 4: ...n what to do and what not to do to ensure proper operation and performance Additional Information Additional information to read as required This information is provided to increase understanding or m...

Page 5: ...3 Manual Structure Sysmac Library User s Manual for EtherCAT N Smart Series Library W549...

Page 6: ...f Precautionary Information 8 Symbols 8 Cautions 9 Precautions for Correct Use 10 Related Manuals 11 Revision History 14 Procedure to Use Sysmac Libraries 15 Procedure to Use Sysmac Libraries Installe...

Page 7: ...5 CONTENTS Sysmac Library User s Manual for EtherCAT N Smart Series Library W549...

Page 8: ...purchase price of the non complying Product provided that in no event shall Omron be responsible for warranty repair indemnity or any other claims or expenses regarding the Products unless Omron s ana...

Page 9: ...anies shall not be responsible for the user s programming of a programmable Product or any consequence thereof Data presented in Omron Company websites catalogs and other materials is provided as a gu...

Page 10: ...ing disassembly The triangle symbol indicates precautions including warnings The specific operation is shown in the triangle and explained in text This example indicates a precaution for electric shoc...

Page 11: ...Read all related manuals carefully before you use this library Emergency stop circuits interlock circuits limit circuits and similar safety measures must be provided in external control circuits Check...

Page 12: ...and EtherCAT slaves or stop the Eth erCAT communications until the processing for this function block ends normally or ends in an error During a restore do not use the measurement data for the E3NW to...

Page 13: ...Learning the basic specifi cations of the NX series NX1P2 CPU Units includ ing introductory information designing installation and maintenance Mainly hard ware information is pro vided An introductio...

Page 14: ...n NJ NX series CPU Unit The instructions in the instruction set IEC 61131 3 specifications are described NY series Instructions Reference Manual W560 NY532 NY512 Learning detailed specifica tions on t...

Page 15: ...al Cat No O030 when programming Sysmac Studio Version 1 Operation Manual W504 SYSMAC SE2 Learning about the operat ing procedures and func tions of the Sysmac Studio Describes the operating procedures...

Page 16: ...umber on the front and back covers of the manual Revision code Date Revised content 01 April 2015 Original production 02 December 2015 Corrected mistakes 03 July 2016 Added compatible models Changed t...

Page 17: ...15 Sysmac Library User s Manual for EtherCAT N Smart Series Library W549 Procedure to Use Sysmac Libraries...

Page 18: ...ries Version Information To use Sysmac Libraries you need the Sysmac Studio version 1 14 or higher 1 Start the Sysmac Studio and open or create a new project in which you want to use Sysmac Libraries...

Page 19: ...an NJ NX series CPU Unit or an NY series Industrial PC the device icon is displayed in the Multiview Explorer 3 Add the desired Sysmac Library to the list and click the OK Button The Sysmac Library f...

Page 20: ...All Programs from the Main Menu 1 Start the Sysmac Studio and open a project in which any old version Sysmac Library is included 2 Select Project Library Show References Precautions for Correct Use If...

Page 21: ...Procedure to Use Sysmac Libraries Installed Using the Installer Sysmac Library User s Manual for EtherCAT N Smart Series Library W549 4 Add the desired Sysmac Library to the list and click the OK Butt...

Page 22: ...s you need the Sysmac Studio version 1 14 or higher 1 Start the Sysmac Studio and create a new project in which you want to use Sysmac Libraries 2 Connect the computer to the CPU Unit or the Industria...

Page 23: ...uploaded Sysmac Stutio to the specified folder on the computer if they are not present However the Sysmac Studio does not install library files to the specified folder on the computer if they are pre...

Page 24: ...Procedure to Use Sysmac Libraries Uploaded from a CPU Unit or an Industrial PC 22 Sysmac Library User s Manual for EtherCAT N Smart Series Library W549...

Page 25: ...23 Sysmac Library User s Manual for EtherCAT N Smart Series Library W549 Common Specifications of Function Blocks...

Page 26: ...for enable type function blocks Common input variables and output variables used in functions and function blocks are as follows Definition of Input Variables and Output Variables Variable I O Data t...

Page 27: ...when the processing ends in an error the processing is in progress or the execution condition is not met Done BOOL OK Done The variable changes to TRUE when the processing ends normally It is FALSE wh...

Page 28: ...ErrorID Error Code and ErrorIDEx Expansion Error Code The error codes are retained even after Error changes to FALSE but ErrorID is set to 16 0000 and ErrorIDEx is set to 16 0000 0000 when Execute ch...

Page 29: ...Series Library W549 Aborted Execution Errors Busy Done CommandAborted Error 16 00000000 16 0000 ErrorID ErrorIDEx Execute Busy Done CommandAborted Error 16 0000 16 0000 ErrorID 16 00000000 16 00000000...

Page 30: ...ontrol amount for motion control temperature control etc Enabled is FALSE when the value of CalcRslt Calculation Result is incorrect In such a case do not use CalcRslt In addition after the function b...

Page 31: ...nual for EtherCAT N Smart Series Library W549 Errors Busy Enabled Error 16 0000 16 0000 16 0000 ErrorID ErrorIDEx Enable ErrorID ErrorID ErrorID ErrorID 16 00000000 16 00000000 ErrorID ErrorID ErrorID...

Page 32: ...our levels For details on nesting refer to the CPU Unit software user s manual You cannot use the upward differentiation option for this function block Execute type function blocks cannot be re execut...

Page 33: ...ary User s Manual for EtherCAT N Smart Series Library W549 Individual Specifications of Function Blocks Function block name Name Page Backup_E3NW E3NW Parameter Backup P 32 Restore_E3NW E3NW Parameter...

Page 34: ...sy Error ErrorID ErrorIDEx Function Block and Function Information Item Description Library file name OmronLib_EC_E3NW_V1_2 slr Namespace OmronLib EC_E3NW Function block and function number 00015 Sour...

Page 35: ...put 0 2 0 s 1 to 65535 0 1 to 6553 5 s 0 to 65535 0 1 s 0 2 0 s Done Done Output TRUE Normal end FALSE Error end execution in progress or execution condition not met TRUE or FALSE Busy Executing Outpu...

Page 36: ...an Bit strings Integers Real num bers Times durations dates and text strings BOOL BYTE WORD DWORD LWORD USINT UINT UDINT ULINT SINT INT DINT LINT REAL LREAL TIME DATE TOD DT STRING Execute OK NodeAdr...

Page 37: ...nstalled in C OMRON Data Attachement when libraries are installed Extract the ZIP file for the applicable series and save the files in an SD memory card A backup file is binary data that has the name...

Page 38: ...changes to TRUE when Execute changes to TRUE When backup file creation is ended Done changes to TRUE If an error occurs when execution of the function block is in progress Error changes to TRUE and Bu...

Page 39: ...nce manual for the maximum number of instructions that can be executed at the same time An error will occur in the following cases Error will change to TRUE a No object list file exists b The EtherCAT...

Page 40: ...roduct Code of the backup target node Use object lists that match the ProductCode of the backup tar get node 16 3C0F 16 00000003 Unsupported Sensor Amplifier Unit A Sensor Amplifier Unit that is not s...

Page 41: ...from the file or directory specified for the function block Or change the file name of the file to write 16 140B 16 00000000 Too Many Files Open The maximum number of open files was exceeded when open...

Page 42: ...ot write pro tected Also confirm that the same instance is not being executed and that parameters are not being restored to the same node 2 Execute BACKUP_E3NW_instance 1 Make sure that the target sla...

Page 43: ...b EC_E3NW Backup_E3NW RESTORE_E3NW_instance OmronLib EC_E3NW Restore_E3NW InitTrigger BOOL FALSE BackupTrigger BOOL FALSE Backup execution condition RestoreTrigger BOOL FALSE Restore execution conditi...

Page 44: ...Backup_E3NW 42 Sysmac Library User s Manual for EtherCAT N Smart Series Library W549...

Page 45: ..._EC_MBXSlavTbl ARRAY 1 N 1 OF BOOL 1 N 192 for NJ501 NJ301 and NJ101 N 512 for NX701 Message Communications Enabled Slave Table _Card1Ready BOOL SD Memory Card Ready Flag Name Data type Default Commen...

Page 46: ...AND _EC_MBXSlavTbl TargetSlave TRUE AND _Card1Ready TRUE AND BackupBusy FALSE AND RestoreBusy FALSE THEN RestoreOperatingStart TRUE RestoreOperating TRUE END_IF RestoreLastTrigger RestoreTrigger Initi...

Page 47: ...rIDEx Function Block and Function Information Item Description Library file name OmronLib_EC_E3NW_V1_2 slr Namespace OmronLib EC_E3NW Function block and function number 00016 Source code published not...

Page 48: ...t Time Input 0 2 0 s 1 to 65535 0 1 to 6553 5 s 0 to 65535 0 1 s 0 2 0 s Done Done Output TRUE Normal end FALSE Error end execution in progress or execution condition not met TRUE or FALSE Busy Execut...

Page 49: ...if the revision of the backup source device is either the same as or older than the revision of the restore destination device If the revision of the backup source device is newer than the revision of...

Page 50: ...k is in progress Error changes to TRUE and Busy Executing changes to FALSE You can find out the cause of the error by accessing the values output to ErrorID Error Code and ErrorIDEx Expansion Error Co...

Page 51: ...number of instructions that can be executed at the same time An error will occur in the following cases Error will change to TRUE a The EtherCAT master is not in a state that allows message communicat...

Page 52: ...y Card is recognized It is FALSE when the SD Memory Card is not recognized TRUE Can be used FALSE Cannot be used _EC_MBX_SlavTbl Message Communica tions Enabled Slave Table Array 1 512 OF BOOL This ta...

Page 53: ...ration of the restore target node 16 3C10 16 00000005 Unsupported Device The device is not supported by this function block Check that the specified device is an E3NW Unit 16 0400 16 00000000 Input Va...

Page 54: ...target slave is not in an operating condition Check the status of the target EtherCAT slave Make sure that the target slave is in a usable status 16 1802 16 00000000 EtherCAT Time out Communications w...

Page 55: ...0E N 1 80 hex 2 RW A OK OK OK OK 400F N 1 80 hex 1 RW A OK OK OK OK 400F N 1 80 hex 2 RW A OK OK OK OK 4010 N 1 80 hex 1 RW A OK OK OK OK 4010 N 1 80 hex 2 RW A OK OK OK OK 4011 N 1 80 hex 1 RW A OK O...

Page 56: ...Restore_E3NW 54 Sysmac Library User s Manual for EtherCAT N Smart Series Library W549...

Page 57: ...55 Sysmac Library User s Manual for EtherCAT N Smart Series Library W549 Appendix...

Page 58: ...s Attributes of Function Blocks and Functions Attributes of Libraries Function Blocks and Functions No 1 1 These numbers correspond to the numbers shown on the screen images in the next section Referr...

Page 59: ...tions on the Sysmac Studio Library Reference Dialog Box Toolbox Pane Ladder Editor a Library Reference Dialog Box When you refer to the libraries the library information is displayed at the locations...

Page 60: ...olbox Pane The text by OMRON which is shown on the right of the library name 1 indicates that this library was provided by OMRON c Ladder Editor Place the mouse on a function block and function to dis...

Page 61: ...the memory capacity of the user s Controller Customizing the data types to suit the user defined data types Note that you can access only function blocks and functions whose Source code published not...

Page 62: ...Referring to Function Block and Function Source Codes 60 Sysmac Library User s Manual for EtherCAT N Smart Series Library W549...

Page 63: ......

Page 64: ...IL 60169 U S A Tel 1 847 843 7900 Fax 1 847 843 7787 Regional Headquarters OMRON EUROPE B V Wegalaan 67 69 2132 JD Hoofddorp The Netherlands Tel 31 2356 81 300 Fax 31 2356 81 388 Contact www ia omron...

Reviews: