This introduction includes recommendations on the handling of the module as well as information about applications and implementation for CPU modules. You may also read details about the mode of operation of the CPU 821x. Chapter 2: Hardware description Different versions of the CPU are available (CPU 821x, CPU 821xDP, CPU 821xNET).
Configuration of the CPU 821xNET............. 4-12 Configuration examples ............... 4-17 Start-up behavior ................. 4-28 System properties of the CPU 821xNET ..........4-29 Communication links to foreign systems ..........4-31 Test program for TCP/IP connections ..........4-34 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 5
SFC 237 - RECEIVE_ALL ..............7-43 SFC 238 - CTRL1 ................7-44 Chapter 8 Instruction list ..............8-1 Alphabetical instruction list ..............8-2 Abbreviations ..................8-5 Registers ....................8-7 Addressing examples ................8-8 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 6
Bit logic instructions (Bit) ..............8-27 Word logic instructions with the contents of ACCU1 ......8-33 Timer instructions ................8-33 Counter instructions................8-35 ADAM specific diagnostic entries ............8-36 Appendix....................A-1 Index ...................... A-1 ADAM 8000 Manual CPU 821x – Rev 1.1...
CPU ADAM 821x User Considerations User considerations This manual describes the CPU 821x as well as all the versions of the Objective and product. It contains a description of the construction, project implementation contents and the application of the product.
Safety information CPU ADAM 821x Safety information The CPU 821x is constructed and manufactured for Application specifications • all System ADAM 82xx components • communication and process control • general control and automation tasks • industrial applications • operation within the environmental conditions specified in the technical data •...
Page 9
Construction Ethernet/IP- 4-10 LED's Initial address 4-11 Operating modes 3-13 Communication Overall reset 3-14 Construction Parameters Ethernet interface 2-11 Power supply LED's 2-11 Project engineering Links 4-31 Include GSD file Network planning ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 10
PLC header 4-32 Hints Principles GSD file1-8, 3-5, 5-4, 5-6, 6-6, 6- Profibus-DP Addressing 5-4, 6-6 Communication protocol Connectors 6-22 Data consistency 5-3, 6-5 Hardware configurator Data transfer Hardware description Master Slave ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 11
Indicator word ANZW 7-28 Length word 7-32 Parameter 7-22 V-bus cycle Parameter transfer 7-25 Versions Parameterization error PAFE 7- RECEIVE (SFC 231) 7-37 Wildcard length 4-33 RECEIVE_ALL (SFC 237) 7-43 RESET (SFC 234) 7-40 ADAM 8000 Manual CPU 821x – Rev 1.1...
It also provides certain suggestions on the approach when programming the module and the CPU specifications that are important in this respect. Below follows a description of: • Safety information for users • Construction and operation of the CPU 821x • Programming principles Contents Topic Page Chapter 1 Principles ................
Chapter 1 Principles CPU ADAM 821x Safety information for users ADAM modules make use of highly integrated components in MOS- Handling of technology. These components are extremely sensitive to over-voltages electrostatically that may occur during electrostatic discharges. sensitive modules The following symbol is attached to modules that can be destroyed by...
Important notes for the deployment of MPI cables! Deploying MPI cables at the ADAM CPUs from Advantech, you have to make sure that Pin 1 is not connected. This may cause transfer problems and in some cases damage the CPU! Especially Profibus cables from Siemens, like e.g.
Avoiding high hardware needs (MPI transducer, etc.) you may realize a serial point-to-point connection via the Green Cable and the MP I jack. This allows you to connect components to your ADAM CPU that are able to communicate serial via an MPI adapter like e.g. a visualization system.
7 of Siemens ® on demand on demand peripheral Dig. IN / Dig. OUT / Anal. IN / Anal. OUT / FM / CP The current manual describes the PLC-CPU family CPU 821x compatible to Overview Manuals STEP 7 by Siemens.
CPU ADAM 821x Chapter 1 Principles Overview CPU 821x The ADAM CPU 821x is available in four different versions also differing in Products view: • CPU 821x PLC-CPU • CPU 821xNET PLC-CPU with Ethernet interface • CPU 821xDPM PLC-CPU with Profibus-DP master •...
Chapter 1 Principles CPU ADAM 821x Hints for project engineering For the project engineering of the CPU 821x and the other System 82xx Outline modules connected to the same bus, you use the hardware configurator from Siemens. To address the directly plugged peripheral modules, you have to assign a special address in the CPU to every one.
Page 20
CPU ADAM 821x Chapter 1 Principles The following steps are necessary to project a CPU 821x in the hardware Project configurator from Siemens: engineering CPU 821x with • Start the hardware configurator from Siemens central periphery • Load the delivered ADAM GSD-file from Advantech •...
Page 21
Output (Bytes) CPU 821xDP Input (Bytes) Expansion modules The project engineering of network connections via TCP/IP takes place via Master projecting the configuration tool WinNCS from Advantech. of the CPU 821xNET 1-10 ADAM 8000 Manual CPU 821x – Rev 1.1...
Application fields This series of CPU modules provides access to the peripheral modules of the ADAM System 8xxx. You can use a set of standard commands and programs to interrogate sensors and actuators. One single CPU may address a maximum of central 32 modules.
• Additional function modules can be added quickly and easily by means of plug-in bus extension options. • User-friendly maintenance using a PC via MPI. • Optional Ethernet or Profibus interface. 1-12 ADAM 8000 Manual CPU 821x – Rev 1.1...
Cyclic processing will resume once the reaction has been processed. This means that cyclic processing has the lowest priority. ADAM 8000 Manual CPU 821x – Rev 1.1 1-13...
User program specific control application. The operating modules provide the interfaces to the system routines. CPU 821x operands The following operands are available for programming the CPU 821x: Overview • Process image and periphery • Bit memory/marker • Timers and counters •...
Page 26
You may always access the current data block by means of operands. You may access the following types of data: - individual bits - bytes - words - double words ADAM 8000 Manual CPU 821x – Rev 1.1 1-15...
Chapter 2 Hardware description Chapter 2 Hardware description The CPUs 821x are available in different versions that are described in this Outline chapter. In addition to the hardware description the chapter also contains installation and commissioning instructions and applications for the memory modules.
• CPU 821xDP PLC-CPU with Profibus slave • CPU 821xDPM PLC-CPU with Profibus master All CPUs 821x are available in the versions 8214, 8215 and 8216. • Instruction set compatible with Siemens STEP CPU 821x • MP-Interface for data transfer between PC and CPU •...
Page 29
ADAM-8216- PLC CPU 216 with Ethernet and 128KB of 2BT01 memory ADAM-8953- MMC storage module 0KX00 Green Cable ADAM-8950- PG/AG download cable RS232/MPI, serial 0KB00 (only for usage at ADAM CPUs 8xxx) ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 30
CPU 8216DP ADAM-8216-2BP01 SPS CPU 216 with Profibus slave and 128KB of memory ADAM-8953-0KX00 MMC storage module Green Cable ADAM-8950-0KB00 PG/AG download cable RS232/MPI, serial (only for usage at ADAM CPUs 8xxx) ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 31
Order data Type Order number Description CPU 821xDPM CPU 8214DPM ADAM-8214-2BM01 PLC CPU 214 with Profibus-DP master and 32kByte memory CPU 8215DPM ADAM-8215-2BM01 PLC CPU 215 with Profibus-DP master and 64kByte memory CPU 8216DPM ADAM-8216-2BM01 PLC CPU 216 with Profibus-DP master...
Page 32
24V power supply. The CPUs contain a standard processor with internal program memory for the storage of user-programs. In addition, every CPU 821x is equipped with a socket for a memory module, which is located on the front. Every CPU has an MPI-interface and is instruction set compatible with the ®...
CPU 8216 NET operating mode selector switch Status indicator LEDs Socket for MMC memory card I-interface Connector for 24V DC power supply Status indicator LEDs Ethernet Twisted Pair interface for Ethernet IX-Data ADAM 8216-2BT01 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 34
LEDs status indicator CPU Socket for MMC memory card I-interface Connector for 24V DC power supply LC-Display with keys LEDs status indicator Profibus- DP master Profibus interface in development ADAM 8216-2BM01 ADAM 8000 Manual CPU 821x – Rev 1.1...
The components of the CPU 821x that are described here are components CPU 821x of all the CPUs presented in this manual. The CPUs 821x have a number of LEDs that are used to diagnose bus LEDs conditions and to display the status of a program. The table below describes the diagnostic LEDs and the according colors.
Page 36
Chapter 2 Hardware description CPU ADAM 821x A rechargeable battery is installed on every CPU 821x to safeguard the Battery backup for contents of the RAM when power is removed. This battery is also used to clock and RAM buffer the internal clock.
Page 37
CPU ADAM 821x Chapter 2 Hardware description In addition to the components described in the section on the CPU 821x the CPU 821xNET CPU 821xNET module is provided with 2 further LEDs and an Ethernet interface located at the left-hand side of the module.
Page 38
Chapter 2 Hardware description CPU ADAM 821x In addition to the components described in the section on the CPU 821x the CPU 821xDP CPU 821xDP module is provided with 3 more LEDs and a Profibus interface. The LEDs are located in the left half of the front panel and they are used for LEDs diagnostic purposes.
Page 39
CPU ADAM 821x Chapter 2 Hardware description In addition to the components described in the section on the CPU 821x the CPU 821xDPM CPU 821xDPM module is provided with 4 more LEDs and a Profibus interface. The LEDs are located in the left half of the front panel and they are used for LEDs diagnostic purposes.
The following block diagram shows the basic hardware construction of the CPU 821x modules: RUN/STOP/MRST Voltage monitor Time RESET DC 24V Power supply Memory-Card Processor Clock System 81xx interface circuitry System 82xx backplane bus 2-14 ADAM 8000 Manual CPU 821x – Rev 1.1...
CPU 8215 CPU 8216 Work memory 32kByte 64kByte 128kByte Load memory 40kByte 80kByte 192kByte Cycle time bit operations 0.18µs 0.18µs 0.18µs Cycle time word operations 0.78µs 0.78µs 0.78µs Order-No.: ADAM-8214-1BA01 ADAM-8215-1BA01 ADAM-8216-1BA01 ADAM 8000 Manual CPU 821x – Rev 1.1 2-15...
Page 42
Current consumption max. 380mA ≥ 500V AC Potential separation Status indicator (LEDs) like CPU 821x additionally with LEDs for the Ethernet section Connections/interfaces like CPU 821x additionally with RJ45 socket for Twisted-Pair- Ethernet Ethernet interface Connector RJ45...
Page 43
Current consumption max. 380mA Potential separation ≥ 500V AC Status monitoring (LEDs) like CPU 821x additionally with LEDs for the Profibus section Adapters/interfaces like CPU 821x additionally with 9pin D-type socket (Profibus) Profibus interface Connector 9pin D-type socket...
Page 44
100m at 12 MBaud without repeater, up to 1000m with repeater max. no. of stations 32 stations on every segment without repeater. Expandable to 126 stations with repeater. Dimensions and weight Dimensions (WxHxD) in mm 50.8x76x76 Weight 150g 2-18 ADAM 8000 Manual CPU 821x – Rev 1.1...
Chapter 3 Deployment of the CPU 821x Chapter 3 Deployment of the CPU 821x This chapter describes the deployment of the CPU 821x together with the Outline peripheral modules of the System 82xx. Besides commissioning and start-up behavior you will find here also a description of the project engineering, parameterization, operating modes and test functions.
MMC is transferred into the RAM. Depending on the selected operating mode the CPU switches to RUN resp. stays in STOP. This procedure is fixed in the diagnostic buffer with this entry: "Automatic start OVERALL_RESET (unbuffered POWER-ON)". ADAM 8000 Manual CPU 821x – Rev 1.1...
Please remember that you may access different modules by means of read and write operations on the same address. The addressing ranges of digital and analog modules are different when they are addressed automatically. Digital modules: 0...127 Analog modules: 128...1023 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 48
(0...127) and address digital modules above 127. The following pages describe the required preparations and the procedure for this type of configuration. ADAM 8000 Manual CPU 821x – Rev 1.1...
• Go to Options > Install new GSD-file • Enter all gsd files Now the modules of the ADAM System 82xx have been integrated into the hardware catalog and are available for configuration. ADAM 8000 Manual CPU 821x – Rev 1.1...
Additional Field Devices > IO > ADAM821x. Assign Profibus address 1 to this slave. • Place the ADAM CPU 821x that you want to deploy at plug-in location 0 of the configurator. Plug-in location 0 is mandatory! • Include your System 82xx modules in the location sequence starting from plug-in location 1.
Page 51
Data is transferred between the CPU and the PC via MPI. If your PU has no Transferring the MPI functionality you may use the ADAM "Green Cable" to send the data project serial by a peer-to-peer connection. The ADAM "Green Cable" has the OrderNo.
Per double-click on the CPU 315-2DP you reach the parameterization win- Parameterization dow of your CPU 821x. Via the different registers you may access all CPU 821x under parameters of the CPU 315-2DP. The parameters are those of the CPU CPU 315-2DP 821x from Advantech.
Page 53
Via the different registers you may access all Profibus parameters of the CPU 821x. More information is to find in the chapter "Deployment of the CPU 821xDP". The CPU 821x doesn't use all the parameters that may be defined in the Supported ®...
• Connect your PU resp. PC with your CPU via MPI. Approach If your PU doesn't support MPI, you may use the ADAM "Green Cable" to establish a point-to-point connection. The "Green Cable" has the order number ADAM-8950-0KB00 and may only be used with ADAM CPUs 8xxx.
Page 55
→ In the following two dialog windows you may configure your PC adapter like shown in the picture. Note! Please make sure to adjust the transfer rate to 38400Baud when using the "Green Cable". ADAM 8000 Manual CPU 821x – Rev 1.1 3-11...
Page 56
You may write on the MMC via a write command from the hardware configurator from Siemens or with a MMC reading device from Advantech (OrderNo.: ADAM-8950-0AD00). Thus it is possible to create your applications at the PC, copy them on MMC and transfer them into the CPU by plugging-in the MMC.
• All timer and counters being started by the program are active and the process image is updated with every cycle. • The BASP-signal (outputs inhibited) is deactivated, i.e. all digital outputs are enabled. • RUN-LED • STOP-LED ADAM 8000 Manual CPU 821x – Rev 1.1 3-13...
→ The S-LED blinks (overall reset procedure). • The overall reset has been completed when the S-LED is on permanently. → The S-LED is on. The following figure illustrates the above procedure: 3Sec. 3 Sec. 3-14 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 59
→ The lower LED (without label) blinks. When the reload has been completed, the LED is extinguished. The operating mode of the CPU will be STOP or RUN, depending on the position of the function selector. ADAM 8000 Manual CPU 821x – Rev 1.1 3-15...
Peripheral modules Guiding bars CPU 8216 ADAM 8216-2BA01 CPU 8216 DP ADAM 8216-2BP01 For details on the assembly of System 82xx modules please refer to the System 82xx manual (Order-No.: ADAM-HB97). 3-16 ADAM 8000 Manual CPU 821x – Rev 1.1...
ADAM CPU 821x Chapter 3 Deployment of the CPU 821x Recalling version and performance information As soon as you are online with your CPU 821x you have the possibility to Outline recall the module state. ® You may find the module state in the STEP 7 manager from Siemens under the PLC functions.
The interruption of the processing of statuses does not change the execution of the program but it only shows that the data displayed is no longer valid after from the point where the interrupt occurred. 3-18 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 63
E, A, M, T, Z, and D. The process image of binary and digital operands is modified independently of the operating mode of the CPU 821x. When the operating mode is RUN the program is executed with the modified process variable. When the program continues they may, however, be modified again without notification.
Configuration of the CPU 821xNET............. 4-12 Configuration examples ............... 4-17 Start-up behavior ................. 4-28 System properties of the CPU 821xNET ..........4-29 Communication links to foreign systems ..........4-31 Test program for TCP/IP connections ..........4-34 ADAM 8000 Manual CPU 821x – Rev 1.1...
Stations will only initiate a transmission when the line is unoccupied. In the event that two participants should start transmitting simultaneously, they will detect this and stop transmitting to restart after a random delay time has expired. ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 66
The internal CP of the CPU 821xNET is directly connected to the CPU Communication 821x by means of a Dual-Port-RAM. The Dual-Port-RAM is divided into 4 equal segments called page frames. These 4 page frames are available at the CPU as standard CP interface.
Page 67
Due to the large quantity of acknowledgment receipts that are transferred via an H1 transport connection, the load on the network is appreciably higher under H1 than under TCP/IP, however, under TCP/IP the security of the data is reduced! ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 68
UDP provides a much faster communication link. However, it does not cater for missing data packets, nor does it check the sequence of the packets. UDP is an unsecured protocol. OPEN / CONNECT TCP/IP services ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 69
TCP/IP application Deployment under TCP/IP or H1 Visualization and shop floor data collection via DDE-server H1 / TCP/IP TCP/IP/H1 System 82xx System 82xx H1 / TCP/IP CPU 821x NET CPU 821x NET ADAM 8000 Manual CPU 821x – Rev 1.1...
0.4 to 0.6 mm. CPU 8216NET Twisted Pair- Buchse (jack) Twisted Pair-Stecker (plug) Twisted Pair-Kabel (cable) Sternkoppler (Hub) Spannungs- versorgung (power supply) Tx Rx Tx Rx Tx Rx Tx Rx Tx Rx Tx Rx ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 71
Draw a diagram of the network. Identify every hardware item (i.e. station Drawing a cable, hub). Observe the applicable rules and restrictions. network diagram Measure the distance between all components to ensure that the maximum length is not exceeded. ADAM 8000 Manual CPU 821x – Rev 1.1...
These agreements define the form of the data protocol, the method of bus access and other principles that are important for reliable communications. The ADAM CPU 821xNET was developed in accordance with the standards defined by ISO. International and national committees have defined the following standards...
The network administrator also defines IP addresses. The broadcast address (transmit a message to all stations) is always: 255.255.255.255 Attention! Certain IP addresses are restricted! These addresses are reserved for special services! 4-10 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 74
You may always use the function CP-Init in WinNCS to assign a different address. Attention! The original Ethernet address may not be restored since it is not possible to perform an overall reset of the CP section. ADAM 8000 Manual CPU 821x – Rev 1.1 4-11...
Under "Ethernet" you insert a new station into the network window and enter the configuration data for your station into the parameter window. The basic CP configuration determines the behavior of your station on the network. 4-12 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 76
CP. This operation is available from the configuration to "Module transfer functions" of WinNCS. the CP For transferring the configuration data, please activate the „online functions“ and click on the button INIT: ADAM 8000 Manual CPU 821x – Rev 1.1 4-13...
Page 77
Now switch to the window network and click the according station. Use the right mouse button and choose „Download“. Your project will now be directly transferred into the Flash-ROM of your CP. 4-14 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 78
CPU and CP. At the same time the page frame is erased and the block size between PLC and CP is negotiated. Active data communications may only occur via synchronized page frames. ADAM 8000 Manual CPU 821x – Rev 1.1 4-15...
Page 79
OB1. The blocks SEND_ALL and RECEIVE_ALL perform the actual data- transfer. Purely passive connections only require the components SEND_ALL or RECEIVE_ALL. To protect the data transfer you should integrate various checkpoints that evaluate the indicator word. 4-16 ADAM 8000 Manual CPU 821x – Rev 1.1...
WinNCS. The object of this chapter is to create a small communication system between two ADAM CPU 821xNET that provides a simple approach to the control of the communication processes. Knowledge of the CP handler blocks is required. CP handler blocks are standard function blocks.
Page 81
At this point the purpose and the required settings have been outlined. The programs provide additional details of the configuration of the handler blocks. A detailed description of a suitable configuration of the CPs under control of H1 or TCP/IP is also included. 4-18 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 82
Station 1 Station 2 Request the required station addresses from your system administrator. If necessary, you may enter additional settings into the configuration windows. Details are obtainable from your system administrator. ADAM 8000 Manual CPU 821x – Rev 1.1 4-19...
You configure your H1 connection by inserting an H1 transport connection H1 connections below the stations by means of and entering the following parameters for the stations: Station 1 Station 2 4-20 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 84
You configure your TCP/IP connection by inserting a TCP connection TCP/IP connections below the stations by means of and entering the following parameters for the stations: TCP/IP connections Station 1 Station 2 Please save your project! ADAM 8000 Manual CPU 821x – Rev 1.1 4-21...
Page 85
For the data transfer please activate the online functions and click on the button INIT: Now choose „IP-protocol“ in the Protocol window and type the according IP address. Confirm with [OK]. 4-22 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 86
Repeat this procedure above for station 2 and don’t forget to save the project to Flash-ROM. This concludes the configuration of the CP side. The following pages contain information on the programming for the PLC section. ADAM 8000 Manual CPU 821x – Rev 1.1 4-23...
Page 87
SYNCHRON. OB100 verifies that the synchronization procedure was completed without errors. If an error is detected, the error number is entered into MW100. Operation block OB100: 4-24 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 88
FC1. The partner station answers with RECEIVE (FC2). By means of FC 2 - RECEIVE SEND_ALL the data will be send and received by the partner with the command RECEIVE_ALL. Cycle operation block OB1: FC1 - SEND FC2 - RECEIVE ADAM 8000 Manual CPU 821x – Rev 1.1 4-25...
Page 89
Transfer project MP-interface, you may also use the "Green Cable" (ADAM-8950-0KB00) from Advantech. The "Green Cable" may only be used at the ADAM CPUs of the Systems 8xxx! Please regard the notes about the "Green Cable" in chapter 1! • Connect your PU with the CPU •...
Page 90
You may enter user data starting with DW1. Place the cursor on Modify Entering user data value and enter the value you wish to transfer, e.g. W#16#1111. button transfers the new value in every cycle and the button initiates a single transfer. ADAM 8000 Manual CPU 821x – Rev 1.1 4-27...
• Resynchronization of a CP by the SYNCHRON-HTBs of the CPU (warm start) after it has already been synchronized, • STOP/START-function of the configuration tool WinNCS (warm start), • RESET_ALL (warm start). 4-28 ADAM 8000 Manual CPU 821x – Rev 1.1...
RECEIVE. • one or more cyclic stations place a load on a CP. When resource bottlenecks are encountered, the CP can also initiate the termination of connections. ADAM 8000 Manual CPU 821x – Rev 1.1 4-29...
Page 93
• Please regard, that the Port 7777 is used by WinNCS for communication. This may not be occupied by other applications! 4-30 ADAM 8000 Manual CPU 821x – Rev 1.1...
Length of the Significance source/destination data - source/destination data source/destination data source/destination data block in words. block in words. block in words. block in words. valid range: 1...2048 1...256 1...128 1...128 ADAM 8000 Manual CPU 821x – Rev 1.1 4-31...
Page 95
Error No. =No. ORG identifier Dummy block =FFh DBNR Dummy block length =07 Start address not used Length Dummy block =FFh Dummy block length =02 64K data only if error no.=0 4-32 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 96
64K data if error no.=0 Length The length file contains the number of bytes in a data block. If you are synchronizing with a block size of 6 (512Byte) the length is entered in words. ADAM 8000 Manual CPU 821x – Rev 1.1 4-33...
WRITE AKTIVE connections. Receive configuration window for RECEIVE orders. Send configuration window for SEND orders. System control windows for status requests and toggling between RUN/STOP of the CP. 4-34 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 98
When a status changes in a register, the change is displayed in this window. For reference, your own IP address is also displayed in the window. ADAM 8000 Manual CPU 821x – Rev 1.1 4-35...
Page 99
In this manner you may only display UDP messages. Buttons Connect The connection is established and prepared for the read operation. Read this The data requested is read via this connection. 4-36 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 100
The connection is established and prepared for the write operation. Write this Data entered into the ASCII field is transferred to the CP via the connection that was established by means of Connect. ADAM 8000 Manual CPU 821x – Rev 1.1 4-37...
Page 101
You may also stop the listing by entering a new set of connection parameters. ClearList Clears the received list, new entries will appear at the top of the list. 4-38 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 102
The connection is established and prepared for the write operation. Send this Data entered into the ASCII field is transferred to the CP via the connection that was established by means of Connect. ADAM 8000 Manual CPU 821x – Rev 1.1 4-39...
Page 103
RUN/STOP lever at the CP is in RUN position. SetRun The CP is switched to RUN. This function is only available, if the RUN/STOP lever at the CP is in RUN position. 4-40 ADAM 8000 Manual CPU 821x – Rev 1.1...
Deployment of the CPU 821xDPM ........5-1 Principles ....................5-2 Project engineering CPU with integrated Profibus-DP master ....5-5 Project transfer ..................5-9 DP master operating modes ..............5-12 Commissioning and Start-up behavior..........5-13 ADAM 8000 Manual CPU 821x – Rev 1.1...
Slave equipment Typical slave equipment holds data of peripheral equipment, sensors, actuators or transducers. The ADAM Profibus are modular slave equipment, transferring data between the System 82xx periphery and the leading master. These devices do not have bus access permission in accordance with the Profibus standard.
Page 106
1Byte. That is, the bits of one byte are acquired together and they are transmitted together. Byte-wise consistency is sufficient for the processing of digital signals. ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 107
You are able to over RS485 configure the network as well linear as in a tree structure. Your ADAM Profibus coupler includes a 9pin slot where you link up the Profibus coupler into the Profibus network as a slave.
Note! For the project engineering of the CPU and the Profibus-DP masters a thorough knowledge of the STEP 7 manager and the hardware configura- tor from Siemens is required! ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 109
For the deployment of the Profibus-DP slaves of the Systems ADAM 8xxx from Advantech you have to include the modules into the hardware catalog by means of the GSD-file from Advantech.
Page 110
DP8000. • Assign the Profibus address 1 to this slave. • Place the CPU 821x-2BM01 from Advantech at the plug-in location 0 in your configurator. The plug-in location 0 is mandatory! Now the project engineering of your Profibus-DP master and your CPU is finished.
Page 111
CPU 821xDPM, you approach analog to the ADAMCPU821x system. DP-Slaves Search the concerning Profibus-DP slave ADAM CPU 821x_DP in the hardware catalog and drag&drop it in the subnet of your master. Assign a valid Profibus address to the DP slave (> 3).
ADAM "Green Cable" to establish a serial point-to-point-connection from your PC to MPI. The "Green Cable" has the order no. ADAM-8950-0KB00 and may only be used with the ADAM CPUs of the Systems 8xxx. Please regard the notes about the "Green Cable" in chapter 1! •...
Page 113
Hints for the configuration of a MPI-interface is to find in the documentation Configure MPI of your programming software. Here, only the usage of the ADAM "Green Cable" together with the pro- gramming tool from Siemens shall be shown. The "Green Cable" establishes a serial point-to-point connection between the COM-interface of the PC and the MP I-interface of the CPU.
Page 114
Siemens or via a MMC reading device from Advantech (Order No.: ADAM-8950-0AD00). Thus it is possible to create applications at the PC, copy them to the MMC and transfer them to the ADAM CPU by plugging-in the MMC.
If the CPU goes into STOP during operation, the DP master stays in RUN. By means of the BASP signal all outputs of the peripheral modules, linked up via the DP slaves, are set to zero. 5-12 ADAM 8000 Manual CPU 821x – Rev 1.1...
After NETZ_EIN (power on), the DP master tries to get parameters from the CPU. For the master doesn't get valid parameters from the CPU, it starts with default parameters (Addr.:1, 1.5MBit) from its ROM and shows this via the IF-LED. ADAM 8000 Manual CPU 821x – Rev 1.1 5-13...
Page 117
Depending on the operating mode selected at the module, the CPU switches to RUN resp. stays in STOP. This procedure is fixed in the diagnostic buffer by means of the following entry: "Automatic start OVERALL_RESET (unbuffered NETZ_EIN/ Power_on)". 5-14 ADAM 8000 Manual CPU 821x – Rev 1.1...
Slave equipment Typical slave equipment holds data of peripheral equipment, sensors, actuators, transducers. The ADAM Profibus couplers are modular slave devices that transfer data between the System 8xxx periphery and the leading master.
Page 120
If in the status DE „Data Exchange“, the master is sending new basic data to the slave and the responding telegram of the slave transfers the recent input data to the master. ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 121
Profibus output area. The DP master to DP slave data exchange on the bus is repeated cyclically and does not depend on the V-bus cycle. ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 122
There is a wide range of diagnosis functions under Profibus-DP to allow a Diagnosis fast error localization. The diagnosis data are broadcasted by the bus system and summarized at the master. ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 123
You are able to over RS485 configure the network as well linear as in a tree structure. Your ADAM Profibus coupler includes a 9pin slot where you connect the Profibus coupler into the Profibus network as a slave.
CPU ADAM 821x Chapter 6 Deployment of the CPU 821xDP CPU 821xDP configuration In contrast to the ADAM Profibus slave IM 8253DP, the Profibus coupler in Outline the CPU 821xDP is an "intelligent coupler". The "intelligent coupler" processes data that is available from an input or an output area of the CPU.
Page 125
Siemens For the deployment of the Profibus-DP slaves of the Systems ADAM 8xxx from Advantech you have to include the modules via an GSD-file from Advantech in the hardware catalog.
Page 126
PROFIBUS-DP > Additional Field devices > I/O > DP8000. Assign the Profibus address 1 to the DP slave. • Place the CPU 821x-2BP01 from Advantech at the plug-in location 0 of the hardware configurator. Plug-in location 0 is mandatory! •...
Page 127
CPU that are used for the Profibus section may only be displayed in the CPU configuration window. View in the In the following all relevant dialog windows of the slave project engineering are shown. Here you may also see, how to include your System ADAM hardware 8xxx: configurator from...
Page 128
"DP8000" slave system. To enable the ADAM CPU to recognize the project as central system, you have to assign the Profibus address 1 to your slave system! ADAM 8000 Manual CPU 821x – Rev 1.1...
Release CPU occupy any memory space in the CPU. areas By assigning 255 (memory limit) at the parameters PRN, DIAG and STAT you may also release memory space in the CPU. 6-12 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 130
The user specific data (Byte 7...31) is mapped into the memory area of the CPU with a fixed length of 24Byte, starting from the address fixed under prm. Thus you may proof the parameters your slave is getting from the master. ADAM 8000 Manual CPU 821x – Rev 1.1 6-13...
Page 131
CPU. areas You may also release CPU memory space by assigning the address range limit (255 resp. 1023 for CPU firmware versions > 2.2.0) to the parameters prn, diag and stat. 6-14 ADAM 8000 Manual CPU 821x – Rev 1.1...
Byte 8 ... Byte 10 reserved Byte 11 ... Byte 15 User-specific diagnostic data is mapped into the peripheral addressing range of the CPU and may be modified and send to the master. ADAM 8000 Manual CPU 821x – Rev 1.1 6-15...
Page 133
Bit 7: fixed at 0 Bit 0...Bit 6: reserved Bit 7: Diagnostic data overflow Master address after parameterization FFh: Slave is without parameterization Ident number High Byte Ident number Low Byte 6-16 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 134
Bit 1: delete diagnostic 0: diagnostic deletion invalid 1: diagnostic deletion valid Bit 2...Bit 7: reserved 1...5 Bit 0...Bit 7: user specific diagnostic data equal to Byte 11...15 of equipment related diagnostic ADAM 8000 Manual CPU 821x – Rev 1.1 6-17...
Profibus response control has been executed Hardware control Profibus controller VPC3plus is ok Profibus controller VPC3plus is defect DP data Profibus slave waits for parameters from master Profibus slave is in state Profibus data exchange reserved 6-18 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 136
This bit is set if the Profibus controller in the CPU 821xDP is defective. In Hardware this case you should contact the Advantech. monitoring Any transfer error on the Profibus will set this error. DP data ADAM 8000 Manual CPU 821x – Rev 1.1 6-19...
Chapter 6 Deployment of the CPU 821xDP CPU ADAM 821x Profibus Installation guidelines • The ADAM Profibus-DP network must have a linear structure. Profibus in general • Profibus-DP consists of at least one segment with a minimum of one master and one slave.
Page 138
You may configure networks with linear as well as with tree geometry. Your ADAM CPU 821xDP carries a 9pin socket. You connect the Profibus coupler directly to your Profibus network as a slave by means of this connector.
Page 139
Bus connector that purpose the bus cable must be connected in a continuous uninterrupted loop. Via the order number ADAM-8972-0DP10 you may order the bus connector "EasyConn". This is a bus connector with switchable terminating resistor and integrated bus diagnosis.
Page 140
Profibus Master IM 8208 IM 8208 Input/output periphery 1,2, IM 8253 CPU 821x DP Input/output periphery Input/output periphery IM 8253 Input/output periphery CPU 821x DP Input/output periphery IM 8253 Input/output periphery ADAM 8000 Manual CPU 821x – Rev 1.1 6-23...
Page 141
More than one master and multiple slaves connected to one bus: IM 208 IM 208 IM 253 IM 253 Input/output periphery Input/output periphery CPU 21x DP IM 253 Input/output periphery Input/output periphery IM 208 Input/output periphery CPU 21x DP Input/output periphery 6-24 ADAM 8000 Manual CPU 821x – Rev 1.1...
Please regard, that the integrated power supply may provide the backplane bus with max. 3A. Profibus and backplane bus are galvanically separated from each other. ADAM 8000 Manual CPU 821x – Rev 1.1 6-25...
Page 143
If your programming device has no MPI slot, you may use the Advantech Green Cable to establish a serial point-to-point connection. The Green Cable has the order no. ADAM-8950-0KB00 and only be used with the ADAM CPUs of the Systems 8xxx.
Page 145
• Start the hardware configurator from Siemens. • Configure a CPU 315-2DP with DP master system (address 2). • Add a Profibus slave ADAM 821x at address 1. • Include the CPU 8214-2BM01 at the plug-in location 0 of the slave system.
Page 146
• Include the CPU 8214-2BP01 at the plug-in location 0 of the slave system. • Include the output module 8222-1BF00 at plug-in location 1. • Choose the following parameters in the parameter window of the CPU 8214-2BP01: • Save your project. ADAM 8000 Manual CPU 821x – Rev 1.1 6-29...
Page 147
At this point the programming of the CPU 8214DPM is completed. The Profibus communication has also been defined for both sides. Transfer your project into the CPU 8214DPM via MPI by means of the PLC- functions. 6-30 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 148
• Read counter value from MB0, increment, save into MB0 and put it out to CPU 821x via Profibus. OB 35 (timer-OB) Counter from 0x00 to 0xFF Transfer counter value into peripheral byte 41 (output data of the Profibus slave) ADAM 8000 Manual CPU 821x – Rev 1.1 6-31...
ADAM PLC-CPUs from Advantech for STEP 7 from Siemens. The information about the listed blocks is valid for the CPUs 811x, 821x and 851x. Another part of the chapter are the ADAM specific SFCs that are exclusively used with ADAM CPUs.
SFB 2 CTUD Count up and down SFB 3 Create pulse SFB 4 Create turn-on delay SFB 5 Create turn-off delay SFB 32 DRUM realize a step-by-step switch with maximum 16 steps ADAM 8000 Manual CPU 821x – Rev 1.1...
WAIT Delay program processing additionally to delay time SFC 49 LGC_GADR Search the plug-in location concerning to a logical address SFC 50 RD_LGADR Search all logical addresses of a block continued ... ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 153
SFC 66 X_RCV Receive data from external partner SFC 67 X_GET Read data from external partner SFC 68 X_PUT Write data to external partner SFC 69 X_ABORT Interrupt connection to external partner ADAM 8000 Manual CPU 821x – Rev 1.1...
They do not occupy space in the internal program memory. The integrated blocks are called in the user application. The following pages show the ADAM specific blocks that may be called for special functions in the control application. Assignment table For not every SFC is integrated in every CPU family, this table shows the assignment between SFC and CPU.
The ADAM specific SFCs are included in consignment in form of libraries. Outline The libraries are self-extracting exe-files. When you want to use the ADAM specific SFCs, you have to import them into your project. Please follow this steps: • Execute F200000z_Vxxx.exe to extract the library •...
SFC 220 MMC_CR_F Sektor FILENAME SFC 221 MMC_RD_F FILESIZE SFC 222 MMC_WR_F OFFSET RET_VAL BUSY Note! For read and write accesses to the MMC, you firstly have to open the file with SFC 220! ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 157
A005h Not enough space on MMC. A006h No free entry in root directory. Depending on the used MMC there may be min. 16 up to max. 512 entries in the root directory. B000h An internal error occurred. ADAM 8000 Manual CPU 821x – Rev 1.1...
9002h Bit reading has been tried (variable of Boolean type). Bit reading is not possible. 9003h File length exceeded 9004h Sector limit of 512 has been tried to overrun. Sector overrun reading is not possible. B000h An internal error occurred. 7-10 ADAM 8000 Manual CPU 821x – Rev 1.1...
9002h Bit reading has been tried (variable of Boolean type). Bit reading is not possible. 9003h File length exceeded 9004h Sector limit of 512 has been tried to overrun. Sector overrun reading is not possible. B000h An internal error occurred. ADAM 8000 Manual CPU 821x – Rev 1.1 7-11...
Period length = timebase x period Pulse length = (period length / 1000) x pulse duty ratio Pulse break = period length - pulse length The parameters have the following meaning: 7-12 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 161
8008h Parameter “Timebase” outside the permissible range 8009h Parameter “Channel” outside the permissible range 9001h Internal error: There was no valid address for a parameter 9002h Internal hardware error: Please call the Advantech-Service. ADAM 8000 Manual CPU 821x – Rev 1.1 7-13...
Via Limit you fix an upper res. lower limit for the counting direction (up res. down). When the limit has been reached, the according counter is set zero and started new. If necessary an alarm occurs. Value range: 0 ... FFFFFFFFh 7-14 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 163
9002h Internal hardware error: Please call the Advantech-Service. Per SetCounter=true the value given by PresetValue is transferred into the SetCounter according counter. The Bit is set back from the SFC. Value range: true, false ADAM 8000 Manual CPU 821x – Rev 1.1 7-15...
Pulse break Pulse duty ratio 1000 Period length = 1 / frequency Pulse length = (period length / 1000) x pulse duty ratio Pulse break = period length - pulse length 7-16 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 165
8008h Parameter “Timebase” outside the permissible range 8009h Parameter “Channel” outside the permissible range 9001h Internal error: There was no valid address for a parameter 9002h Internal hardware error: Please call the Advantech-Service. ADAM 8000 Manual CPU 821x – Rev 1.1 7-17...
Please regard that you have to include a data block with the TD200 configuration data before calling the SFC 227. This data block may be created with the TDWizard from ADAM. This data block contains the general settings like language and display mode and the messages that are comfortably createable with the TDWizard from ADAM.
Page 167
The terminal allows you to set in- and output byte. The TD200 from Siemens supports only a size of 16Byte for in- and outputs. The ADAM CPUs from Advantech enables the access to the complete process image (each 128Byte for in- and outputs).
The size defines the width of the data area fixed via K_NR and OFFSET. You may choose between the values 1, 2 and 4Byte. Return Value RET_VAL Byte where an error message is returned to. 7-20 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 169
SIZE ≠ 1, 2 or 4 at read access parameter SIZE ≠ 1, 2 or 4 at write access parameter R_W ≠ 0 or 1 ADAM 8000 Manual CPU 821x – Rev 1.1 7-21...
Indirect fixing of the relative start address of the data source res. destination QANF/ZANF: Relative start address within the type PAFE: Parameterization error BLGR: Block size A description of these parameters follows on the next pages. 7-22 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 171
(indirect). Parameter type : Integer Convenient entries : 0, 1, 2, 5, 6 Note! Please regard, that at IND=5 res. IND=6, the parameter ANZW is ignored! ADAM 8000 Manual CPU 821x – Rev 1.1 7-23...
Page 172
This "BYTE" (output, marker) is set if the block detects a parame- terization error, e.g. interface (plug-in) not detected or a non valid parameterization of QUANF/ZANF. Parameter type : Byte Convenient range : AB 0 ... AB127, MB 0...MB 255 7-24 ADAM 8000 Manual CPU 821x – Rev 1.1...
CALL SSNR:=MW10 ANR :=MW12 IND :=MW14 QANF:=P#DB10.DBX0.0 BYTE 16 PAFE:=MB80 ANZW:=MD48 The direct res. indirect transfer of the source and destination parameters are described in the following section. ADAM 8000 Manual CPU 821x – Rev 1.1 7-25...
Destination data blocks in Source/ Source/ Source/ Definition Words. Destination data Destination data Destination data blocks in Bytes. blocks in Bytes. blocks in Bytes. 1...2048 1...255 1...128 1...128 Valid range for "c" 7-26 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 175
DW-No., where the stored data starts Definition Valid 0.0...2047.0 0.0...2047.0 range Length Length of the DBs in Byte Length of the DBs in Byte Definition Valid 14 fix 22 fix range ADAM 8000 Manual CPU 821x – Rev 1.1 7-27...
RECEIVE order, send data when there is a SEND order. The announcement in the length word is always in byte and absolute. 7-28 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 177
Analyze: Per user: to proof that the order has been commissioned with errors. If set, the error causes are to find in the high- byte of the indicator word. ADAM 8000 Manual CPU 821x – Rev 1.1 7-29...
Page 178
Per user: Here you may ascertain, if the record set of an order has already been transferred to the CP res. at what time a new record set for the current order has been transferred to the AG. 7-30 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 179
8 no available transfer connections The capacity for transfer connections is at limit. Delete unnecessary connections. 9 Remote error There was an error at the communication partner during a READ/WRITE-order. A Connection error ADAM 8000 Manual CPU 821x – Rev 1.1 7-31...
Page 180
If the bit "order ready with error" is set, the length word contains the data amount transferred before the failure occurred. Important status and error reports of the CPU Status and error reports 7-32 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 181
RECEIVE was successful, the data arrived at the AG. Indicator word: X 0 X 2 The SEND-, RECEIVE-, READ- res. WRITE order is still running. At SEND the partner is not yet ready for RECEIVE or vice versa. ADAM 8000 Manual CPU 821x – Rev 1.1 7-33...
Page 182
X 0 X 2 READ ready X 0 4 4 WRITE ready X 0 2 4 ready with error X No X 8 after RESET X D X A 7-34 ADAM 8000 Manual CPU 821x – Rev 1.1...
=7: interface not found =8: interface not specified =9: interface overflow =A: reserved =B: invalid order-No. =C: interface of CP doesn’t quit or is negative =D: Parameter BLGR not allowed =E: reserved =F: reserved ADAM 8000 Manual CPU 821x – Rev 1.1 7-35...
SEND_ALL is called minimum one time per cycle. The user interface is for all initialization types equal, only the transfer time of the data is postponed for minimum one CPU cycle. 7-36 ADAM 8000 Manual CPU 821x – Rev 1.1...
You also have to integrate the RECEIVE_ALL cyclically, if the CP only uses the RECEIVE for releasing a receipt telegram and the data is transmitted via the background communication of the CPU. ADAM 8000 Manual CPU 821x – Rev 1.1 7-37...
The FETCH order defines data source and destination and the data source is transmitted to the partner station. The CPU ADAM 821x from Advantech realizes the definition of source and destination via a pointer parameter. The partner station provides the Source data and transmits them via SEND_ALL back to the requesting station.
0 to the LOW part of the indicator words The order state cell 0 contains the number of the order that is in commission, e.g. the order number of a telegram (set by the CP). ADAM 8000 Manual CPU 821x – Rev 1.1 7-39...
The block depends on the VKE and may be called from cyclic, time or alarm controlled program parts. Parameter The block has two different operating modes: Operating modes • RESET ALL • RESET DIRECT 7-40 ADAM 8000 Manual CPU 821x – Rev 1.1...
CP during the boot process. For this it has to be called from the starting OBs. Simultaneously the transition area of the interface is deleted and predefined and the CP and the CPU 821x agree about the block size. Parameter...
CPU for this order. • if the amount of data, that should be transmitted by this SEND to the CP, is higher than the declared block size. 7-42 ADAM 8000 Manual CPU 821x – Rev 1.1...
CPU for this order. • if the amount of data, that should be transmitted to the CPU by this RECEIVE, is higher than the declared block size. ADAM 8000 Manual CPU 821x – Rev 1.1 7-43...
The parameter IND has no functionality at this time and is reserved for further extensions. The indicator word ANZW is of the type Pointer. This allows you to store ANZW the indicator word in a data block. 7-44 ADAM 8000 Manual CPU 821x – Rev 1.1...
Chapter 8 Instruction list Chapter 8 Instruction list The following chapter lists the available commands of the CPU 821x from Outline Advantech. The instruction list intends to give you an overview over the commands and their syntax. The commands are sorted by topics in alphabetical order.
Integer (16Bit) Integer (32 Bit) Input byte (in the PII) Input double word (in the PII) Input word (in the PII) Constant (8 Bit) Constant (16 Bit) Constant (32 Bit) Abbreviation Description ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 198
Result of (previous) logic instruction S5 time constant (16Bit), loads the S5-Timer S5T# System function block System function Status Timer (times) Time constant (16/32Bit) IEC time constant TOD# area-crossing, register-indirect addressed word Word hexadecimal W#16# ADAM 8000 Manual CPU 821x – Rev 1.1...
The area-internal or area-crossing addresses have the following structure: area-internal address: 00000000 00000bbb bbbbbbbb bbbbbxxx area-crossing address: 10000yyy 00000bbb bbbbbbbb bbbbbxxx Legend: Byte address Bit number Range ID (see chapter "Addressing examples") ADAM 8000 Manual CPU 821x – Rev 1.1...
AND operation of input bit 0.0 L IB 1 Load input byte 1 in ACCU1. L IW 0 Load input word 0 in ACCU1. L ID 0 Load input double word 0 in ACCU1. Indirect addressing timer/counter ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 201
+ pointer P#8.0". AND instruction; operand address is calculated A [AR1,P#32.3] "pointer value in address register 1 + pointer P#32.3". Addressing via parameters A parameter The operand is addressed via the parameter. ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 202
Example when sum of bit addresses > 7: L MD 0 at will calculated pointer, e.g. P#10.5 LAR1 I [AR1,P#10.7] Result: Addressed is input 21.4 (by adding the byte and bit addresses with carry) 8-10 ADAM 8000 Manual CPU 821x – Rev 1.1...
Divide two real numbers (32Bit). (ACCU1)=(ACCU2):(ACCU1) NEGR Negate the real number in ACCU1. BR CC1 CC0 OV OS OR STA RLO /FC - Form the absolute value of the real number in ACCU1. ADAM 8000 Manual CPU 821x – Rev 1.1 8-11...
Page 204
Add pointer constant to the contents of AR2. 1 Specify the angle in radians; the angle must be given as a floating point value in ACCU 1. 2 The result is an angle in radians. 8-12 ADAM 8000 Manual CPU 821x – Rev 1.1...
- Y - in the instruction is the auxiliary edge bit memory. 0.0 to 1043.7 - 0 Y Y 1 0.0 to 8191.7 DBX a.b 0.0 to 8191.7 DIX a.b c [AR1,m] c [AR2,m] [AR1,m] [AR2,m] Parameter 8-14 ADAM 8000 Manual CPU 821x – Rev 1.1...
0 to 8190 instance data word ... in ACCU1-L h [AR1,m] register-indirect, area-internal (AR1) h [AR2,m] register-indirect, area-internal (AR2) W [AR1,m] area-crossing (AR1) W [AR2,m] area-crossing (AR2) Parameter via parameters ADAM 8000 Manual CPU 821x – Rev 1.1 8-15...
Page 208
Load 16Bit time constant. T# time value Load 32Bit time constant. Load 16Bit counter constant. C# counter value Load bit pointer. P# bit pointer Load 32Bit integer constant. L# Integer Real Load real number. 8-16 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 209
0 to 127 Load time value BCD-coded. Timer Load time value BCD-coded (addressed via parameters). parameter 0 to 255 Load counter value BCD-coded. Counter Load counter value BCD-coded (addressed via parameter parameters). ADAM 8000 Manual CPU 821x – Rev 1.1 8-17...
BR CC1 CC0 OV OS OR STA RLO /FC - via CC1 bit. RRDA - Y 0 0 - - Rotate the contents of ACCU1 one bit position to the right, via CC1 bit. 8-18 ADAM 8000 Manual CPU 821x – Rev 1.1...
RLO to data bit 0.0 to 8191.7 DIX a.b RLO to instance data bit c [AR1,m] register-indirect, area-internal (AR1) c [AR2,m] register-indirect, area-internal (AR2) [AR1,m] area-crossing (AR1) [AR2,m] area-crossing (AR2) Parameter via parameters ADAM 8000 Manual CPU 821x – Rev 1.1 8-19...
Page 212
BR CC1 CC0 OV OS OR STA RLO /FC - Y - Y - - 1 Y - SAVE Saving RLO into BR-Bit. BR CC1 CC0 OV OS OR STA RLO /FC - Y - 8-20 ADAM 8000 Manual CPU 821x – Rev 1.1...
Jump if result≠0. (CC1=1 and CC0=0) or (CC1=0) and (CC0=1) LABEL Jump if result≤0. (CC1=0 and CC0=1) or (CC1=0 and CC0=0) LABEL Jump if result≥0. (CC1=1 and CC0=0) or (CC1=0 and CC0=0) ADAM 8000 Manual CPU 821x – Rev 1.1 8-21...
0 to 8190 data word. 0 to 8190 instance data word. h [AR1,m] register-indirect, area-internal (AR1) h [AR2,m] register-indirect, area-internal (AR2) W [AR1,m] area-crossing (AR1) W [AR2,m] area-crossing (AR2) Parameter via parameters 8-22 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 215
ACCU1. address register 2. 0 to 8188 data double word. 0 to 8188 instance data double word. 0 to 1040 local data double word. 0 to 1020 bit memory double word. ADAM 8000 Manual CPU 821x – Rev 1.1 8-23...
Page 216
Swap the contents of ACCU1 and ACCU2 PUSH The contents of ACCU1 are transferred to ACCU2. The contents of ACCU2 are transferred to ACCU1. 0 ... 255 Increment ACCU1-LL. 0 ... 255 Decrement ACCU1-LL. 8-24 ADAM 8000 Manual CPU 821x – Rev 1.1...
Forms the twos complement of ACCU1-L. BR CC1 CC0 OV OS OR STA RLO /FC NEGD - Forms the twos complement of ACCU1 (double integer). - Y Y Y Y - ADAM 8000 Manual CPU 821x – Rev 1.1 8-25...
ACCU2=ACCU1 BR CC1 CC0 OV OS OR STA RLO /FC <>R - ACCU2≠ACCU1 <R - Y Y Y Y 0 Y Y 1 ACCU2<ACCU1 <=R ACCU2<=ACCU1 >R ACCU2>ACCU1 >=R ACCU2>=ACCU1 8-26 ADAM 8000 Manual CPU 821x – Rev 1.1...
DBX a.b Data bit 0.0 ... 8191.7 DIX a.b Instance data bit c [AR1,m] register-indirect, area-internal (AR1) c [AR2,m] register-indirect, area-internal (AR2) [AR1,m] area-crossing (AR1) [AR2,m] area-crossing (AR2) Parameter via parameters ADAM 8000 Manual CPU 821x – Rev 1.1 8-27...
Page 220
DBX a.b Data bit 0.0 ... 8191.7 DIX a.b Instance data bit c [AR1,m] register-indirect, area-internal (AR1) c [AR2,m] register-indirect, area-internal (AR2) [AR1,m] area-crossing (AR1) [AR2,m] area-crossing (AR2) Parameter via parameters 8-28 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 221
AND before OR. OR operations of AND functions according the rule: BR CC1 CC0 OV OS OR STA RLO /FC - Y - Y Y AND before OR - Y 1 - Y ADAM 8000 Manual CPU 821x – Rev 1.1 8-29...
Page 222
BR CC1 CC0 OV OS OR STA RLO /FC 0 to 127 - Y Y Timer 0 to 255 - 0 Y Y 1 Counter Timer Timer addressed via parameters para. Counter p. Counter addressed via parameters 8-30 ADAM 8000 Manual CPU 821x – Rev 1.1...
Page 223
((CC1=0) and (CC0=1)) or ((CC1=1) and (CC0=0)) <=0 Result<=0 ((CC1=0) and (CC0=1)) or ((CC1=0) and (CC0=0)) >=0 Result>=0 ((CC1=1) and (CC0=0)) or ((CC1=1) and (CC0=0)) unordered math instruction (CC1=1) and (CC0=1) OS=1 BR=1 OV=1 ADAM 8000 Manual CPU 821x – Rev 1.1 8-31...
Page 224
((CC1=0) and (CC0=1)) or ((CC1=1) and (CC0=0)) <=0 Result<=0 ((CC1=0) and (CC0=1)) or ((CC1=0) and (CC0=0)) >=0 Result>=0 ((CC1=1) and (CC0=0)) or ((CC1=1) and (CC0=0)) unordered math instruction (CC1=1) and (CC0=1) OS=0 BR=0 OV=0 8-32 ADAM 8000 Manual CPU 821x – Rev 1.1...
"1" to "0". para. 0 to 127 Enable timer for restarting on edge change from "0" to "1" Timer (reset edge bit memory for starting timer). para. 0 to 127 Reset timer. ADAM 8000 Manual CPU 821x – Rev 1.1 8-33...
Page 226
Chapter 9 Instruction list CPU ADAM 821x Length Command Operand Parameter Status word Function words BR CC1 CC0 OV OS OR STA RLO /FC : Instruction depends on : Instruction influences Timer para. 8-34 ADAM 8000 Manual CPU 821x – Rev 1.1...
Decrement counter by 1 on edge change from "0" to "1". Counter p. 0 to 255 Enable counter on edge change from "0" to "1". Counter p. (reset the edge bit memory for up and down counting) ADAM 8000 Manual CPU 821x – Rev 1.1 8-35...
7 Manager diagnostic buffer from Siemens. Besides of the standard entries in the diagnostic buffer, the ADAM CPUs support some additional specific entries in form of event-IDs. Monitoring the To monitor the diagnostic entries you choose the option PLC > Module ...
Page 229
Communication error MPI / Serial 0xE100 MMC access error 0xE101 MMC file system error 0xE102 MMC FAT error 0xE200 MMC writing ready (Copy Ram2Rom) 0xE300 Internal Flash writing ready (Copy Ram2Rom) ADAM 8000 Manual CPU 821x – Rev 1.1 8-37...