background image

ifm

 Programming Manual AS-i Gateway AC14 (4.2.x) 

12/2017 

Content 
 

7.3

 

Access input and output data .............................................................................................27

 

7.3.1

 

Options to access input and output data .................................................................................... 27

 

7.3.2

 

Validity of the interface data ....................................................................................................... 28

 

7.3.3

 

Process data of the AS-i slaves .................................................................................................. 29

 

7.3.4

 

Fieldbus data .............................................................................................................................. 31

 

7.4

 

Use functions of the ifm package .......................................................................................33

 

7.4.1

 

Control interface of the ifm function blocks ................................................................................. 33

 

7.4.2

 

Configure system ....................................................................................................................... 35

 

7.4.3

 

Configure AS-i master ................................................................................................................ 35

 

7.4.4

 

Configure AS-i slaves ................................................................................................................. 35

 

7.4.5

 

Manage AS-i network ................................................................................................................. 36

 

7.4.6

 

Send commands to the system and the AS-i master .................................................................. 39

 

7.5

 

Use visualisations ..............................................................................................................40

 

7.5.1

 

Supported visualisation types ..................................................................................................... 40

 

7.5.2

 

Add visualisation to a project ...................................................................................................... 41

 

7.5.3

 

Create a visualisation ................................................................................................................. 42

 

7.5.4

 

Configure visualisation ............................................................................................................... 43

 

7.6

 

Configure task processing .................................................................................................45

 

7.6.1

 

Configure main task ................................................................................................................... 45

 

7.6.2

 

Set parameters for visualisation task .......................................................................................... 45

 

7.7

 

Testing the PLC application ...............................................................................................46

 

8

 

Operation 

47

 

8.1

 

Transfer CODESYS project to device ................................................................................48

 

8.1.1

 

Activate CODESYS PLC ............................................................................................................ 49

 

8.1.2

 

Download the application to the device ...................................................................................... 50

 

8.1.3

 

Delete application from AS-i Gateway AC14 .............................................................................. 50

 

8.1.4

 

Delete boot application via SD card ........................................................................................... 51

 

8.2

 

Operating states of the PLC ...............................................................................................52

 

8.2.1

 

Operating mode of the PLC ........................................................................................................ 52

 

8.2.2

 

States of the PLC application ..................................................................................................... 52

 

8.2.3

 

Switch operating states .............................................................................................................. 53

 

8.3

 

Reset ..................................................................................................................................54

 

8.3.1

 

Supported reset variants ............................................................................................................ 54

 

8.3.2

 

Reset the application (warm) ...................................................................................................... 55

 

8.3.3

 

Reset the application (cold) ........................................................................................................ 55

 

8.3.4

 

Reset the application (origin) ...................................................................................................... 55

 

8.4

 

Display web visualisation ...................................................................................................56

 

8.5

 

Display target visualisation ................................................................................................57

 

9

 

Appendix 

58

 

9.1

 

Library ACnnnn_Utils.library ..............................................................................................59

 

9.1.1

 

Overview: AS-i functions (FB_ASi) ............................................................................................. 60

 

9.1.2

 

Overview: System functions (FB_System) ............................................................................... 106

 

9.1.3

 

Enumeration types and complex variables ............................................................................... 113

 

9.2

 

Library ACnnnn_SYS_CMD.library ..................................................................................121

 

9.2.1

 

ACnnnn_SysCmd ..................................................................................................................... 121

 

10

 

Index 

129

 

11

 

ifm weltweit • ifm worldwide • ifm à l’échelle internationale 

131

 

 

   

Содержание AC1401

Страница 1: ...Programming Manual AS i Gateway AC14 with fieldbus interfaces AC1401 02 AC1411 12 AC1421 22 Firmware release 4 2 x CODESYS release 3 5 9 73 or higher English 7391196 00 12 2017...

