Page 3
Safety Instructions Qualified personnel must transport, assemble, install, and maintain this equipment. Properly qualified personnel are persons who are familiar with the transport, assembly, installation, and operation of equipment. The qualified personnel must know and observe the following standards and regulations: IEC364resp.CENELEC HD 384 or DIN VDE 0100 IEC report 664 or DIN VDE 0110 National regulations for safety and accident prevention or VBG 4...
Page 4
REVISION HISTORY DESCRIPTION DATE APPVD Preliminary Manual 11/05/12 Added Power PMAC support and address settings 09/24/13 based upon 603958-102 Corrected ACC72EX.Data8[i] references 10/21/13 Added C code and setup examples; corrected typos 07/29/15 DCDP Fixed Jumper E2 description 03/17/16 Added KC Conformity 10/17/18 Added environmental specifications table 09/14/20...
MOUNTING AND INSTALLATION ..................11 THEORY OF OPERATION ..................... 12 UBUS Interface ..........................12 How ACC-72EX Works ......................12 Turbo PMAC Memory ........................13 Power PMAC Memory ......................... 13 Hilscher ComX Module Addressing to Turbo PMAC Addressing Conversion ......14 Hilscher ComX Module Addressing to Power PMAC Addressing Conversion ......
Page 6
SOFTWARE SETUP ........................72 Required Software Packages ......................72 SyCon.NET Software Setup ......................72 ACC-72EX Setup Assistant ......................80 Turbo PMAC Setup for Using ACC-72EX .................. 82 Initialization PLC ........................82 Watchdog Function ........................83 Enabling the Communication Bus ................... 83 Locating the Input/Output Data Image in PMAC ..............
This manual provides the information needed to configure ACC-72EX, a fieldbus/real-time Ethernet interface for the Turbo or Power UMAC. The ACC-72EX is equipped with a “gateway” daughter card that allows the UMAC (also referred to as host application) to send and receive data through the supported fieldbus/real-time Ethernet protocols.
ACC-72EX User Manual SPECIFICATIONS Environmental Specifications Description Specification Notes Operating Temperature 0°C to 55°C Storage Temperature -25°C to 70°C Humidity 10% to 95 % Non-Condensing specifications...
ACC-72EX User Manual Agency Approval and Safety Item Description CE Mark EN61326-1 EN55011 Class A Group 1 EN61000-4-2 EN61000-4-3 EN61000-4-4 EN61000-4-5 EN61000-4-6 Flammability Class UL 94V-0 EMI: KN 11 EMS: KN 61000-6-2 UKCA 2016 No. 1091 사 용 자 안 내 문...
System malfunction can occur due to noise/chatter if the ACC-72EX is placed outside of the recommended order as seen in the illustration above. Note that the ACC-72EX is a Fieldbus device and should be placed adjacent to the CPU, and as close as possible to ensure smooth communication.
DPRAM. UBUS Interface The UBUS is Delta Tau’s bus interface for the UMAC controller. The ACC-72EX maps to the UBUS as a DPRAM style board. It occupies contiguous memory locations (both X and Y memory for Turbo PMAC) of the lower two bytes of the 24-bit (middle 16 bits of each 32 bit word for Power PMAC), DPRAM addresses.
M6000->Y:$06C000,0,16,U Turbo PMAC Memory Organization Power PMAC Memory Power PMAC uses 32-bit data bus architecture. ACC-72EX Memory is accessed in Power PMAC data structures or their equivalent #define statements. The #define statements are included later in this manual. .Udata16[0] .Udata16[1]...
ACC-72EX User Manual Hilscher ComX Module Addressing to Turbo PMAC Addressing Conversion As explained in previous sections, Turbo PMAC places 4 bytes of Hilscher ComX memory data in each PMAC memory word. This means that for each address offset increment on the PMAC side, there will be 4 increments of offset addresses on the Hilscher DPRAM side.
Page 15
Definition Type : DP ==4 bytes Address Mod(INT(Offset/2),2) Definition Type : Y Start (PMAC Address) PMAC Address = ACC-72EX Based address + Definition Type : X INT(Offset/4) An address conversion tool is provided in the ACC-72EX Setup Assistant software. Theory of Operation...
ACC-72EX User Manual Hilscher ComX Module Addressing to Power PMAC Addressing Conversion In Power PMAC, specific Acc72EX[i] data structures have been implemented which allow bit-wide, byte-wide, 2-byte and 4-byte access to Hilscher ComX Dual Ported RAM. Acc72EX[i].Udata16[j] structures can be used for individual bit access, both for read and for write purpose.
E-point jumper E3 on the ACC-72EX controls the base address and range on the UBUS. Since each ACC-72EX uses full-13 bit addressing, it consumes all the memory addressable through each chip select. As a result, two is the maximum number of ACC-72EX boards that can be used in a Turbo UMAC rack. Turbo PMAC...
Selection of UMAC CPU architecture. This selection affects the data bus and provides contiguous data addressing for the DPRAM: 1-2 Turbo PMAC 2-3 Power PMAC Selection of base address for ACC-72EX: 1-2 Selects Y/X:$6C000 - $6FFFF (Acc72EX[0]) 2-3 Selects Y/X:$74000 - $7FFFF (Acc72EX[1]) Connects DPRAM interrupt to UBUS IRQ-1...
The USB connection is not a galvanically isolated connection. The ground of the PC will be connected to the ground of the UMAC system through the USB connection, which can damage components on the PC and/or ACC-72EX. Make sure that there is no potential difference between the grounds on both ends.
ACC-72EX User Manual DPRAM MEMORY MAP Below is the standard memory map of address offsets found in the DPRAM of the ACC-72EX module. Start and end addresses for each of the memory blocks are specified both in Hilscher offset (0x notation for hexadecimal) and Turbo PMAC offset ($ notation for hexadecimal) notation.
$0000. It holds information about the system itself (netX, netX operating system) and provides a mailbox transfer mechanism for system-related messages or packets. ACC-72EX Setup Assistant software uses the data available in this channel to generate the information in the memory map output file.
Page 23
ACC-72EX User Manual Channel Information Block The system block includes information about all the other channels and their availability on the COMX module. This information is used to locate and identify different channels in the system. Hilscher Documentation ACC-72EX Setup Assistant...
The handshake channel provides a mechanism that allows the synchronizing of data transfer between the UMAC CPU and ACC-72EX dual-port memory. The handshake channel brings all handshake registers from other channel blocks together in one location. The handshake register could be moved from the handshake block to the beginning of each of the communication channels.
Page 25
UMAC via the system mailbox and to handle certain changes of state function. They also hold information about the status of the ACC-72EX Hilscher module and can be used to execute certain commands in the module (for a module-wide reset, for example).
Page 26
ACC-72EX User Manual netX System Flags The ACC-72EX Hilscher module firmware writes to the netX system register; UMAC reads this register. The netX system register is located at address offset $80 in the dual-port memory. netX System Flags bNetxFlags (ACC-72EX UMAC) Bit No.
Page 27
$81 in the dual-port memory. bHostFlags – UMAC writes, netX reads Bit 15 14 13 12 11 10 Reserved Host System Flags bHostFlags (UMAC ACC-72EX) Bit No. Definition / Description Reset (HSF_RESET) The Reset flag is set by the UMAC to execute a system wide reset. This forces the system to restart.
Page 28
It also informs the UMAC about its current network state. The UMAC reads this register. usNetxFlags – netX writes, UMAC reads Bit 15 14 13 12 11 10 Reserved Communication Channel Flags usNetXFlags (ACC-72EX UMAC) DPRAM Memory Map...
Page 29
ACC-72EX User Manual Definition / Description Communicating (NCF_COMMUNICATING) The NCF_COMMUNICATING flag is set if the protocol stack has successfully opened a connection to at least one of the configured network slaves (for master protocol stacks), respectively has an open connection to the network master (for slave protocol stacks). If cleared, the input data should not be evaluated, because it may be invalid, old or both.
Page 30
The netX protocol stack reads this register. usHostFlags – UMAC writes, netX reads Bit 15 14 13 12 11 10 Reserved Communication Channel Flags usHostFlags (UMAC ACC-72EX) DPRAM Memory Map...
Page 31
ACC-72EX User Manual Bit No. Definition / Description 0, 1 Reserved, set to 0 Host Change Of State Command (HCF_HOST_COS_CMD) The HCF_HOST_COS_CMD flag signals a change in the state of the UMAC. A new state is set in the ulApplicationCOS variable in the communication control block. The protocol stack on the netX then toggles the NCF_HOST_COS_ACK flag in the netX communication flags back acknowledging that the new state has been read.
Page 32
ACC-72EX User Manual Application Handshake Cells Although these cells are not supported yet, the following structure groups have been defined for backward compatibility as a placeholder: netX Communication Flags Host Communication Flags DPRAM Memory Map...
ACC-72EX User Manual Communication Channel The communication channel structure is mainly dependent on the protocol firmware and COMX module. However, there are common sub-block structures which are common to all protocols. Control Block The control block of a dual-port memory features a Watchdog function to allow the operating system running on the netX to supervise the host application and vice versa.
Page 34
ACC-72EX User Manual Bit No. Definition / Description Lock Configuration Enable (RCX_APP_COS_LOCK_CONFIG_ENABLE) The Lock Configuration Enable flag is used together with the Lock Configuration flag above. If set, this flag enables the execution of the Lock Configuration command in the netX firmware.
Page 35
ACC-72EX User Manual Bit No. Definition / Description Ready (RCX_COMM_COS_READY) The Ready flag is set as soon as the protocol stack is started properly. Then, the protocol stack awaits a configuration. As soon as the protocol stack is configured properly, the Running flag is set.
Page 36
ACC-72EX User Manual Communication Channel Error This field holds the current error code of the communication channel. If the cause of error is resolved, the communication error field is set to zero (= RCX_S_OK) again. Not all of the error codes are supported in every implementation.
Page 37
ACC-72EX User Manual changes to FAILED. For protocols that support non-cyclic communication only, the slave state is set to OK as soon as a valid configuration is found. Value Definition / Description UNDEFINED OK. No Fault. FAILED. At least one slave failed...
Auto-Generated Dual-Ported Memory Map ACC-72EX Setup Assistant Software, designed for use with Turbo PMAC, provides some level of automation in the identification of Hilscher COMX modules by generating a memory map file, suggested M-Variable definitions for important registers, and appropriate macro names.
ACC-72EX User Manual Memory Map Generator The Memory Map Generator section of the software identifies the ACC-72EX cards in a UMAC system and generates both a memory map as a text file and M-Variable definition file with proper addressing, both of which indicate the ACC-72EX-based address selection.
Page 40
ACC-72EX User Manual HilscherMemoryMap_$6C000.txt File Content Notes Delta Tau Data Systems, Inc. ACC-72EX Setup Assistant Auto-generated Memory Map ACC-72EX Address: $6C000 Base address of the ACC- 72EX selected in the Memory Map Generator section netX Identification: netX The identification cookie...
Page 41
ACC-72EX User Manual |--- Subblock 4: MAILBOX Size: 128 bytes Start Offset: $6C060 Transfer Direction: IN (netX to Host System) Transfer Type: DPM (Dual-Port Memory) Handshake Mode: UNKNOWN Handshake Bit: + Block 1: Channel Type: Handshake Size of Channel: 256 bytes...
Page 42
ACC-72EX User Manual Transfer Direction: OUT (Host System to netX) Transfer Type: DPM (Dual-Port Memory) Handshake Mode: BUFFERED, HOST CONTROLLED Handshake Bit: |--- Subblock 6: PROCESS DATA IMAGE Size: 5760 bytes Start Offset: $6CA60 Transfer Direction: IN (netX to Host System)
Page 43
ACC-72EX User Manual Transfer Type: DPM (Dual-Port Memory) Handshake Mode: BUFFERED, HOST CONTROLLED Handshake Bit: |--- Subblock 4: MAILBOX Size: 1600 bytes Start Offset: $6D210 Transfer Direction: IN (netX to Host System) Transfer Type: DPM (Dual-Port Memory) Handshake Mode: UNKNOWN...
Page 44
ACC-72EX User Manual Suggested M-Variable Definition File Here is a sample macro name and suggested M-Variable definition file. MacroNameDefinition_$6C000.h File Content #define SI_abCookie_0_ M6000 #define SI_abCookie_1_ M6001 #define SI_abCookie_2_ M6002 #define SI_abCookie_3_ M6003 #define SI_ulDpmTotalSize M6004 #define SI_ulDeviceNumber M6005 #define SI_ulSerialNumber...
Memory simultaneously, several handshaking modes can be used to guarantee data consistency. Each sub-block defines the type of handshaking, if any, it requires. The ACC-72EX Setup Assistant software output file lists the type of handshaking required for each of the sub-blocks available on the COMX module.
Page 56
ACC-72EX User Manual Hilscher Documentation ACC-72EX Setup Assistant usWaitingPackages SRMB_usWaitingPackages ulDest SRMB_ulDest ulSrc SRMB_ulSrc ulDestId SRMB_ulDestId ulSrcId SRMB_ulSrcId ulLen SRMB_ulLen ulId SRMB_ulId ulState SRMB_ulState ulCmd SRMB_ulCmd ulExt SRMB_ulExt ulRout SRMB_ulRout … SRMB_ultData0 .. SRMB_ultData20 The size of a packet is always at least 40 bytes. Depending on the command, a packet may or may not have a payload in the data field (tData).
Page 57
ACC-72EX User Manual Identifier The ulId field is used to identify a specific packet among others of the same kind. That way the application or driver can match a specific reply or confirmation packet to a previous request packet. The receiving task does not change this field and passes it back to the originator of the packet.
ACC-72EX User Manual About System and Channel Mailbox The preferred way to address the netX operating system, rcX, is through the system mailbox. The preferred way to address a protocol stack is through its channel mailbox. All mailboxes, however, have a mechanism to route packets to any communication channel or the system channel.
ACC-72EX User Manual Command and Acknowledge To ensure data consistency over the content of a mailbox, the firmware uses a pair of flags, each for one direction. Engaging these flags gives access rights alternating to either the user application or the netX firmware.
Page 60
ACC-72EX User Manual The following flowcharts illustrate how the transfer mechanism (send and receive packets) works. In order to send a packet, first the function checks if the size of the packet to be sent exceeds the mailbox size. If both the Host Send Mailbox Command flag and the netX Send Mailbox Acknowledge flag are either set or cleared, the host application is allowed to send the packet.
Page 61
ACC-72EX User Manual In order to receive a packet, the function checks if the netX Receive Mailbox Command flag and the Host Receive Mailbox Acknowledge flag have different values. If so, the host application is allowed to access the mailbox. When the host is done copying data from the mailbox, the host toggles the Host Receive Mailbox Acknowledge flag to give control to the netX firmware.
ACC-72EX User Manual Using ulSrc and ulSrcId Generally, a netX protocol stack is addressed through its communication channel mailbox. The example below shows how a host application addresses a protocol stack running in the context of the netX chip. The application is identified by a number (#444 in this example). The application consists of three processes numbered #11, #22 and #33.
ACC-72EX User Manual Client/Server Mechanism Depending on the message destination or packet protocol, the UMAC program or application can act as a client or a server. This section explains both methods, but selection of the appropriate method depends on the destination or protocol option.
DMA (Direct Memory Access) Mode However, the modules used in ACC-72EX only support the DPM mode, and only Hilscher PCI cards support DMA mode. In DPM Mode, handshaking between the UMAC (host) program and netX is required for any data transfer.
Page 65
ACC-72EX User Manual Step-by-Step Procedure Step 1 The protocol stack sends data from the internal OUT buffer to the network and receives data from the network in the internal IN buffer. Step 2 The application has control over the dual-port memory and exchanges data with the input and output data images in the dual-port memory.
Page 66
ACC-72EX User Manual Time-Related View The following figure shows the procedure in a time-related view. Output Data Exchange 1. The protocol stack constantly transmits data from the buffer to the network. 2. The application has control over the dual-port memory and can copy data to the output data image.
ACC-72EX User Manual In case of a network fault (e.g. disconnected network cable), a slave firmware keeps the last state of the input data image. As soon as the firmware detects the network fault, it clears the Communicating flag in the netX communication flags. The input data should then no longer Note be evaluated.
ACC-72EX User Manual Reset Command System Reset vs. Channel Initialization There are several methods to restart the netX firmware. The first is called “System Reset.” The System Reset affects the netX operating system, rcX, and the protocol stacks. It forces the chip to immediately stop all running protocol stacks and the rcX itself.
Page 69
ACC-72EX User Manual Value Definition/Description $55AA55AA System reset cookie The image below illustrates the steps the host application has to perform in order to execute a systemwide reset on the netX chip through the dual-port memory. System Reset Timing The duration of the reset outlined above depends on the firmware. Typically, the NSF_READY flag is cleared within around 100 –...
Page 70
ACC-72EX User Manual Below is the sequence: CC0_RCX_APP_COS_INIT=1 CC0_RCX_APP_COS_INIT_ENABLE=1 HCCC0_HCF_HOST_COS_CMD=1 During channel initialization, the RCX_COMM_COS_READY flag and the RCX_COMM_COS_RUN flag are cleared together. The RCX_COMM_COS_READY flag stays cleared for at least 20 ms before it is set again, indicating that the initialization has finished. The RCX_COMM_COS_RUN flag is set if a valid configuration was found.
ACC-72EX User Manual System Reset through Packets The netX chip can be reset using a packet instead of the dual-port memory. The request packet is passed through the system mailbox. All open network connections are interrupted immediately, regardless of their current state. Reinitializing the channel is not allowed if the database is locked.
Hilscher Corporation. With the power off, plug the ACC-72EX into the UBUS backplane and turn on the power to the UMAC rack. Connect the diagnostic port to a USB port on the PC using a micro-USB type cable.
Page 73
ACC-72EX User Manual Start a new project or load an existing project from the File menu: Select the COMX module to which the USB is connected from the Fieldbus protocol list. In this example, an EtherNet/IP module has been selected:...
Page 74
ACC-72EX User Manual Drag and drop the module onto the BusLine in the netDevice window (notice that the module can only be inserted on the BusLine). Establish USB communication to the COMX gateway by right-clicking on the device icon and selecting “Configuration…”:...
Page 75
ACC-72EX User Manual In the netDevice Configuration window, select the Driver folder under Settings folder in the NavigationArea, check the checkmark box for netX Driver on the driver list, and click Apply: Select the netXDriver node under the Driver folder in the Navigation Area and select the port resembling the USB connection to the COMX module.
Page 76
ACC-72EX User Manual Check Windows Device Manager in order to identify which COM port provides the connection to the Hilscher COMX module. Note Software setup...
Page 77
SCtrl_ulSystemCommandCOS=$55AA55AA Note HCSC_HSF_RESET=1 Note that ACC-72EX Setup Assistant software automatically resets the cards if it cannot detect the identification cookie. The rest of the steps are protocol/module dependent, and it is strongly recommended to follow the directions for these modules in Hilscher documentation available through their website. The current example will be continued with specifics to EtherNet/IP Scanner/Adapter setup.
Page 78
ACC-72EX User Manual Now that the COMX driver for communication between the PC and COMX module using the diagnostic port has been set up, go through protocol specific setup parameters under the Configuration folder in the Navigation Area. Software setup...
Page 79
ACC-72EX User Manual After finishing modifying the settings for the device, press the OK button. Back in the netDevice tree, right click on the device icon, and select Connect (as shown below). Once connected, right click on the device icon one more time and select Download (as shown below).
Third party slave modules can be added to that list by going to “Import Device Descriptions…” in the Network tab: See Appendix C for an example setup using an ACC-72EX Ethernet IP slave with a third party Ethernet IP master PLC controller.
Page 81
The program asks for a folder location to save the M-Variable definition and memory map files. This will generate three files which are named based upon the ACC-72EX base address. The M-variable definition and its header file can be used in writing PLCs and motion programs in PMAC.
Hilscher. Initialization PLC Recall that ACC-72EX requires a reset after each power up, power cycle, $$$ (reset), or $$$*** (factory default reset). This can be achieved with a startup (or initialization) PLC. Example: CLOSE...
CC0_RCX_APP_COS_BUS_ON=1 // Setting the Bus On flag for 1st ACC-72EX CC0_RCX_APP_COS_BUS_ON_ENABLE=1 // Enabling the execution of Bus On Flag for 1st ACC-72EX S_CC0_RCX_APP_COS_BUS_ON=1 // Setting the Bus On flag for 2nd ACC-72EX S_CC0_RCX_APP_COS_BUS_ON_ENABLE=1 // Enabling the execution of Bus On Flag for 2nd ACC-72EX...
ACC-72EX User Manual Locating the Input/Output Data Image in PMAC Although the ACC-72EX Setup Assistant software defines M-Variables for accessing setup registers and flags in COMX modules, it does not assign any M-Variables for input/output data images. However, starting address and size of each input/output processed data image in’s PMAC memory addressing format are calculated and included as a part of the memory map file that is generated.
ACC-72EX User Manual |--- Subblock 6: PROCESS DATA IMAGE Size: 5760 bytes Start Offset: $6CA60 Transfer Direction: IN (netX to Host System) Transfer Type: DPM (Dual-Port Memory) Handshake Mode: BUFFERED, HOST CONTROLLED Handshake Bit: |--- Subblock 7: HIGH PRIORITY DATA IMAGE...
Page 86
ACC-72EX User Manual This example demonstrates a 16-bit integer register transfer. Notice that only the first 16-bit portion of the integer in P200 will be transferred. CLOSE END GAT DEL GAT #include "M-VariableDefinition_$6C000.pmc" #include "M-VariableDefinition_$74000.pmc" #define Master_OutputData1 M2000 #define Master_InputData1...
ACC-72EX dual ported RAM from Power PMAC, no additional software is required for memory mapping and/or identification in comparison to Turbo PMAC. This section of the manual covers Power PMAC’s built in data structures for ACC-72EX in addition to providing examples for header files, start-up and handshaking PLCs.
Page 88
Index values j in the square brackets can be integer constants in the range 0 to 262,143, or local L- variables. No expressions or non-integer constants are permitted. The size of the DPRAM is dependent on the ACC-72EX communication option and installed Hilscher ComX module. Acc72Ex[i].Udata16[j] is located in the same registers as Acc72Ex[i].Data8[2*j] to Acc72Ex[i].Data8[2*j+1], Acc72Ex[i].Idata16[j], Acc72Ex[i].Idata32[j/2] and...
Page 89
Index values j in the square brackets can be integer constants in the range 0 to 262,143, or local L- variables. No expressions or non-integer constants are permitted. The size of the DPRAM is dependent on the ACC-72EX communication option and installed Hilscher ComX module. Acc72Ex[i].Udata32[j] is located in the same registers as Acc72Ex[i].Data8[4*j] to Acc72Ex[i].Data8[4*j+5], Acc72Ex[i].Idata16[2*j] to Acc72Ex[i].Idata16[2*j+1],...
ACC-72EX User Manual C Programming Access to ACC-72EX Structures One can use the following header file full of functions to read from and write to the aforementioned Acc72EX[i] structures from a C program. The input argument CardIndex is i and ArrayIndex is j as above.
Page 91
ACC-72EX User Manual void Acc72EX_SetIdata32(unsigned int CardIndex, unsigned int ArrayIndex, Input) unsigned int *myptr = (unsigned int *)piom + (DPRCSBase + CardIndex * 0x100000) / 4; myptr[ArrayIndex] = ((Input << 16) >> 8); myptr[ArrayIndex + 1] = ((Input >> 16) << 8);...
/* ACC-72EX Power PMAC Project Header /* This header file provides macro definitions for most common registers in Hilsche COMX modules /* used in ACC-72EX. /* Instructions: /* Uncomment the related #define depending on ACC-72EX option /***********************************************************************************************/ //#define __PROFIBUS_DP_Master__ //#define __PROFIBUS_DP_Slave__...
Sys.BusCtrl[15]=$4646 global CommErrorFlag=0; Initialization PLC Recall that ACC-72EX requires a reset after each power up, power cycle, $$$ (reset), or $$$*** (factory default reset). This can be achieved with a startup (or initialization) PLC. Example: // ACC-72EX initialization PLC /****************************************/...
ACC-72EX User Manual // Toggle Communication Channel 0’s Change of State Acknowledge bit in // order to read the CC0_RCX_COMM_COS_RUN which is a part of Communication // Channel 0 State Register HCCC0_HCF_NETX_COS_ACK = HCCC0_HCF_NETX_COS_ACK ^ 1 (CommErrorFlag==0) while ((CC0_RCX_COMM_COS_RUN) == 0)
Locating the Input/Output Data Image in PMAC The header file provided for use with ACC-72EX provides proper addressing and offsets for each of the PDOs available for each communication module. There are also pointers declared in the header file and are defined as a part of the initialization PLC shown above.
Page 105
ACC-72EX User Manual // ACC-72EX Reading from PDO Sample PLC /****************************************/ open Acc72EX_PDO_ReadPLC if(HCCC0_NCF_PD0_IN_CMD == HCCC0_HCF_PD0_IN_ACK) // If CMD flag and ACK flags are // equal, then the input data image // register can be read P201=CC0_PD0_IN16(0); // read the input data image register...
DIAGNOSTICS LEDs There is one system LED (SYS LED) per ACC-72EX. SYS LED is always present as described below. There are up to 4 LEDs per communication and application channel. These LEDs, like the communication channel LED (COM LED), are network-specific and are described separately.
ACC-72EX User Manual DeviceNet – Master – OPT20 The following table describes the meaning of the LEDs for the comX communication modules when the firmware of the DeviceNet Master protocol is loaded to the comX communication module: MNS LED (COM0)
ACC-72EX User Manual CANopen – Slave – OPT31 The following table describes the meaning of the LEDs for the comX CANopen Slave communication modules (COMX-CA-CO/ COMX-CNCOS) when the firmware of the CANopen Slave protocol is loaded to the comX communication module:...
ACC-72EX User Manual EtherCAT – Master – OPT60 The following table describes the meaning of the LEDs for the comX Real-Time Ethernet communication modules (COMX 100CA-RE/ COMX 100CN-RE) when the firmware of the EtherCAT Master protocol is loaded to the comX communication module:...
ACC-72EX User Manual EtherCAT – Slave – OPT61 The following table describes the meaning of the LEDs for the comX Real-Time Ethernet communication modules (COMX 100CA-RE/ COMX 100CN-RE) when the firmware of the EtherCAT Slave protocol is loaded to the comX communication module:...
ACC-72EX User Manual EtherNet/IP – Scanner/Master – OPT70 The following table describes the meaning of the LEDs for the comX Real-Time Ethernet communication modules (COMX-CA-RE/ COMX-CNRE) when the firmware of the EtherNet/IP Scanner (Master) protocol is loaded to the comX communication module:...
ACC-72EX User Manual EtherNet/IP – Adaptor/Slave – OPT71 The following table describes the meaning of the LEDs for the comX Real-Time Ethernet communication modules (COMX-CA-RE/ COMX-CNRE) when the firmware of the EtherNet/IP Adapter (Slave) protocol is loaded to the comX communication module:...
ACC-72EX User Manual Open Modbus/TCP – OPT80 The following table describes the meaning of the LEDs for the comX Real-Time Ethernet communication modules (COMX 100CA-RE/ COMX 100CN-RE) when the firmware of the Open Modbus/TCP protocol is loaded to the comX communication module:...
ACC-72EX User Manual PROFINET IO – Controller – OPT90 The following table describes the meaning of the LEDs for the comX Real-Time Ethernet communication modules (COMX 100CA-RE/ COMX 100CN-RE) when the firmware of the PROFINET IO-RT Controller protocol is loaded to the comX communication module:...
ACC-72EX User Manual PROFINET IO – Device – OPT91 The following table describes the meaning of the LEDs for the comX Real-Time Ethernet communication modules (COMX-CA-RE/ COMX-CNRE) when the firmware of the PROFINET IO-RT-Device protocol is loaded to the comX communication module:...
CompactLogix controller (1769-L18ERM-BB1B) as a master. SYCON.net for netX 1.310 was used in this example. With the power off, plug the ACC-72EX into the UBUS backplane, and then power the UMAC rack. Connect the diagnostic port to a USB port on the PC using a micro-USB type cable.
Page 117
ACC-72EX User Manual Select the COMX module, to which the USB is connected, from the Fieldbus protocol list: Drag and drop the module onto the BusLine in the netDevice window (notice that the module can only be inserted on the BusLine):...
Page 118
ACC-72EX User Manual Establish USB communications to the COMX gateway by right clicking on the device icon and selecting “Configuration…”: In the netDevice Configuration window, select the Driver folder under Settings folder in the Navigation Area, check the checkmark box for netX Driver on the driver list, and click Apply:...
Page 119
ACC-72EX User Manual Select the netX Driver node in Driver folder in the Navigation Area, and select the port for the USB connection to the COMX module. Click Save and Apply (just click OK if Apply is grayed out): Note: You can Check Windows Device Manager in order to identify which COM port provides the connection to the Hilscher COMX module: Appendix A –...
Page 120
Make sure the device receives a system wide reset using the PMAC suggested M-variables ulSystemCommandCOS and HSF_RESET registers as shown here. SCtrl_ulSystemCommandCOS=$55AA55AA Note HCSC_HSF_RESET=1 Note that ACC-72EX Setup Assistant software automatically resets the cards if it cannot detect the identification cookie. Appendix A – Setup Examples...
Page 121
ACC-72EX User Manual Set the IP address for the COMX module in the General Configuration window: Set Connections: Appendix A – Setup Examples...
ACC-72EX User Manual Set Instance IDs and Data lengths in the Assembly window. 240 is the maximum length for the CompactLogix 1769-L18ERM-BB1B controller. RSLogix 5000 Setup RSLogix 5000 version 20 is used in this example. Launch RSLogix, and click on Who Active in the Communications pull down menu to find the CompactLogix controller: Appendix A –...
Page 123
Select the controller, and click the Go Online button to test communication: The Controller OK indicator box should change to green like below: Next, install the EDS file for the Hilscher COMX slave of the ACC-72EX. Go to the Tools pull down menu, and select EDS Hardware Installation Tool:...
Page 124
ACC-72EX User Manual Click Next: Select the Register an EDS file(s) radial button: Browse to and select the Hilsher EDS file. EDS files can be downloaded at hilscher.com at http://www.hilscher.com/hcuk/support_software.html . Click Next. Appendix A – Setup Examples...
Page 125
ACC-72EX User Manual Follow the directions in the remaining windows for finishing the EDS installation. The next step will apply the EDS installation, but first the controller needs to be offline. Click the Go Offline selection under the Communications tab (Go Offline is displayed when the controller is online, and Go Online is displayed when offline).
Page 126
ACC-72EX User Manual The created entry should appear under Ethernet in the Control Organizer. Right-click on it, and select Properties: Under the General tab, set the IP address of the ACC-72EX: Appendix A – Setup Examples...
Page 127
ACC-72EX User Manual Check the settings under the Connection tab: Double-click on Controller Tags, and open the Monitor Tags tab: Appendix A – Setup Examples...
Page 128
ACC-72EX User Manual Click on “+” to expand the input data entries. Now input values from the ACC-72EX can be seen in the Value column (controller must be online). Click on “+” to expand the output data entries. The values seen in the Value column should now be seen as inputs in the ACC-72EX.
Page 129
Click on the File/Misc. tab, and then drag and drop COP (copy) onto a rung. Look for a green dot to appear on the left side of the rung when the cursor is hovered there, and then drop the COP function. To copy all the ACC-72EX inputs into corresponding CopactLogix outputs, set Source COMX_RE_EIS:I.Data[0],...
CLOSE open plc2 clr timer =4000 msec // Reset Time-out Timer //M_CC0_RCX_APP_COS_APP_READY=1 IF (M_HCSC_HSF_HOST_COS_CMD = M_HCSC_NSF_HOST_COS_ACK) M_CC0_RCX_APP_COS_BUS_ON=1 // Setting the Bus On flag for 1st ACC-72EX M_CC0_RCX_APP_COS_BUS_ON_ENABLE=1 M_HCSC_HSF_HOST_COS_CMD = M_HCSC_HSF_HOST_COS_CMD^1 ENDIF timer = 1000 msec // Reset Time-out Timer ENABLE PLC 28...
Page 131
ACC-72EX User Manual M_HCCC0_HCF_PD0_OUT_CMD = M_HCCC0_HCF_PD0_OUT_CMD^1 // Toggling the CMD flag (^: XOR) ENDIF CLOSE OPEN PLC 11 CLEAR IF (M_HCCC0_NCF_PD0_IN_CMD = M_HCCC0_HCF_PD0_IN_ACK) // If CMD flag and ACK flags are M_HCCC0_HCF_PD0_IN_ACK = M_HCCC0_HCF_PD0_IN_ACK ^ 1 // toggle the acknowledge bit...
Need help?
Do you have a question about the ACC-72EX and is the answer not in the manual?
Questions and answers