Страница 2: ...pment System 11 4 2 ifm AS i Package 12 4 2 1 Components of the ifm package 12 4 2 2 Install the ifm package 13 4 2 3 Update ifm package 13 4 2 4 Uninstall the ifm package 14 5 Getting started 15 5 1...

Страница 3: ...visualisation task 45 7 7 Testing the PLC application 46 8 Operation 47 8 1 Transfer CODESYS project to device 48 8 1 1 Activate CODESYS PLC 49 8 1 2 Download the application to the device 50 8 1 3 De...

Страница 4: ...A www odva org EtherNet IP is the property of the ODVA EtherCAT is a registered trade mark and patented technology licensed by Beckhoff Automation GmbH Germany IO Link www io link com is the property...

Страница 5: ...he device as a table Operating instructions Notes on mounting and electrical installation of the device Set up description of the operating and display elements maintenance information scale drawing D...

Страница 6: ...f components and function libraries CODESYS installation and first steps Remarks about the installing of the CODESYS programming system First steps for handling the CODESYS programming system After th...

Страница 7: ...caused by tampering with the device or incorrect use by the operator Observe these operating instructions Adhere to the warning notes on the product 2 2 Required background knowledge 13323 This docum...

Страница 8: ...ed 2 3 Warnings used 13685 WARNING Death or serious irreversible injuries may result CAUTION Slight reversible injuries may result NOTICE Property damage is to be expected or may result Important note...

Страница 9: ...he AS i Gateway AC14 the following software components are required Component Description Release CODESYS Development System Programming software CODESYS Development System f r PLC programming accordi...

Страница 10: ...to be programmed using the CODESYS Development System 3 5 SP9 Patch 7 Hotfix 3 must be licensed A valid license label can be purchased from ifm electronic Article description Article no 1x CODESYS V3...

Страница 11: ...2 The CODESYS Development System short CODESYS is a platform for the creation of PLC applications according to the standard IEC 61131 3 4 1 1 Install CODESYS Development System 18596 To install the so...

Страница 12: ...he following components Component Description AC14SL devdesc xml Device description of the basic module ACnnnn_EthernetAdapterSL devdesc xml Device description of Ethernet interface ACnnnn_Modbus_Mast...

Страница 13: ...ays the installed ifm package Press Exit to close the package manager 4 2 3 Update ifmpackage 12267 To update an installed package CODESYS for ifm SmartPLC StandardLine 1 Download new version of the i...

Страница 14: ...programming interface appears 2 Uninstall the ifm package Select Tools Package Manager to access the package manager Window Package Manager shows the installed packages Activate Display version check...

Страница 15: ...15 ifm Programming Manual AS i Gateway AC14 4 2 x 12 2017 Getting started ifm AS i Package 5 Getting started Create CODESYS project 16 Use CODESYS online help 19 Set the programming interface 20 15858...

Страница 16: ...project with AS i Gateway AC14 17 Overview Project structure with AS i Gateway AC14 18 17129 Familiarise yourself with the following CODESYS functions Create CODESYS project Online help CODESYS Develo...

Страница 17: ...d software components are correctly installed Installation p 11 CODESYS successfully started 1 Create a new project Select File New Project The window to enter the project properties appears Set the f...

Страница 18: ...lowing structure 1 Device AC14 represents the AS i Gateway AC14 in the CODESYS project Configure PLC p 21 2 PLC Logic contains the PLC applications of the AS i Gateway AC14 Objects of a PLC applicatio...

Страница 19: ...andard functions and methods of CODESYS will not be described At the beginning of each section there will be a reference to the corresponding chapters of the CODESYS online help To access the online h...

Страница 20: ...nterfaces 2 Select communication settings In the device tree Double click on Device ifm_SmartPLC_StandardLine In the editor window Click on Communiation Settings tab Editor window shows the communicat...

Страница 21: ...ESYS Development System Reference user interface Objects object device and generic device editor The PLC is configured via the Generic Device Editor of the CODESYS programming system The programmer ca...

Страница 22: ...e help Fieldbus support EtherCAT Configuration Editor Configure modbus TCP master slave Online help Fieldbus support Modbus Configuration Editor 6 2 1 Available fieldbus stacks 18518 The Ethernet inte...

Страница 23: ...with the AS i Gateway AC14 2 Add fieldbus stack In the device tree Right click on X3 Ethernet In the context menu Select Add Device Window Add device appears Set the following values 1 Vendor Select A...

Страница 24: ...61131 3 7 1 Objects of a PLC application 7143 All objects of a PLC application are listed as subelements of the node Application in the device tree In the basic configuration a PLC application contai...

Страница 25: ...k on PLC_PRG PRG The editor window shows the programming surface Program the application in the editor 7 2 1 Use remanent variables 18522 The PLC of the device supports the use of remanent variables V...

Страница 26: ...nuous Function Chart CFC Ladder Diagram LD Structured Text ST ACnnnn_Utils library X X X X X X ACnnnn_SYS_CMD library X X X X X X Legend X is supported 7 2 3 Change system time of the device 18271 WAR...

Страница 27: ...ng Reference Declaration AT Declaration Definition of an ALIAS for an IEC address Online help CODESYS Development System Programming Reference Data Types References Coupling of a program variable to a...

Страница 28: ...ess areas of the i o interfaces provide valid data values while in a certain operating mode Output control I O interfaces Updated address areas channels Manual ASi_Master_1 AS i 1 Input IB IW ASi_Mast...

Страница 29: ...ster 1 Analogue input and output data p 30 3 Digital input and output data of the slave at AS i master 2 Digital input and output data p 30 4 Analogue input and output data of the slaves at AS i maste...

Страница 30: ...ual variables visible To access the digital process data of the slaves at AS i master 2 in a system with 2 AS i masters Double click on ASi_2_binaryIO Analogue input and output data 17626 To access th...

Страница 31: ...mitted by the higher level fieldbus PLC Outputs data of the AS i slaves p 32 Consider validity of the interface data Validity of the interface data p 28 Input and output data of the fieldbus interface...

Страница 32: ...digital output data of the slaves at AS i master 1 Device window In the project tree double click on ASi_1_binaryIO Editor window shows a structured list of the digital output data In column Variable...

Страница 33: ...structure for a targeted processing of the FB and react to possible errors Number and designation of the FB control signals provide information about the type of FB execution FB with one time executi...

Страница 34: ...cution interrupted prior to completion All signal outputs are set to FALSE and all internal states are reset FB with cyclic execution 17141 Function blocks which when activated cyclically perform thei...

Страница 35: ...of the device use the following function blocks Name Description Reference Set_Mode Set operating mode of the AS i master projecting mode or protected operation Set_Mode p 93 Set_ASi_Config Set diagn...

Страница 36: ...The following complex variables are available Name Description Reference ASI_NET The complex variable contains the complete process image inputs and outputs of an AS i network ASI_NET STRUCT p 117 AS...

Страница 37: ..._Data p 104 Alternatively this data can be read separately with the following FB Read parameter images 17569 Name Description Reference Get_InputParameter Read parameters of the inputs of the slaves a...

Страница 38: ...eference Get_CDI Read configuration data image IO ID ID1 ID2 of all slaves on the AS i master Get_CDI p 79 Get_PCD Read permanent configuration data of all slaves IO ID ID1 ID2 on the AS i master Get_...

Страница 39: ...SysCmd p 121 System command overview Table System commands p 122 Overview AS i master commands Table AS i master commands p 123 By default the FB ACnnnn_SysCmd is hidden To add the FB to a program mod...

Страница 40: ...Online help CODESYS visualisation 7 5 1 Supported visualisationtypes 17661 The AS i Gateway AC14 supports the following CODESYS visualisation types Web visualisation WebVisu A WebVisu allows graphic...

Страница 41: ...t Project Add Object Visualization Add Visualization window appears Enter a designation for the visualization in the Name field and click on Add to apply CODESYS adds the following elements to the dev...

Страница 42: ...sation 17061 Create a seperate visualisation object for each target and web visualisation To create a visualisation for a PLC application In the device tree double click on Visualization The visualisa...

Страница 43: ...nge the attributes of the web visualisation In device tree Double click on Web Visualisierung The editor window shows attributes of the web visualisation Set the following values 1 Field Start Visuali...

Страница 44: ...o change the properties of the target visualisation In device tree Double click on TargetVisu Editor window shows properties of the target visualisation Set the following values 1 Start Visualization...

Страница 45: ...many applications In the event of non optimum device performance the user must determine and set the optimum task characteristics himself To change parameters of a task In device tree Double click on...

Страница 46: ...ication 18594 Familiarise yourself with the following CODESYS functions Test and fault elimination Online help CODESYS Development System Testing and Debugging To ensure permanent operation without er...

Страница 47: ...AS i Gateway AC14 4 2 x 12 2017 Operation Testing the PLC application 8 Operation Transfer CODESYS project to device 48 Operating states of the PLC 52 Reset 54 Display web visualisation 56 Display tar...

Страница 48: ...DESYS project on the device the following component must be transferred to the device application Application Download the application to the device p 50 Observe notes on the operating modes of the PL...

Страница 49: ...as well as the rights of the CODESYS PLC resulting thereof List Output access Checkbox Use PLC CODESYS PLC Programmable Access to AS i inputs Access to AS i outputs Gateway no yes no yes yes no Manua...

Страница 50: ...ad application on the device is in STOP state 3 Create boot application Use Online Create boot application to make the application bootable application storage is non volatile 4 Start boot application...

Страница 51: ...lete the boot application on the device Disable the write protection of the SD card Create a file named KillBootApp txt in the root directory of the SD card Insert the SD card into the SD card slot of...

Страница 52: ...ode the user is logged in to the PLC 8 2 2 States of the PLC application 4136 The applications saved on the device are executed independently in separate tasks A application can have the following sta...

Страница 53: ...ge shows the operating status of the selected application Press Start function key to start the processing of the selected application Application goes to RUN state Optional repeat process for additio...

Страница 54: ...te Standard variables VAR of the application are initialised Remanent variables VAR RETAIN of the application keep their current values Reset the application warm p 55 Reset cold application changes t...

Страница 55: ...the device 8 3 3 Reset the application cold 15687 To reset the application on the PLC choose one of the following options Download the application to the device Download the application to the device...

Страница 56: ...vice p 50 On PC laptop Start web browser Enter the following in the address line and press ENTER to confirm IP address of the device 8080 myvisu htm myvisu is the user defined name of the visualisatio...

Страница 57: ...terface Activate target visualisation via the menu Device manual Show target visualisation OR Switch between target visualisation and menu with the key combination If the device does not react to the...

Страница 58: ...58 ifm Programming Manual AS i Gateway AC14 4 2 x 12 2017 Appendix Display target visualisation 9 Appendix Library ACnnnn_Utils library 59 Library ACnnnn_SYS_CMD library 121 7156...

Страница 59: ...AS i Gateway AC14 4 2 x 12 2017 Appendix Library ACnnnn_Utils library 9 1 Library ACnnnn_Utils library Overview AS i functions FB_ASi 60 Overview System functions FB_System 106 Enumeration types and c...

Страница 60: ...at 61 Get_LAS 63 Get_LDS 65 Get_LPS 67 Get_LCE 69 Get_LCEAS 71 Get_LCEMS 73 Get_LDAE 75 Get_LPF 77 Get_CDI 79 Get_PCD 81 Get_InputParameter 83 Get_OutputParameter 85 Set_AddressMode 87 Set_ASi_Config...

Страница 61: ...ary Symbol in CODESYS Description 16040 The FB reads the physical data of the selected AS i master and provides the values Input parameters 16041 Parameter Data type Description Possible values xExecu...

Страница 62: ...lassic APF i e AS i voltage is below 22 5 V xPF2 BOOL Voltage 19 0V power fail 19V FALSE No AS i power fail 24V APF TRUE AS i power fail 24V APF i e AS i voltage is below 19 0 V wVoltage1 WORD Voltage...

Страница 63: ...n CODESYS Description 16068 The FB reads the list of activated slaves LAS of the selected AS i master and provides the values Input parameters 16069 Parameter Data type Description Possible values xEx...

Страница 64: ...ilable xReady BOOL Signal indicates if the execution of the FB is terminated FALSE FB is inactive or being executed TRUE FB execution is terminated xBusy BOOL Signal indicates if the FB is executed FA...

Страница 65: ...in CODESYS Description 16118 The FB reads the list of detected slaves LDS of the selected AS i master and provides the values Input parameters 16119 Parameter Data type Description Possible values xEx...

Страница 66: ...OOL Signal indicates if the execution of the FB is terminated FALSE FB is inactive or being executed TRUE FB execution is terminated xBusy BOOL Signal indicates if the FB is executed FALSE FB is deact...

Страница 67: ...n CODESYS Description 16130 The FB reads the list of projected slaves LPS at the selected AS i master and provides the values Input parameters 16131 Parameter Data type Description Possible values xEx...

Страница 68: ...xReady BOOL Signal indicates if the execution of the FB is terminated FALSE FB is inactive or being executed TRUE FB execution is terminated xBusy BOOL Signal indicates if the FB is executed FALSE FB...

Страница 69: ...CODESYS Description 16075 The FB reads the list of configuration errors LCE of the selected AS i master and provides the values Input parameters 16076 Parameter Data type Description Possible values x...

Страница 70: ...Configuration error xReady BOOL Signal indicates if the execution of the FB is terminated FALSE FB is inactive or being executed TRUE FB execution is terminated xBusy BOOL Signal indicates if the FB...

Страница 71: ...FB reads the list of existing but not projected slaves List of Configuration Error Additional Slave LCEAS of the selected AS i master and provides the values Input parameters 16099 Parameter Data typ...

Страница 72: ...additional slave 1 Slave exists but not projected xReady BOOL Signal indicates if the execution of the FB is terminated FALSE FB is inactive or being executed TRUE FB execution is terminated xBusy BO...

Страница 73: ...The FB reads the list of projected but missing slaves List of Configuration Error Missing Slave LCEMS at the selected AS i master and provides the values Input parameters 16107 Parameter Data type De...

Страница 74: ...missing slave 1 Slave is projected but not available xReady BOOL Signal indicates if the execution of the FB is terminated FALSE FB is inactive or being executed TRUE FB execution is terminated xBusy...

Страница 75: ...ODESYS Description 16112 The FB reads the double address errors LDAE of the selected AS i master and provides the values in a list Input parameters 16113 Parameter Data type Description Possible value...

Страница 76: ...ess error xReady BOOL Signal indicates if the execution of the FB is terminated FALSE FB is inactive or being executed TRUE FB execution is terminated xBusy BOOL Signal indicates if the FB is executed...

Страница 77: ...n CODESYS Description 16124 The FB reads the list of peripheral faults LPF of the selected AS i master and provides the values Input parameters 16125 Parameter Data type Description Possible values xE...

Страница 78: ...l fault detected xReady BOOL Signal indicates if the execution of the FB is terminated FALSE FB is inactive or being executed TRUE FB execution is terminated xBusy BOOL Signal indicates if the FB is e...

Страница 79: ...ta Configuration Data Image CDI of the slaves at the selected AS i master and provides the values in an array The configuration data of a slave consists of the registers IO ID ID1 and ID2 Input parame...

Страница 80: ...ted TRUE FB execution is terminated xBusy BOOL Signal indicates if the FB is executed FALSE FB is deactivated or FB execution is terminated TRUE FB execution is started but not yet terminated xError B...

Страница 81: ...FB reads the projected configuration data Projected Configuration Data Image PCD of the slaves on the selected AS i master and provides the values in an array Input parameters 16142 Parameter Data typ...

Страница 82: ...ive or being executed TRUE FB execution is terminated xBusy BOOL Signal indicates if the FB is executed FALSE FB is deactivated or FB execution is terminated TRUE FB execution is started but not yet t...

Страница 83: ...ion 16056 The FB reads the input parameters of the slaves on the selected AS i master and provides the values in 2 arrays for single A slaves and B slaves Input parameters 16057 Parameter Data type De...

Страница 84: ...ith address 1B byte 31 slave with address 31B Per byte Bits 0 3 P0 P3 xReady BOOL Signal indicates if the execution of the FB is terminated FALSE FB is inactive or being executed TRUE FB execution is...

Страница 85: ...n 16136 The FB reads the output parameters of the slaves on the selected AS i master and provides the values for S A slaves and B slaves in 2 separate arrays Input parameters 16137 Parameter Data type...

Страница 86: ...ith address 1B byte 31 slave with address 31B Per byte Bits 0 3 P0 P3 xReady BOOL Signal indicates if the execution of the FB is terminated FALSE FB is inactive or being executed TRUE FB execution is...

Страница 87: ...for the selected AS i master Input parameters 16147 Parameter Data type Description Possible values xExecute BOOL Control execution of the FB FALSE Stop FB execution TRUE Start one time FB execution e...

Страница 88: ...tion is terminated xBusy BOOL Signal indicates if the FB is executed FALSE FB is deactivated or FB execution is terminated TRUE FB execution is started but not yet terminated xError BOOL Signal indica...

Страница 89: ...put parameters 16150 Parameter Data type Description Possible values xExecute BOOL Control execution of the FB FALSE Stop FB execution TRUE Start one time FB execution enASi_Master ASI_MASTER Select A...

Страница 90: ...Signal indicates if the FB is executed FALSE FB is deactivated or FB execution is terminated TRUE FB execution is started but not yet terminated xError BOOL Signal indicates if errors occurred while...

Страница 91: ...cute BOOL Control execution of the FB FALSE Stop FB execution TRUE Start one time FB execution enASi_Master ASI_MASTER Select AS i master Master_1 AS i master 1 Master_2 AS i master 2 dwLPS_SA_Slaves...

Страница 92: ...Busy BOOL Signal indicates if the FB is executed FALSE FB is deactivated or FB execution is terminated TRUE FB execution is started but not yet terminated xError BOOL Signal indicates if errors occurr...

Страница 93: ...d operation projection mode of the selected AS i master Input parameters 16156 Parameter Data type Description Possible values xExecute BOOL Control execution of the FB FALSE Stop FB execution TRUE St...

Страница 94: ...OOL Signal indicates if the FB is executed FALSE FB is deactivated or FB execution is terminated TRUE FB execution is started but not yet terminated xError BOOL Signal indicates if errors occurred whi...

Страница 95: ...es at the selected AS i master Input parameters 16160 Parameter Data type Description Possible values xExecute BOOL Control execution of the FB FALSE Stop FB execution TRUE Start one time FB execution...

Страница 96: ...Busy BOOL Signal indicates if the FB is executed FALSE FB is deactivated or FB execution is terminated TRUE FB execution is started but not yet terminated xError BOOL Signal indicates if errors occurr...

Страница 97: ...rs 17020 Parameter Data type Description Possible values xReady BOOL Signal indicates if the execution of the FB is terminated FALSE FB is inactive or being executed TRUE FB execution is terminated xB...

Страница 98: ...Control execution of the FB FALSE Stop FB execution TRUE Start one time FB execution enASi_Master ASI_MASTER Select AS i master Master_1 AS i master 1 Master_2 AS i master 2 enASi_Slave ASI_SLAVE Addr...

Страница 99: ...FB is disabled or presently executed or FB was executed without error TRUE An error occurred when the FB was executed wDiagnostic WORD Diagnostic information List below Diagnostic codes Diagnostic cod...

Страница 100: ...Data type Description Possible values xExecute BOOL Control execution of the FB FALSE Stop FB execution TRUE Start one time FB execution enASi_Master ASI_MASTER Select AS i master Master_1 AS i maste...

Страница 101: ...l indicates if errors occurred while the FB was executed FALSE FB is disabled or presently executed or FB was executed without error TRUE An error occurred when the FB was executed wDiagnostic WORD Di...

Страница 102: ...Data type Description Possible values xExecute BOOL Control execution of the FB FALSE Stop FB execution TRUE Start one time FB execution enASi_Master ASI_MASTER Select AS i master Master_1 AS i maste...

Страница 103: ...FB execution is started but not yet terminated xError BOOL Signal indicates if errors occurred while the FB was executed FALSE FB is disabled or presently executed or FB was executed without error TRU...

Страница 104: ...ration errors LCE List of configuration errors additional slave LCEAS List of configuration errors missing slave LCEMS List of peripheral faults LPF List of double address errors LDAE Configuration da...

Страница 105: ...FB was executed wDiagnostic WORD Diagnostic information List below Diagnostic codes Diagnostic codes 0x0000 No specific error is set 0xnF01 Unknown error 1 0xnF02 Unknown invalid target 1 0xnF03 Unkno...

Страница 106: ...ifm Programming Manual AS i Gateway AC14 4 2 x 12 2017 Appendix Library ACnnnn_Utils library 9 1 2 Overview System functions FB_System Get_FieldbusInfo 107 QuickSetupASi_Master 109 Set_TimeDate 111 17...

Страница 107: ...54 The FB reads information about the fieldbus and provides the values in a list The following information are read Status of the fieldbus Fieldbus type Status of the Ethernet connection at port X6 an...

Страница 108: ...is terminated xBusy BOOL Signal indicates if the FB is executed FALSE FB is deactivated or FB execution is terminated TRUE FB execution is started but not yet terminated xError BOOL Signal indicates...

Страница 109: ...parameters 15903 Parameter Data type Description Possible values xExecute BOOL Control execution of the FB FALSE Stop FB execution TRUE Start one time FB execution xMaster1 BOOL Select AS i master 1...

Страница 110: ...OOL Signal indicates if the FB is executed FALSE FB is deactivated or FB execution is terminated TRUE FB execution is started but not yet terminated xError BOOL Signal indicates if errors occurred whi...

Страница 111: ...time and date of the device using the transmitted input values Input parameters 15988 Parameter Data type Description Possible values xExecute BOOL Control execution of the FB FALSE Stop FB execution...

Страница 112: ...s executed FALSE FB is deactivated or FB execution is terminated TRUE FB execution is started but not yet terminated xError BOOL Signal indicates if errors occurred while the FB was executed FALSE FB...

Страница 113: ...ration types ENUM 16176 The library ACnnnn_Utils provides the following enumeration types ENUM ASI_ADDRESS_MODE ENUM 16177 Designation Description Variable Data type Value ASI_ADDRESS_MODE AS i autoad...

Страница 114: ...NT 8 Slave_9 INT 9 Slave_10 INT 10 Slave_11 INT 11 Slave_12 INT 12 Slave_13 INT 13 Slave_14 INT 14 Slave_15 INT 15 Slave_16 INT 16 Slave_17 INT 17 Slave_18 INT 18 Slave_19 INT 19 Slave_20 INT 20 Slave...

Страница 115: ...ACnnnn_Utils library Complex variables STRUCT 15991 The library ACnnnn_Utils library provides complex variables of the data type STRUCT They are used by the FBs but they can also be used by the progr...

Страница 116: ...ORD List of projected S A slaves Each bit represents an AS i address 0 no projected slave 1 projected slave DS10 Slave list LPS LPS_B_Slave DWORD List of active B slaves LCEMS_SA_Slave DWORD List of c...

Страница 117: ...31 OF BYTE Output parameters of the S A slaves Each byte contains parameters of one S A slave Bits 0 3 P0 P3 Bits 4 7 reserved DS14 Image of the output parameters of the slaves PP words 0 15 OutputPar...

Страница 118: ...ns the output data of the digital AS i slaves Name Data type Description Possible values SA_Slave_bin_OUT ARRAY 1 31 OF BYTE Output data of the digital S A slaves 1 byte per S A slave corresponds to t...

Страница 119: ...alogue value channel 4 S or B input slave flags ASI_ANALOG_OUT_ FLAGS Status flags ASI_ANALOG_IN_FLAGS STRUCT p 119 ASI_ANALOG_IN_FLAGS STRUCT 15996 The structure contains the status flags of the anal...

Страница 120: ...nel 2 S or A output slave chan_3 INT Analogue value channel 3 S or B output slave chan_4 INT Analogue value channel 4 S or B output slave flags ASI_ANALOG_OUT_ FLAGS Status flags ASI_ANALOG_OUT_FLAGS...

Страница 121: ...nn_SYS_CMD library Symbol in CODESYS Description 15893 Using the FB individual commands can be sent to the system or to an AS i master Each command refers to the data structures of one of the followin...

Страница 122: ...ned as output parameters results Return values described in the command reply channel data as of word 5 uSizeOut WORD Size of the buffer for the output parameters number of bytes Table System commands...

Страница 123: ...ct current AS i network 0x1004 Command 0x0004 Change LPS 0x1005 Command 0x0005 Change the operating mode of the AS i master 0x1006 Command 0x0006 Change AS i slave address 0x1007 Command 0x0007 Set au...

Страница 124: ...nd 0x0049 CTT2 vendor specific exchange 0x104A Command 0x004A CTT2 device group exchange 0x104B Command 0x004B CTT2 device group selective read from buffer 0x104C Command 0x004C CTT2 device group sele...

Страница 125: ...B is inactive or being executed TRUE FB execution is terminated xError BOOL Signal indicates if errors occurred while the FB was executed FALSE FB is disabled or presently executed or FB was executed...

Страница 126: ...ion uCommandID 0x1103 Corresponding commando channel Command 0x0103 Select user language device manual supplement uTarget 0 System command pDataIn arDataIn Variable of the data type Array of Words arD...

Страница 127: ...mando channel Command 0x010B Read date time NTP settings device manual supplement uTarget 0 System command pDataIn irrelevant since command reply channel uSizeIn irrelevant since command reply channel...

Страница 128: ...0011 Corresponding acyclic data set DS17 AS i master Error lists LCEMS LCEAS LDAE device manual supplement uTarget 1 Master command 1 AS i master 2 pDataIn irrelevant uSizeIn irrelevant pDataOut arDat...

Страница 129: ...Create PLC application 25 D Delete application from AS i Gateway AC14 50 Delete boot application via SD card 51 Description 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 98 100 102 104 107...

Страница 130: ...ation cold 55 Reset the application origin 55 Reset the application warm 55 S Safety instructions 7 Send commands to the system and the AS i master 39 Set communication path to PLC 20 Set parameters f...

Страница 131: ...isy le Grand Cedex phone 33 0820 22 30 01 ifm electronic Ltd Hampton Middlesex TW12 2HD phone 44 20 8213 0000 ifm electronic monoprosopi E P E 15125 Amaroussio phone 30 210 61 800 90 ifm electronic kf...

Отзывы: