Micro830-850-870 Manual
Micro830-850-870 Manual
Micro830-850-870 Manual
Programmable Controllers
Micro810 Controller Catalog Numbers 2080-LC10-12AWA, 2080-LC10-12QWB, 2080-LC10-12DWD, 2080-LC10-12QBB
Micro820 Controller Catalog Numbers 2080-LC20-20AWB, 2080-LC20-20AWBR, 2080-LC20-20QWB, 2080-LC20-20QWBR,
2080-LC20-20QBB, 2080-LC20-20QBBR
Micro830 Controller Catalog Numbers 2080-LC30-10QWB, 2080-LC30-10QVB, 2080-LC30-16AWB, 2080-LC30-16QWB,
2080-LC30-16QVB, 2080-LC30-24QWB, 2080-LC30-24QVB, 2080-LC30-24QBB, 2080-LC30-48AWB, 2080-LC30-48QWB,
2080-LC30-48QVB, 2080-LC30-48QBB
Micro850 Controller Catalog Numbers 2080-LC50-24AWB, 2080-L50E-24AWB, 2080-LC50-24QWB, 2080-L50E-24QWB,
2080-LC50-24QVB, 2080-L50E-24QVB, 2080-LC50-24QBB, 2080-L50E-24QBB, 2080-LC50-48AWB, 2080-L50E-48AWB,
2080-LC50-48QWB, 2080-L50E-48QWB, 2080-LC50-48QWBK, 2080-L50E-48QWBK, 2080-LC50-48QVB, 2080-L50E-48QVB,
2080-LC50-48QBB, 2080-L50E-48QBB
Micro870 Controller Catalog Numbers 2080-LC70-24AWB, 2080-L70E-24AWB, 2080-LC70-24QWB, 2080-L70E-24QWB,
2080-LC70-24QWBK, 2080-L70E-24QWBK, 2080-L70E-24QWBN, 2080-LC70-24QBB, 2080-L70E-24QBB, 2080-LC70-24QBBK,
2080-L70E-24QBBK, 2080-L70E-24QBBN
Activities including installation, adjustments, putting into service, use, assembly, disassembly, and maintenance are required to
be carried out by suitably trained personnel in accordance with applicable code of practice.
If this equipment is used in a manner not specified by the manufacturer, the protection provided by the equipment may be
impaired.
In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use
or application of this equipment.
The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and
requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for
actual use based on the examples and diagrams.
No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or software
described in this manual.
Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation, Inc., is
prohibited.
Throughout this manual, when necessary, we use notes to make you aware of safety considerations.
WARNING: Identifies information about practices or circumstances that can cause an explosion in a hazardous environment, which
may lead to personal injury or death, property damage, or economic loss.
ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property
damage, or economic loss. Attentions help you identify a hazard, avoid a hazard, and recognize the consequence.
IMPORTANT Identifies information that is critical for successful application and understanding of the product.
Labels may also be on or inside the equipment to provide specific precautions.
SHOCK HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that dangerous
voltage may be present.
BURN HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may
reach dangerous temperatures.
ARC FLASH HAZARD: Labels may be on or inside the equipment, for example, a motor control center, to alert people to potential
Arc Flash. Arc Flash will cause severe injury or death. Wear proper Personal Protective Equipment (PPE). Follow ALL Regulatory
requirements for safe work practices and for Personal Protective Equipment (PPE).
Preface
About This Publication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Conformal Coated Catalogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Download Firmware, AOP, EDS, and Other Files . . . . . . . . . . . . . . . . . . . 11
Summary of Changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Chapter 1
Hardware Overview Hardware Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Micro830 Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Micro850 Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Micro870 Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Programming Cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Embedded Serial Port Cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Embedded Ethernet Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Chapter 2
About Your Controller Programming Software for Micro800 Controllers . . . . . . . . . . . . . . . . . . 23
Obtain Connected Components Workbench Software . . . . . . . . . . 23
Use Connected Components Workbench Software . . . . . . . . . . . . . 23
Controller Changes in Run Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Using Run Mode Change (RMC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Uncommitted Changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
RMC Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Limitations of RMC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Using Run Mode Configuration Change (RMCC). . . . . . . . . . . . . . . . . . . 28
Using Modbus RTU Communication . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Using EtherNet/IP Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Safety Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Disconnect Main Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Safety Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Power Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Periodic Tests of Master Control Relay Circuit. . . . . . . . . . . . . . . . . . 33
Power Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Isolation Transformers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Power Supply Inrush. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Loss of Power Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Input States on Power Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Other Types of Line Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Preventing Excessive Heat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Master Control Relay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Using Emergency-Stop Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Chapter 3
Install Your Controller Controller Mounting Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Mounting Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
DIN Rail Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Panel Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Panel Mounting Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
System Assembly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Chapter 4
Wire Your Controller Wiring Requirements and Recommendation . . . . . . . . . . . . . . . . . . . . . . 47
Use Surge Suppressors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Recommended Surge Suppressors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Grounding the Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Wiring Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Controller I/O Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Minimize Electrical Noise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Analog Channel Wiring Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Minimize Electrical Noise on Analog Channels . . . . . . . . . . . . . . . . . 56
Grounding Your Analog Cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Wiring Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Embedded Serial Port Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Chapter 5
Communication Connections Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Supported Communication Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Modbus RTU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
CIP Serial Client/Server – DF1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
ASCII. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Modbus TCP Client/Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
CIP Symbolic Client/Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
CIP Client Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Sockets Client/Server TCP/UDP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
CIP Communications Pass-thru . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Examples of Supported Architectures . . . . . . . . . . . . . . . . . . . . . . . . . 64
Use Modems with Micro800 Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Making a DF1 Point-to-Point Connection . . . . . . . . . . . . . . . . . . . . . . 65
Construct Your Own Modem Cable. . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Configure Serial Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Configure CIP Serial Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Configure Modbus RTU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Configure ASCII. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Configure Ethernet Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Validate IP Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Ethernet Host Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Configure CIP Serial Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
OPC Support Using FactoryTalk Linx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Chapter 6
Micro870 Controller Distributed Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Network Protocol Channel Configuration for DNP3 Slave. . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Serial Port Link Layer Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Ethernet Layer Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
DNP3 Slave Application Layer Configuration . . . . . . . . . . . . . . . . . . . 78
Serial Link Layer Configuration Parameters. . . . . . . . . . . . . . . . . . . . 78
Ethernet Layer Configuration Parameters . . . . . . . . . . . . . . . . . . . . . 81
DNP3 Slave Application Layer Configuration Parameters. . . . . . . . 86
DNP3 Slave Application Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Function Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Internal Indications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
DNP3 Objects and Controller Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . 105
DNP3 Object Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
DNP3 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
DNP3 Data Set Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Object Quality Flags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
DNP3 Device Attribute Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Event Reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Generate Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
DNP3 10K Event Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Control Generating Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Report Event By Polled Response. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Report Event By Unsolicited Response. . . . . . . . . . . . . . . . . . . . . . . . 121
Collision Avoidance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Time Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Diagnostics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Diagnostics for Ethernet Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Diagnostics for Secure Authentication. . . . . . . . . . . . . . . . . . . . . . . . 126
Function Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Implementation Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Chapter 7
Program Execution in Micro800 Overview of Program Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Execution Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Optional Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Controller Load and Performance Considerations. . . . . . . . . . . . . . . . . 135
Periodic Execution of Programs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Power Up and First Scan. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Variable Retention. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Memory Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Guidelines and Limitations for Advanced Users . . . . . . . . . . . . . . . . . . . 137
Chapter 8
Motion Control PTO Motion Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Use the Micro800 Motion Control Feature . . . . . . . . . . . . . . . . . . . . 140
Input and Output Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Motion Control Function Blocks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
General Rules for the Motion Control Function Blocks . . . . . . . . . 145
Motion Axis and Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Chapter 9
Use the High-Speed Counter and High-Speed Counter Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Programmable Limit Switch Programmable Limit Switch Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
What is High-Speed Counter? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
Features and Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
HSC Inputs and Wiring Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
High Speed Counter (HSC) Data Structures . . . . . . . . . . . . . . . . . . . . . . 187
HSC APP Data Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
HSC STS (HSC Status) Data Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
High-Speed Counter (HSC) Function Block. . . . . . . . . . . . . . . . . . . . . . . 202
HSC Commands (HScCmd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
HSC_SET_STS Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
Programmable Limit Switch (PLS) Function . . . . . . . . . . . . . . . . . . . . . . 205
PLS Data Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
PLS Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
PLS Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
HSC Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
HSC Interrupt Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
HSC Interrupt POU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
HSC Interrupt Status Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Chapter 10
Controller Security Protected Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Exclusive Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Password Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
Compatibility. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
Work with a Locked Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
Upload from a Password-Protected Controller. . . . . . . . . . . . . . . . . 215
Debug a Password-Protected Controller . . . . . . . . . . . . . . . . . . . . . . 215
Download to a Password-Protected Controller. . . . . . . . . . . . . . . . . 216
Transfer Controller Program and Password-Protect Receiving
Controller. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Back Up and Restore a Password-Protected Controller . . . . . . . . . 217
Configure Controller Password. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Recover from a Lost Password. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Using the Memory Module Plug-in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
Chapter 11
Using microSD Cards Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Project Backup and Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Backup and Restore Directory Structure . . . . . . . . . . . . . . . . . . . . . . 223
Power-up Settings in ConfigMeFirst.txt . . . . . . . . . . . . . . . . . . . . . . 224
General Configuration Rules in ConfigMeFirst.txt . . . . . . . . . . . . . 226
ConfigMeFirst.txt Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
Deliver Project Updates to Customers Through Email . . . . . . . . . . 227
Data Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Data Log Directory Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Data Log Function (DLG) Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
Recipe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Recipe Directory Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Quickstart Projects for Data Log and Recipe Function Blocks. . . . . . . 238
Use the Data Log Feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Use the Recipe Feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
Appendix A
Modbus Mapping for Micro800 Modbus Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Endian Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Mapping Address Space and Supported Data Types . . . . . . . . . . . . 251
Example 1, PanelView 800 HMI (Master) to Micro800 (Slave) . . . 252
Example 2, Micro800 (Master) to PowerFlex 4M Drive (Slave) . . . 253
Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Appendix B
Quickstarts Flash Upgrade Your Micro800 Firmware . . . . . . . . . . . . . . . . . . . . . . . . . 257
Flash Upgrade From MicroSD Card . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Establish Communications Between RSLinx and a Micro830/Micro850/
Micro870 Controller through USB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Configure Controller Password. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Set Controller Password. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Change Password. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Clear Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Rockwell Automation Publication 2080-UM002M-EN-E - April 2022 7
Table of Contents
Appendix C
User Interrupts Information About Using Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
What is an Interrupt? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
When Can the Controller Operation be Interrupted? . . . . . . . . . . . 290
Priority of User Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
User Interrupt Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
User Fault Routine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
User Interrupt Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
STIS - Selectable Timed Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
UID - User Interrupt Disable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
UIE - User Interrupt Enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
UIF - User Interrupt Flush . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
UIC – User Interrupt Clear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
Using the Selectable Timed Interrupt (STI) Function . . . . . . . . . . . . . . 297
Selectable Time Interrupt (STI) Function Configuration and Status. 298
STI Function Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
STI Function Status Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
Using the Event Input Interrupt (EII) Function . . . . . . . . . . . . . . . . . . . 299
Event Input Interrupt (EII) Function Configuration and Status . . . . 300
EII Function Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
EII Function Status Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
Appendix D
Troubleshooting Status Indicators on the Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
Normal Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Fault Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Corrective Action for Recoverable and Non-recoverable Faults . . 310
Retrieve a Fault Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
Controller Error Recovery Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
Calling Rockwell Automation for Assistance . . . . . . . . . . . . . . . . . . . . . . 311
Appendix E
PID Function Blocks PID Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
IPIDCONTROLLER Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
How to Autotune. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
How Autotune Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Troubleshooting an Autotune Process. . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
PID Application Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
PID Code Sample . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Appendix F
System Loading Calculate Total Power for Your Micro830/Micro850/Micro870
Controller. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
Appendix G
Connect to Networks using DF1 DF1 Full-Duplex Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
DF1 Half-Duplex Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
DF1 Half-Duplex Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
Considerations When Communicating as a DF1 Slave on a Multi-
drop Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
Using Modems with Micro800 Programmable Controllers. . . . . . 327
Modem Control Line Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
DF1 Full-Duplex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
DF1 Half-Duplex Slave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
DF1 Half Duplex Master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
DF1 Radio Modem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
Configure DF1 Half-Duplex Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 330
RTS Send Delay and RTS Off Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
Configure a Standard-Mode DF1 Half-Duplex Master Station . . . . . . 330
Minimum DF1 Half-Duplex Master ACK Timeout. . . . . . . . . . . . . . 332
Determining Minimum Master ACK Timeout . . . . . . . . . . . . . . . . . 333
DF1 Half-Duplex Master Communication Diagnostics . . . . . . . . . 333
Configure a Message-based Mode DF1 Half-Duplex
Master Station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
Configure a Slave Station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
Configure Poll Timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
DF1 Half-Duplex Slave Communication Diagnostics . . . . . . . . . . . 338
Configure a Radio Modem Station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
DF1 Radio Modem Communication Diagnostics . . . . . . . . . . . . . . . 339
Configure the Store and Forward Table . . . . . . . . . . . . . . . . . . . . . . . 340
Index
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
Notes:
About This Publication Use this manual if you are responsible for designing, installing, programming,
or troubleshooting control systems that use Micro800™ controllers.
Rockwell Automation recognizes that some of the terms that are currently
used in our industry and in this publication are not in alignment with the
movement toward inclusive language in technology. We are proactively
collaborating with industry peers to find alternatives to such terms and
making changes to our products and content. Please excuse the use of such
terms in our content while we implement these changes.
Conformal Coated Catalogs Catalog numbers with the suffix ‘K’ are conformal coated and their
specifications are the same as non-conformal coated catalogs.
Download Firmware, AOP, Download firmware, associated files (such as AOP, EDS, and DTM), and access
EDS, and Other Files product release notes from the Product Compatibility and Download Center at
rok.auto/pcdc.
Summary of Changes This publication contains the following new or updated information. This list
includes substantive updates only and is not intended to reflect all changes.
Topic Page
Added new Micro850 (2080-L50E) and Micro870 (2080-L70E) catalogs Throughout
Updated table Additional Resources 12
Updated table Micro850 Controllers – Number and Types of Inputs/Outputs 20
Updated table Micro870 Controllers – Number and Types of Inputs/Outputs 21
Updated section Use Connected Components Workbench Software 23
Updated topic Using Run Mode Change (RMC) 24
Updated section RMC memory 25
Updated section Limitations of RMC 27
Updated topic Using Run Mode Configuration Change (RMCC) 28
Updated section CIP Serial Client/Server - DF1 61
Updated section CIP Symbolic Client/Server 62
Updated table CIP Serial Driver Parameters 67
Topic Page
New chapter Micro870 Controller Distributed Network Protocol 75
Updated topic Password Protection 214
Updated section Back Up and Restore a Password-Protected Controller 217
Updated topic Using the Memory Module Plug-In 218
Updated topic Using microSD Cards Overview 221
Updated topic Project Backup and Restore 222
Removed appendix Specifications. Specifications for Micro800 controllers can be found in –
the Micro800 Programmable Controllers Technical Data, publication 2080-TD001
Added appendix Connect to Networks Using DF1 325
Additional Resources These documents contain additional information concerning related products
from Rockwell Automation.
Resource Description
Micro800 Programmable Controller Family Selection Guide, Provides information to help you select the Micro800 controller, plug-ins, expansion I/O, and
publication 2080-SG001 accessories, based on your requirements.
Micro800 Programmable Controllers Technical Data, publication 2080-TD001 Provides detailed specifications for Micro800 controllers, expansion I/O modules, plug-in
modules, and accessories.
Information on features, configuration, wiring, installation, and specifications for the Micro800
Micro800 Expansion I/O Modules User Manual, publication 2080-UM003 expansion I/O modules and power supply.
Information on features, configuration, installation, wiring, and specifications for the Micro800
Micro800 Plug-in Modules User Manual, publication 2080-UM004 plug-in modules.
Micro800 Programmable Controllers General Instructions Reference Manual, Information on instruction sets for developing programs for use in Micro800 control systems.
publication 2080-RM001
Micro800 Programmable Controllers: Getting Started with Motion Control Provides quick start instructions for implementing a motion control project in Connected
Using a Simulated Axis Quick Start, publication 2080-QS001 Components Workbench software.
Micro800 Programmable Controllers: Getting Started with CIP Client Provides quick start instructions for using CIP GENERIC and CIP Symbolic Messaging.
Messaging Quick Start, publication 2080-QS002
Micro800 Programmable Controllers: Getting Started with PanelView Plus Provides quick start instructions for using global variables for Micro800 controllers together with
Quick Start, publication 2080-QS003 PanelView™ Plus HMI terminals.
Configuring Micro800 Controllers on FactoryTalk Linx Gateway Quick Start, Provides quick start instructions for configuring a Micro800 controller on FactoryTalk Linx
publication 2080-QS005 Gateway.
Kinetix 3 Motion Control Indexing Application Connected Components Accel Provides quick start instructions for implementing a Kinetix 3 drive indexing application
Toolkit Quick Start, publication CC-QS025 using Connected Components Workbench software and a Micro800 controller.
Motion Control PTO Application Building Block Quick Start, Provides quick start instructions for implementing PTO motion control of a Kinetix 3 drive using
publication CC-QS033 Connected Components Workbench software and a Micro800 controller.
Micro800 Programmable Controller External AC Power Supply Installation Information on mounting and wiring the optional external power supply.
Instructions 2080-IN001
Micro800 Programmable Controllers Installation Instructions, Information on mounting and wiring Micro800 Controllers
publication 2080-IN013
Micro800 16-point and 32-point 12/24V Sink/Source Input Modules Information on mounting and wiring the expansion I/O modules (2085-IQ16, 2085-IQ32T)
Installation Instructions, publication 2085-IN001
Micro800 Bus Terminator Module Installation Instruction, Information on mounting and wiring the expansion I/O bus terminator (2085-ECR)
publication 2085-IN002
Micro800 16-Point Sink and 16-Point Source 12/24V DC Output Modules Information on mounting and wiring the expansion I/O modules (2085-OV16, 2085-OB16)
Installation Instructions, publication 2085-IN003
Micro800 8-Point and 16-Point AC/DC Relay Output Modules Installation Information on mounting and wiring the expansion I/O modules (2085-OW8, 2085-OW16)
Instructions, publication 2085-IN004
Micro800 8-Point Input and 8-Point Output AC Modules Installation Information on mounting and wiring the expansion I/O modules (2085-IA8, 2085-IM8, 2085-OA8)
Instructions, publication 2085-IN005
Micro800 4-channel and 8-channel Analog Voltage/current Input and Output Information on mounting and wiring the expansion I/O modules (2085-IF4, 2085-IF8, 2085-OF4)
Modules Installation Instructions, publication 2085-IN006
Micro800 4-channel Thermocouple/RTD Input Module Installation Information on mounting and wiring the expansion I/O module (2085-IRT4)
Instructions, publication 2085-IN007
Micro870 Programmable Controllers 24V DC Expansion Power Supply Information on mounting and wiring the optional external power supply for expansion I/O
Installation Instructions, publication 2085-IN008 modules.
Micro800 RS-232/RS-485 Isolated Serial Port Plug-in Module Wiring Information on mounting and wiring the Micro800 RS-232/RS-485 Isolated Serial Port Plug-in
Diagrams, publication 2080-WD002 Module.
Resource Description
Micro800 Non-isolated Unipolar Analog Input Plug-in Module Wiring Information on mounting and wiring the Micro800 Non-isolated Unipolar Analog Input Plug-in
Diagrams, publication 2080-WD003 Module.
Micro800 Non-isolated Unipolar Analog Output Plug-in Module Wiring Information on mounting and wiring the Micro800 Non-isolated Unipolar Analog Output Plug-in
Diagrams, publication 2080-WD004 Module.
Micro800 Non-isolated RTD Plug-in Module Wiring Diagrams, Information on mounting and wiring the Micro800 Non-isolated RTD Plug-in Module.
publication 2080-WD005
Micro800 Non-isolated Thermocouple Plug-in Module Wiring Diagrams, Information on mounting and wiring the Micro800 Non-isolated Thermocouple Plug-in Module.
publication 2080-WD006
Micro800 Memory Backup and High Accuracy RTC Plug-In Module Wiring Information on mounting and wiring the Micro800 Memory Backup and High Accuracy RTC Plug-
Diagrams, publication 2080-WD007 In Module.
Micro800 6-Channel Trimpot Analog Input Plug-In Module Wiring Diagrams, Information on mounting and wiring the Micro800 6-Channel Trimpot Analog Input Plug-In
publication 2080-WD008 Module.
Micro800 Digital Relay Output Plug-in Module Wiring Diagrams, Information on mounting and wiring the Micro800 Digital Relay Output Plug-in Module.
publication 2080-WD010
Micro800 Digital Input, Output, and Combination Plug-in Modules Wiring Information on mounting and wiring the Micro800 Digital Input, Output, and Combination Plug-in
Diagrams, publication 2080-WD011 Modules.
Micro800 High-Speed Counter Plug-in Module Wiring Diagram, Information on mounting and wiring the High-Speed Counter Plug-in module.
publication 2080-WD012
Micro800 DeviceNet Plug-in Module Wiring Diagram, publication 2080-WD013 Information on mounting and wiring the Micro800 DeviceNet® plug-in module.
EtherNet/IP Network Devices User Manual, publication ENET-UM006 Describes how to configure and use EtherNet/IP devices to communicate on the EtherNet/IP
network.
Ethernet Reference Manual, publication ENET-RM002 Describes basic Ethernet concepts, infrastructure components, and infrastructure features.
Provides guidance on how to conduct security assessments, implement Rockwell Automation
System Security Design Guidelines Reference Manual, products in a secure system, harden the control system, manage user access, and dispose of
publication SECURE-RM001 equipment.
Industrial Components Preventive Maintenance, Enclosures, and Contact Provides a quick reference tool for Allen-Bradley® industrial automation controls and
Ratings Specifications, publication IC-TD002 assemblies.
Designed to harmonize with NEMA Standards Publication No. ICS 1.1-1987 and provides general
Safety Guidelines for the Application, Installation, and Maintenance of guidelines for the application, installation, and maintenance of solid-state control in the form of
Solid-state Control, publication SGI-1.1 individual devices or packaged assemblies incorporating solid-state components.
Industrial Automation Wiring and Grounding Guidelines, publication 1770-4.1 Provides general guidelines for installing a Rockwell Automation® industrial system.
Product Certifications website, rok.auto/certifications. Provides declarations of conformity, certificates, and other certification details.
Notes:
Hardware Overview
Topic Page
Hardware Features 16
Micro830 Controllers 16
Micro850 Controllers 17
Micro870 Controllers 19
Programming Cables 21
Embedded Serial Port Cables 21
Embedded Ethernet Support 22
Hardware Features Micro830, Micro850, and Micro870 controllers are economical brick style
controllers with embedded inputs and outputs. Depending on the controller
type, it can accommodate from two to five plug-in modules. The Micro850 and
Micro870 controllers have expandable features. The Micro850 controller can
support up to four expansion I/O modules and the Micro870 controller can
support up to eight expansion I/O modules.
IMPORTANT For information on supported plug-in modules and expansion I/O, see the
following publications:
• Micro800 Expansion I/O Modules User Manual, publication 2080-UM003
• Micro800 Plug-in Modules User Manual, publication 2080-UM004
The controllers also accommodate any class 2 rated 24V DC output power
supply that meets minimum specifications such as the optional Micro800
power supply.
Micro830 Controllers
Micro830 10/16-point controllers and status indicators
1 2 3 4 5 6 7 8 Status indicator
Controller
14
15
16
17
18
19
20
13 12 11 10 6 9 7
14
15
16
17
18
19
20
13 12 11 10 9 6 9 8
14
15
16
17
18
19
20
13 12 11 10 6 9 8
Controller Description
Description Description
1 Status indicators 8 Mounting screw hole / mounting foot
2 Optional power supply slot 9 DIN rail mounting latch
3 Plug-in latch 10 Mode switch
4 Plug-in screw hole 11 Type B connector USB port
5 40-pin high-speed plug-in connector 12 RS-232/RS-485 non-isolated combo serial port
6 Removable I/O terminal block 13 Optional AC power supply
7 Right-side cover
Micro850 Controllers
Micro850 24-point controllers and status indicators
1 2 3 4 5 6 7 8
Status indicators
16
17
18
19
20
21
22
23
24
15 14 13 12 11 10 6 10 8 9
Controller Description
Description Description
1 Status indicators 9 Expansion I/O slot cover
2 Optional power supply slot 10 DIN rail mounting latch
3 Plug-in latch 11 Mode switch
4 Plug-in screw hole 12 Type B connector USB port
5 40-pin high-speed plug-in connector 13 RS-232/RS-485 non-isolated combo serial port
RJ-45 Ethernet connector (with embedded green and
6 Removable I/O terminal block 14 yellow LED indicators)
7 Right-side cover 15 Optional power supply
8 Mounting screw hole / mounting foot
1 2 3 4 5 8 6 7 8
Status indicators
16
17
18
19
20
21
22
23
24
15 14 13 12 11 6 10 8 9
Controller Description
Description Description
1 Status indicators 9 Expansion I/O slot cover
2 Optional power supply slot 10 DIN rail mounting latch
3 Plug-in latch 11 Mode switch
4 Plug-in screw hole 12 Type B connector USB port
5 40-pin high-speed plug-in connector 13 RS-232/RS-485 non-isolated combo serial port
RJ-45 EtherNet/IP connector
6 Removable I/O terminal block 14 (with embedded yellow and green LED indicators)
7 Right-side cover 15 Optional AC power supply
8 Mounting screw hole / mounting foot
Note: You can order the following replacement terminal blocks separately:
• 2080-RPL24RTB for 24-point base controllers
• 2080-RPL48RTB for 48-point base controllers
Micro870 Controllers
Micro870 24-point controllers and status indicators
1 2 3 4 5 6 7 8
Status indicators
16
17
18
19
20
21
22
23
24
15 14 13 12 11 10 6 10 8 9
Controller Description
Description Description
1 Status indicators 9 Expansion I/O slot cover
2 Optional power supply slot 10 DIN rail mounting latch
3 Plug-in latch 11 Mode switch
4 Plug-in screw hole 12 Type B connector USB port
5 40-pin high-speed plug-in connector 13 RS-232/RS-485 non-isolated combo serial port
RJ-45 Ethernet connector (with embedded green and
6 Removable I/O terminal block 14 yellow LED indicators)
7 Right-side cover 15 Optional power supply
8 Mounting screw hole / mounting foot
Programming Cables
Use a standard USB A Male to B Male cable for programming the controller.
Embedded serial port cables for communication are listed here. All embedded
serial port cables must be 3 meters in length, or shorter.
For Micro850 and Micro870 controllers, a 10/100 Base-T Port (with embedded
green and yellow LED indicators) is available for connection to an Ethernet
network through any standard RJ-45 Ethernet cable. The LED indicators serve
as indicators for transmit and receive status.
Micro850 and Micro870 controllers also support two LEDs for EtherNet/IP™ to
indicate the following:
• Module status
• Network status
Programming Software for Connected Components Workbench software is a set of collaborative tools
Micro800 Controllers supporting Micro800 controllers. It is based on Rockwell Automation and
Microsoft® Visual Studio® technology and offers controller programming,
device configuration and integration with HMI editor. Use this software to
program your controllers, configure your devices and design your operator
interface applications.
Using Run Mode Change Run Mode Change (RMC) is a productivity enhancement feature supported in
(RMC) Connected Components Workbench software for Micro820/Micro830/
Micro850/Micro870 controllers. It saves the user time by allowing logic
modifications to a running project without going to remote program mode
and without disconnecting from the controller.
When user is editing, building, and downloading a project without using RMC,
a full build of the entire controller project is performed and also a full
download of the project is performed. During RMC an incremental build is
performed and only incremental changes are downloaded to the controller.
IMPORTANT Do not disconnect from the controller after performing Run Mode
Change, do a full build, and try to reconnect. Connected Components
Workbench software treats the project in the controller as different from
the project in Connected Components Workbench software, and ask to
either upload or download even though the logic is identical.
ATTENTION: Use extreme caution when you use Run Mode Change. Mistakes
can injure personnel and damage equipment. Before using Run Mode Change:
• assess how machinery will respond to the changes.
• notify all personnel about the changes.
Bit Definition
Set when the Run Mode Change process starts.
Cleared once the Run Mode Change is written permanently to the controller (completion of Accept or
0 Undo).
This bit can be used to warn operators that a run mode change is in progress and that there are
uncommitted changes in the controller.
Set if an error occurred while saving the changes to flash or an integrity check failed during Run
1 Mode Change.
Cleared on the next successful Run Mode change.
When you perform a Test Logic Change, the value of the variable is changed
from zero to one. After you choose to accept or undo the changes, the value of
the variable is reset to zero.
IMPORTANT When a Test Logic is performed, or undoing changes after the Test Logic
is completed, any active communication instructions will be aborted
while the changes are downloaded to the controller.
Uncommitted Changes
Uncommitted changes are changes made in RMC that have not been accepted
or undone after a Test Logic Change has been performed.
If the controller power loses power while there are uncommitted changes, you
will not be able to re-enter RMC upon reconnection. You can choose to re-
download the project to keep the changes, or upload if the uncommitted
changes are not wanted.
RMC Memory
Run Mode Change (RMC) memory is used to store both the logic and user
variable changes made during RMC. The default amount of memory allocated
is 2 KB and can be increased up to 16 KB. However there is still a limit of 2 KB
for logic and user variables changes per Test Logic. To adjust the amount of
RMC memory, the controller must be offline. After you have adjusted the
amount, you must build the project and download it to the controller.
Free memory
Used memory
If not enough RMC memory is available to make more changes (for example, a
“not enough memory” error message appears during RMC build or Test Logic),
then a full download must be performed to transfer the incremental changes
from the RMC memory to standard user program and data memory.
The changes that you have made during RMC are stored in RMC memory and
will remain there until you perform a full build and download (while the
controller is disconnected).
RMC Memory Usage When Performing Full Build and Download Example
Controller Memory RMC Memory
(for User Program + Data) (Default size = 2KB)
However if the controller memory does not have enough space remaining to
copy the contents of the RMC memory as shown below, the operation will fail
and a “not enough memory” error message will appear. Do not use RMC if you
are near the limits of your controller memory.
Limitations of RMC
Take note of the following limitations when using the Run Mode Change
(RMC) feature:
• Configuration changes cannot be made (for example, change filter
times).
• Up to 2 KB of logic (approximately 150 boolean instructions(1)) and user
variables and can be added for each Test Logic.
• Total memory allocated for RMC (cumulative of all Test Logic Changes)
can be increased from 2 KB to 16 KB, but the 2 KB limit for logic and user
variables per Test Logic remains.
• Up to 20 POU (Program Organizational Units) can be added for each
change (for example, if you currently have 5 POU, you can add 20 more
for a total of 25 POU).
• If a User Defined Function Block is modified that changes the local
variables, the local variables will be reinitialized or reset to zero and a
warning message will be shown during the build. If you want to reapply
the initial value, right-click on the UDFB and select Refactor → Reset
Initial Values of Instances.
• RMC is not possible after doing a Discover Project operation if a new
module is detected because the configuration has changed.
• Exchange files cannot be imported when in RMC because it is considered
a configuration change.
• Making changes to the display configuration (for example, hiding
comments) are treated as logic changes and require you to build the
project.
• Global variables cannot be deleted or modified in RMC, but can be added.
To delete or modify a global variable, Connected Components
Workbench software must be disconnected from the controller.
• When using CIP™ messaging in RMC, setting the CIPTARGETCFG data
type parameter ConnClose to TRUE has no effect. The Ethernet session
does not close immediately upon successful messaging and you have to
wait for the connection to timeout after 60 seconds. This applies to
Connected Components Workbench software version 9 or earlier
projects. For version 10 or later projects, the CIP connection timeout is
configurable.
WARNING: If you delete the output rung when in Run Mode Change and accept
the changes, the output on the controller will remain ON.
See Use Run Mode Change on page 282 for an example on how to use this
feature.
(1) Approximately 85 boolean instructions for Micro850 (2080-L50E) and Micro870 (2080-L70E)
controllers.
Rockwell Automation Publication 2080-UM002M-EN-E - April 2022 27
Chapter 2 About Your Controller
Using Run Mode Run Mode Configuration Change (RMCC) is a productivity enhancement
Configuration Change feature supported in Connected Components Workbench software for
Micro820/Micro830/Micro850/Micro870 controllers. It allows users to reuse
(RMCC) an identical program with multiple controllers simply by changing the address
configuration of a controller within the program during run mode. Micro820/
Micro830/Micro850 controller firmware revision 9.xxx or higher is required to
use this feature.
IMPORTANT During RMCC the scan time may increase to close to 100 ms. Do not
perform RMCC if the controller is performing time critical operations.
CIP Generic Message Instruction for Run Mode Configuration Change
To use RMCC with the Modbus RTU communication protocol, the serial port
must be set to the Modbus slave role. A CIP Generic message is sent from
within a program with the following parameters.
The first byte indicates the new node address for the controller. For this
example, the new node address is “3”. The second byte must always be “1”, this
indicates that the Modbus role is configured as Slave.
When the new node address is configured and applied, the port is not
restarted.
IMPORTANT You must ensure that the new node address being configured is unique
as it will not be checked against existing node addresses of other
devices.
You can verify that the node address has changed after performing RMCC by
looking at the Communication Diagnostics tab for the controller.
After the new IP address is configured and applied, the controller will
disconnect from the Connected Components Workbench software if
communication is through Ethernet.
You can verify that the IP address has changed after performing RMCC by
looking at the Ethernet settings for the controller.
Safety Considerations Safety considerations are an important element of proper system installation.
Actively thinking about the safety of yourself and others, as well as the
condition of your equipment, is of primary importance. We recommend
reviewing the following safety considerations.
The main power disconnect switch should be located where operators and
maintenance personnel have quick and easy access to it. In addition to
disconnecting electrical power, all other sources of power (pneumatic and
hydraulic) should be de-energized before working on a machine or process
controlled by a controller.
Safety Circuits
Circuits installed on the machine for safety reasons, like overtravel limit
switches, stop push buttons, and interlocks, should always be hard-wired
directly to the master control relay. These devices must be wired in series so
that when any one device opens, the master control relay is de-energized,
thereby removing power to the machine. Never alter these circuits to defeat
their function. Serious injury or machine damage could result.
Power Distribution
There are some points about power distribution that you should know:
• The master control relay must be able to inhibit all machine motion by
removing power to the machine I/O devices when the relay is de-
energized. It is recommended that the controller remain powered even
when the master control relay is de-energized.
• If you are using a DC power supply, interrupt the load side rather than
the AC line power. This avoids the additional delay of power supply turn-
off. The DC power supply should be powered directly from the fused
secondary of the transformer. Power to the DC input and output circuits
should be connected through a set of master control relay contacts.
Any part can fail, including the switches in a master control relay circuit. The
failure of one of these switches would most likely cause an open circuit, which
would be a safe power-off failure. However, if one of these switches shorts out,
it no longer provides any safety protection. These switches should be tested
periodically to assure they will stop machine motion when needed.
Power Considerations The following explains power considerations for the micro controllers.
Isolation Transformers
You may want to use an isolation transformer in the AC line to the controller.
This type of transformer provides isolation from your power distribution
system to reduce the electrical noise that enters the controller and is often used
as a step-down transformer to reduce line voltage. Any transformer used with
the controller must have a sufficient power rating for its load. The power
rating is expressed in volt-amperes (VA).
During power-up, the Micro800 power supply allows a brief inrush current to
charge internal capacitors. Many power lines and control transformers can
supply inrush current for a brief time. If the power source cannot supply this
inrush current, the source voltage may sag momentarily.
The only effect of limited inrush current and voltage sag on the Micro800 is
that the power supply capacitors charge more slowly. However, the effect of a
voltage sag on other equipment should be considered. For example, a deep
voltage sag may reset a computer connected to the same power source. The
following considerations determine whether the power source must be
required to supply high inrush current:
• The power-up sequence of devices in a system.
• The amount of the power source voltage sag if the inrush current cannot
be supplied.
If the entire system is powered-up at the same time, a brief sag in the power
source voltage typically will not affect any equipment.
The power supply hold-up time as described above is generally longer than the
turn-on and turn-off times of the inputs. Because of this, the input state
change from “On” to “Off” that occurs when power is removed may be recorded
by the controller before the power supply shuts down the system.
Understanding this concept is important. The user program should be written
to take this effect into account.
Preventing Excessive Heat For most applications, normal convective cooling keeps the controller within
the specified operating range. Ensure that the specified temperature range is
maintained. Proper spacing of components within an enclosure is usually
sufficient for heat dissipation.
Master Control Relay A hard-wired master control relay (MCR) provides a reliable means for
emergency machine shutdown. Since the master control relay allows the
placement of several emergency-stop switches in different locations, its
installation is important from a safety standpoint. Overtravel limit switches or
mushroom-head push buttons are wired in series so that when any of them
opens, the master control relay is de-energized. This removes power to input
and output device circuits. See Figure 1 on page 36 and Figure 2 on page 37.
If you are using an external DC power supply, interrupt the DC output side
rather than the AC line side of the supply to avoid the additional delay of
power supply turn-off.
The AC line of the DC output power supply should be fused.
Connect a set of master control relays in series with the DC power supplying
the input and output circuits.
Place the main power disconnect switch where operators and maintenance
personnel have quick and easy access to it. If you mount a disconnect switch
inside the controller enclosure, place the switch operating handle on the
outside of the enclosure, so that you can disconnect power without opening
the enclosure.
Whenever any of the emergency-stop switches are opened, power to input and
output devices should be removed.
When you use the master control relay to remove power from the external I/O
circuits, power continues to be provided to the controller’s power supply so
that diagnostic indicators on the controller can still be observed.
The master control relay is not a substitute for a disconnect to the controller. It
is intended for any situation where the operator must quickly de-energize I/O
devices only. When inspecting or installing terminal connections, replacing
output fuses, or working on equipment within the enclosure, use the
disconnect to shut off power to the rest of the system.
Do not control the master control relay with the controller. Provide the
operator with the safety of a direct connection between an emergency-stop
switch and the master control relay.
• In the following illustration, input and output circuits are shown with
MCR protection. However, in most applications, only output circuits
require MCR protection.
The following illustrations show the Master Control Relay wired in a grounded
system.
Disconnect
Fuse MCR
230V AC
I/O circuits
Suppr.
MCR
MCR
115V AC or 230V AC
I/O circuits
DC power supply.
Use IEC 950/EN 60950
_ MCR
+
24V DC
(Lo) (Hi)
I/O circuits
Line terminals: Connect to terminals of power supply.
Line terminals: Connect to 24V DC terminals of power supply.
L1 L2
230V AC
Disconnect
Fuse MCR
230V AC
output
circuits
Suppr.
MCR
MCR
115V AC or 230V AC
I/O circuits
Notes:
This chapter serves to guide the user on installing the controller. It includes the
following topics.
Topic Page
Controller Mounting Dimensions 39
Mounting Dimensions 39
DIN Rail Mounting 41
Panel Mounting 41
90 (3.54)
Measurements in mm (in.)
90 (3.54)
Measurements in mm (in.)
90 (3.54)
Measurements in mm (in.)
90 (3.54)
Measurements in mm (in.)
90 (3.54)
Measurements in mm (in.)
Maintain spacing from objects such as enclosure walls, wireways, and adjacent
equipment. Allow 50.8 mm (2 in.) of space on all sides for adequate ventilation.
If optional accessories/modules are attached to the controller, such as the
power supply 2080-PS120-240VAC or expansion I/O modules, make sure that
there is 50.8 mm (2 in.) of space on all sides after attaching the optional parts.
40 Rockwell Automation Publication 2080-UM002M-EN-E - April 2022
Chapter 3 Install Your Controller
The module can be mounted using the following DIN rails: 35 x 7.5 x 1 mm
(EN 50 022 - 35 x 7.5).
For environments with greater vibration and shock concerns, use the panel
mounting method, instead of DIN rail mounting.
Before mounting the module on a DIN rail, use a flat-blade screwdriver in the
DIN rail latch and pry it downwards until it is in the unlatched position.
1. Hook the top of the DIN rail mounting area of the controller onto the
DIN rail, and then press the bottom until the controller snaps onto the
DIN rail.
2. Push the DIN rail latch back into the latched position.
Use DIN rail end anchors (Allen-Bradley part number 1492-EAJ35 or 1492-
EAHJ35) for vibration or shock environments.
To remove your controller from the DIN rail, pry the DIN rail latch downwards
until it is in the unlatched position.
Panel Mounting
The preferred mounting method is to use four M4 (#8) screws per module.
Hole spacing tolerance: ±0.4 mm (0.016 in.).
IMPORTANT For instructions on how to install your Micro800 system with expansion I/O,
see Micro800 Expansion I/O Modules User Manual, publication 2080-UM003.
System Assembly
Micro830, Micro850, and Micro870 24-point Controllers (Front)
27.8 (1.09)
45 (1.77) 145.2 (5.72) 44.4 (1.75) 14.4 (0.567)
90
110.8 (3.54)
(4.36) 100
(3.94)
7.2 (0.28)
131 (5.16) 36.6 (1.44)
7.2 (0.28) 22.8 (0.90)
Micro830/Micro850/Micro870 24-pt controller with Micro800 power supply Expansion I/O slots
(Applicable to Micro850 and Micro870 only)
Single-width (1st slot)
Measurements in mm (in.)
Double-width (2nd slot)
2085-ECR (terminator)
87 (3.42)
80 (3.15)
Micro830/Micro850/Micro870 24-pt controller with Micro800 power supply Expansion I/O Slots
(Applicable to Micro850 and Micro870 only)
Single-width (1st slot)
Double-width (2nd slot)
Measurements in mm (in.) 2085-ECR (terminator)
44.4 (1.75)
27.8 (1.09) 14.4 (0.57)
45 (1.77) 230 (9.05)
7.8
33.8 108 (4.25) 108 (4.25) (0.31)
(1.33) 7 (0.27) 7.8 (0.31)
100.1 90
(3.94) (3.54)
110.8
(4.36)
87
(3.42)
80 (3.15)
Micro830/Micro850 48-pt controller with Micro800 power supply Expansion I/O Slots
(Applicable to Micro850 only)
Measurements in mm (in.) Single-width (1st slot)
Double-width (2nd slot)
2085-ECR (terminator)
Notes:
Topic Page
Wiring Requirements and Recommendation 47
Use Surge Suppressors 48
Recommended Surge Suppressors 49
Grounding the Controller 50
Wiring Diagrams 51
Controller I/O Wiring 55
Minimize Electrical Noise 55
Analog Channel Wiring Guidelines 55
Minimize Electrical Noise on Analog Channels 56
Grounding Your Analog Cable 56
Wiring Examples 56
Embedded Serial Port Wiring 57
Use Surge Suppressors Because of the potentially high current surges that occur when switching
inductive load devices, such as motor starters and solenoids, the use of some
type of surge suppression to protect and extend the operating life of the
controllers output contacts is required. Switching inductive loads without
surge suppression can significantly reduce the life expectancy of relay
contacts. By adding a suppression device directly across the coil of an inductive
device, you prolong the life of the output or relay contacts. You also reduce the
effects of voltage transients and electrical noise from radiating into adjacent
systems.
If the outputs are DC, we recommend that you use an 1N4004 diode for surge
suppression, as shown in Figure 4 on page 49. For inductive DC load devices, a
diode is suitable. A 1N4004 diode is acceptable for most applications. A surge
suppressor can also be used. See Recommended Surge Suppressors on page 49.
These surge suppression circuits connect directly across the load device.
VAC/DC
Out 0
Out 1
Out 2
Relay or solid-state Out 3
DC outputs Out 4
Out 5 IN4004 diode
Out 6
Out 7 A surge suppressor can
24V DC common
also be used.
COM
Surge
suppressor
Varistor RC network
Use the Allen-Bradley surge suppressors shown in the following table for use
with relays, contactors, and starters.
380…480V AC 100-FSC480(1)
12…55V AC, 12…77V DC 100-FSV55(1)
Bulletin 100C, (C09…C97)
56…136V AC, 78…180V DC 100-FSV136(1)
MOV
137…277V AC, 181…250V DC 100-FSV277(1)
278…575V AC 100-FSV575(1)
12…250V DC 100-FSD250(1) Diode
12…120V AC 599-K04
Bulletin 509 Motor Starter Size 0...5 MOV
240…264V AC 599-KA04
12…120V AC 199-FSMA1(2) RC
Bulletin 509 Motor Starter Size 6
12…120V AC 199-GSMA1(3) MOV
AC coil Not Required
24…48V DC 199-FSMA9
Bulletin 700 R/RM Relay
50…120V DC 199-FSMA10 MOV
130…250V DC 199-FSMA11
6…150V AC/DC 700-N24 RC
24…48V AC/DC 199-FSMA9
Bulletin 700 Type N, P, PK, or PH Relay 50…120V AC/DC 199-FSMA10 MOV
130…250V AC/DC 199-FSMA11
6…300V DC 199-FSMZ-1 Diode
Miscellaneous electromagnetic devices limited to 35 6…150V AC/DC 700-N24 RC
sealed VA
(1) Catalog numbers for screwless terminals include the string ’CR’ after ’100-’. For example: Cat. No. 100-FSC48 becomes Cat. No. 100-CRFSC48; Cat. No. 100-FSV55 becomes 100-CRFSV55; and
so on.
(2) For use on the interposing relay.
(3) For use on the contactor or starter.
(4) RC Type not to be used with Triac outputs. Varistor is not recommended for use on the relay outputs.
Grounding the Controller This product is intended to be mounted to a well grounded mounting surface
such as a metal panel. See the Industrial Automation Wiring and Grounding
Guidelines, publication 1770-4.1, for additional information.
Wiring Diagrams The following illustrations show the wiring diagrams for the Micro800
controllers. Controllers with DC inputs can be wired as either sinking or
sourcing inputs. Sinking and sourcing does not apply to AC inputs.
2080-LC30-10QWB
Input terminal block
1 2 3 4 5 6 7 8 9 10 11 12
I-00 I-02 COM1 I-05 NC NC
1 2 3 4 5 6 7 8 9 10 11 12
-DC24 O-00 O-01 O-02 O-03 NC
2080-LC30-10QVB
Input terminal block
1 2 3 4 5 6 7 8 9 10 11 12
I-00 I-02 COM1 I-05 NC NC
1 2 3 4 5 6 7 8 9 10 11 12
-DC24 O-00 -CM0 O-02 -CM1 NC
2080-LC30-16AWB, 2080-LC30-16QWB
Input terminal block
1 2 3 4 5 6 7 8 9 10 11 12
I-00 I-02 COM1 I-05 I-07 I-09
1 2 3 4 5 6 7 8 9 10 11 12
-DC24 O-00 O-01 O-02 O-03 O-05
2080-LC30-16QVB
Input terminal block
1 2 3 4 5 6 7 8 9 10 11 12
I-00 I-02 COM1 I-05 I-07 I-09
1 2 3 4 5 6 7 8 9 10 11 12
-DC24 O-00 -CM0 O-02 -CM1 O-05
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 I-04 I-06 COM1 I-09 I-11 I-13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 O-00 O-01 O-02 O-04 CM3 O-07 O-09
2080-PS120-240VAC
L
COM0 I-01 I-03 I-05 I-07 I-08 I-10 I-12
N 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 I-04 I-06 COM1 I-09 I-11 I-13
CR CR CR CR CR
+DC c L1 b L1 c
+DC c
-DC c L2 b L2 c
-DC c
L2 a L1 a L2 b L1 b
L1 L2
2080-PS120-240VAC
L
COM0 I-01 I-03 I-05 I-07 I-08 I-10 I-12
N 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 I-04 I-06 COM1 I-09 I-11 I-13
CR CR CR CR CR
+DC c L1 b L1 c
+DC c
-DC c L2 b L2 c
-DC c
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 I-04 I-06 COM1 I-09 I-11 I-13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 O-00 -CM0 O-02 O-04 O-06 O-08 -CM1
2080-PS120-240VAC
L
COM0 I-01 I-03 I-05 I-07 I-08 I-10 I-12
N
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 I-04 I-06 COM1 I-09 I-11 I-13
CR CR
+DC d +DC e
-DC d -DC e
2080-PS120-240VAC
L
COM0 I-01 I-03 I-05 I-07 I-08 I-10 I-12
N
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 I-04 I-06 COM1 I-09 I-11 I-13
CR CR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 I-04 COM1 I-07 I-09 I-11 I-12
TERMINAL BLOCK 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-14 I-16 I-18 COM3 I-21 I-23 I-25 I-27
TERMINAL BLOCK 3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 O-00 O-01 O-02 O-03 O-04 O-05 O-06
TERMINAL BLOCK 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
O-07 O-09 O-11 O-12 O-14 CM9 O-17 O-19
TERMINAL BLOCK 4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 I-04 COM1 I-07 I-09 I-11 I-12
TERMINAL BLOCK 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-14 I-16 I-18 COM3 I-21 I-23 I-25 I-27
TERMINAL BLOCK 3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 O-00 O-02 -CM0 O-04 O-06 O-08 -CM1
TERMINAL BLOCK 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
O-10 O-12 O-14 -CM2 O-16 O-18 -CM3 NC
TERMINAL BLOCK 4
Controller I/O Wiring This section contains some relevant information about minimizing electrical
noise and also includes some wiring examples.
Several specific steps can be taken to help reduce the effects of environmental
noise on analog signals:
• install the Micro800 system in a properly rated enclosure, for example,
NEMA. Make sure that the shield is properly grounded.
• use Belden cable #8761 for wiring the analog channels, making sure that
the drain wire and foil shield are properly earth grounded.
• route the Belden cable separately from any AC wiring. Additional noise
immunity can be obtained by routing the cables in grounded conduit.
Use shielded communication cable (Belden #8761). The Belden cable has two
signal wires (black and clear), one drain wire, and a foil shield. The drain wire
and foil shield must be grounded at one end of the cable.
Foil shield
Black wire
Insulation
Drain wire
Clear wire
IMPORTANT Do not ground the drain wire and foil shield at both ends of the cable.
Wiring Examples
+V DC Fuse
Logic side
D Load +
OUT
G –
24V supply
DC COM
Com 24V
DC
~ +
I/P
Fuse
DC COM
Com
Fuse
~
+
I/P
24V
DC
Embedded Serial Port The embedded serial port is a non-isolated RS-232/RS-485 serial port, which is
Wiring targeted to be used for short distances (<3 m) to devices such as HMIs.
See Embedded Serial Port Cables on page 21 for a list of cables that can be used
with the embedded serial port 8-pin Mini DIN connector.
5 3
8 7 6
Pinout Explanations
Pin Definition RS-485 Example RS-232 Example
1 RS-485+ B(+) (not used)
2 GND GND GND
3 RS-232 RTS (not used) RTS
4 RS-232 RxD (not used) RxD
5 RS-232 DCD (not used) DCD
6 RS-232 CTS (not used) CTS
7 RS-232 TxD (not used) TxD
8 RS-485- A(-) (not used)
IMPORTANT • Do not connect the GND pin of the serial port to Earth/Chassis Ground. The
GND pin of the serial port is the DC common for the Serial Port
Communication signals and is not intended for Shield Ground.
• If the length of the serial cable is more than 3 meters, use an isolated serial
port, catalog number 2080-SERIALISOL.
Communication Connections
Overview This chapter describes how to communicate with your control system and
configure communication settings. The method you use and cabling required
to connect your controller depends on what type of system you are employing.
This chapter also describes how the controller establishes communication with
the appropriate network. Topics include:
Topic Page
Supported Communication Protocols 59
CIP Communications Pass-thru 64
Use Modems with Micro800 Controllers 65
Configure Serial Port 66
Configure Ethernet Settings 71
Configure CIP Serial Driver 73
OPC Support Using FactoryTalk Linx 73
Here are some configuration examples based on the limits described in the
table above:
1. The maximum number of drives that can be controlled over EtherNet/IP
is 16. This is due to the maximum limit of TCP Client connections is 16,
and the maximum limit of EtherNet/IP Client connections is also 16.
2. If you have 10 devices controlled over EtherNet/IP, the maximum
number of devices that can be controlled over serial is six. This is due to
the maximum limit of Client connections is 16.
3. The total number of UDP sockets plus TCP Client/Server sockets has a
maximum limit of eight.
Modbus RTU
CIP Serial Client/Server allows CIP protocol to be used over a serial port. It is
typically used with modems. The advantage over non-CIP serial protocols is
that since the protocol is CIP, program downloads are supported including
CIP pass-through from the serial port to Ethernet.
ASCII
ASCII provides connection to other ASCII devices, such as bar code readers,
weigh scales, serial printers, and other intelligent devices. You can use ASCII
by configuring the embedded or any plug-in serial RS-232/RS-485 port for the
ASCII driver. See the Connected Components Workbench Online Help for
more information.
To configure the serial port for ASCII, see Configure ASCII on page 70.
DF1 Half-duplex Master, DF1 Half-Duplex Slave, and DF1 Radio Modem are
supported in Micro850 (2080-L50E) and Micro870 (2080-L70E) controllers.
These protocols provide connection to multiple devices over RS-485 or radio
modems.
To configure CIP Serial, see Configure CIP Serial Driver on page 66.
To configure for EtherNet/IP, see Configure Ethernet Settings on page 71.
For more information on DF1 protocol, see Connect to Networks using DF1 on
page 325.
Users may access any global variables through CIP Symbolic addressing except
for system and reserved variables.
One- or two-dimension arrays for simple data types are supported (for
example, ARRAY OF INT[1…10, 1…10]) are supported but arrays of arrays (for
example, ARRAY OF ARRAY) are not supported. Array of strings are also
supported.
For more information and sample quickstart project to help you use the CIP
Client Messaging feature, see Micro800 Programmable Controllers: Getting
Started with CIP Client Messaging, publication 2080-QS002.
CIP Communications Pass- The Micro830, Micro850, and Micro870 controllers support pass-thru on any
thru communications port that supports Common Industrial Protocol (CIP) for
applications such as program download. It does not support applications that
require dedicated connections such as HMI. Micro830, Micro850, and
Micro870 controllers support a maximum of one hop. A hop is defined to be an
intermediate connection or communications link between two devices – in
Micro800, this is through EtherNet/IP or CIP Serial or CIP USB.
USB EtherNet/IP
Micro850 Micro850
controller1 controller2
For program download
The user can download a program from the PC to controller1 over USB. Also, the program
can be downloaded to controller2 and controller3 over USB to EtherNet/IP.
Micro850
controller3
Micro850 Micro830
controller1 controller2
For program download
USB to DeviceNet
EtherNet/IP to DeviceNet
IMPORTANT Micro800 controllers do not support more than one hop (for example, from
EtherNet/IP -> CIP Serial -> EtherNet/IP).
Use Modems with Micro800 Serial modems can be used with the Micro830, Micro850, and Micro870
Controllers controllers.
If you construct your own modem cable, the maximum cable length is 15.24 m
(50 ft) with a 25-pin or 9-pin connector. See the following typical pinout for
constructing a straight-through cable:
DTE Device
(Micro830/850/870 DCE Device
Channel 0) (Modem, etc)
8-Pin 25-Pin 9-Pin
7 TXD TXD 2 3
4 RXD RXD 3 2
2 GND GND 7 5
1 B(+) DCD 8 1
8 A(-) DTR 20 4
5 DCD DSR 6 6
6 CTS CTS 5 8
3 RTS RTS 4 7
Configure Serial Port You can configure the serial port driver as CIP Serial, Modbus RTU, ASCII, or
Shutdown through the Device Configuration tree in the Connected
Components Workbench software.
3. Specify a baud rate. Select a communication rate that all devices in your
system support. Configure all devices in the system for the same
communication rate. Default baud rate is set at 38,400 bps.
4. In most cases, parity and station address should be left at default
settings.
Configure ASCII
1. Open your Connected Components Workbench project. On the device
configuration tree, go to Controller properties. Click Serial Port.
2. Select ASCII on the Driver field.
ASCII Parameters
Parameter Options Default
Baud Rate 1200, 2400, 4800, 9600, 19200, 38400 19200
Parity None, Odd, Even None
Configure Ethernet Settings 1. Open your Connected Components Workbench project (for example,
Micro850). On the device configuration tree, go to Controller properties.
Click Ethernet.
Validate IP Address
Modules must validate the incoming IP address configuration, whether it is
obtained through explicit configuration or through DHCP.
The user can change the host name using the CIP Service Set Attribute Single
when the controller is in Program/Remote Program mode.
Configure CIP Serial Driver 1. Open your Connected Components Workbench project. On the device
configuration tree, go to the Controller properties. Click Serial Port.
2. Select CIP Serial from the Driver field.
3. Specify a baud rate. Select a communication rate that all devices in your
system support. Configure all devices in the system for the same
communication rate. Default baud rate is set @ 38,400 bps.
4. In most cases, parity and station address should be left at default
settings.
5. Click Advanced Settings and set Advanced parameters.
OPC Support Using Support for Open Platform Communications (OPC) using CIP symbolic has
FactoryTalk Linx been added from firmware release 7.011 onwards. This can be used in place of
Modbus addressing.
FactoryTalk® Linx software version 5.70 (CPR9 SR7) or later and FactoryTalk®
Linx Gateway software version 3.70 (CPR9 SR7) or later are required.
Notes:
Overview This chapter describes how to configure the DNP3 communication settings.
Topics include:
Topic Page
Channel Configuration for DNP3 Slave 75
DNP3 Slave Application Layer 100
DNP3 Objects and Controller Variables 105
DNP3 Device Attribute Object 116
Event Reporting 117
Collision Avoidance 122
Time Synchronization 123
Diagnostics 124
Function Codes 126
Implementation Table 127
Channel Configuration for The default communication protocol for the serial ports is DF1 Full-Duplex. To
DNP3 Slave communicate with Distributed Network Protocol (DNP3), the channel must be
configured for DNP3 Slave.
The default communication protocol for the Ethernet channel in the controller
is EtherNet/IP. To communicate with DNP3 over IP protocol, select DNP3 over
IP Enable in the Ethernet configuration page.
Link Layer related configuration can be done in the Serial Port configuration
page.
To enable DNP3 over IP protocol, select DNP3 over IP Enable in the Ethernet
configuration page.
DNP3 Slave configuration is shared by the serial and Ethernet ports if multiple
ports are configured for DNP3 protocol. Any changes in the DNP3 Slave
configuration page affects all ports.
Driver
Node Address
Baud
The selections can be 38400, 19200, 9600, 4800, 2400, and 1200.
Default selection is 38400.
Parity
The selections can be NONE, EVEN, and ODD. Default selection is NONE.
Stop Bits
When the selection is Enabled (Checked), the controller accepts the requests
only from the DNP3 Master which is configured in the Master Node0…Master
Node4. The maximum number of Master Node Addresses for the Master
Address Validation is 5.
Enable Self-Address
When this bit is Disabled (Unchecked), any packets which contain the
destination address 65532(FFFCh) are ignored.
When this bit is Enabled (Checked), any packets which contain the destination
address 65532(FFFCh) are accepted and processed.
Any responses back to the DNP3 Master includes the actual configured DNP3
address of the Micro870 controller.
Master Node0
This value is used to check validation for Master node address when Enable
Master Address Validation is Enabled (Checked).
Control Line
When the controller is connected to DNP3 Master using RS-232 line directly,
you must select No Handshake. If you want to use the Modem line in a half
duplex network, you must select Half-Duplex without continuous carrier
(CTS/RTS). If the controller is connected to an RS-485 network, you must select
No Handshake.
Request LL Confirmation
When the selection is Enabled (Checked), Primary Frames from the controller
are sent out with the function code FC_CONFIRMED_USER_DATA (3). In this
case, the controller waits for the confirmation and may retry the Frame if it did
not receive the confirmation from DNP3 Master within the time Confirmation
Timeout (x1 ms).
Send LL Confirmation
When the selection is Enabled (Checked), the optional Secondary Frame is sent
out with the function code FC_NACK (1) or FC_NOT_SUPPORTED (15).
Message Retries
When Confirmation Timeout (x1 ms) has expired and this parameter was non-
zero value, the controller tries to send retry packets.
The controller waits for the specified time before sending the packet.
When the Control is set at Half Duplex Modem (CTS/RTS handshaking), this
feature is enabled. This specifies a time delay between the end of a
transmission and dropping of the RTS signal.
When the Control is set at Half Duplex Modem (CTS/RTS handshaking), this
entry is enabled. This specifies a time delay between the raising of the RTS and
the initiation of a transmission.
This parameter is used with Pre-transmit Delay (x1 ms) for Collision Avoidance
on RS-485 network. For more details, see Collision Avoidance on page 122.
Listening End Point type supports a single TCP connection as a Server and
UDP datagram.
TCP Dual End Point type supports a single TCP connection as a Server, a single
TCP connection as a Client and UDP datagram.
Datagram End Point type supports UDP datagram from DNP3 Masters. The
default TCP and UDP port numbers are 20000 and the port numbers are
configurable.
The End Point type can be determined by the parameter End Point Type.
According to the parameter, the controller works as different End Point types.
See Table 6 for each configuration.
The valid selections are Enabled (Checked) and Disabled (Unchecked). Default
value is Disabled (Unchecked).
The valid selections are Enabled (Checked) and Disabled (Unchecked). Default
value is Disabled (Unchecked).
When the selection is Enabled (Checked), the controller accepts the requests
only from the DNP3 Master Node Address which is configured in the
parameters Master Node0 on page 79, and Master Node1, Master Node2,
Master Node3, Master Node4 on page 79. The maximum number of Master
Node Address for the Master Address Validation is 5.
Enable Self-Address
The valid selections are Enabled (Checked) and Disabled (Unchecked). Default
value is Disabled (Unchecked).
When this bit is Disabled (Unchecked), any packets which contain the
destination address 65532 (FFFCh) are ignored.
When this bit is Enabled (Checked), any packets which contain the destination
address 65532 (FFFCh) are accepted and processed.
Any responses back to the DNP3 Master includes the actual configured DNP3
address of the Micro870 controller.
The valid selections are Enabled (Checked) and Disabled (Unchecked). Default
value is Disabled (Unchecked).
When the selection is Enabled (Checked), the controller accepts the requests
only from the DNP3 Master IP Address which is configured in the parameters
Master IP Address0 to Master IP Address4. The maximum number of Master
IP Address for the Access Control is 5.
Master Node0
This value is used for validation of the Master node address when the Enable
Master Address Validation is Enabled (Checked). This value is only shown and
valid when the Enable Master Address Validation is Enabled (Checked).
Master IP Address0
This value is used for validation of the Master IP address when the Enable
Access Control is Enabled (Checked). This value is only shown and valid when
the Enable Access Control is Enabled (Checked).
This value is used to configure Master TCP Port Number for Unsolicited
Response.
This value is used to configure Master UDP Port Number for Initial Unsolicited
Response if the parameter End Point Type is selected as Datagram Only.
This value is used to configure Master UDP Port Number if the parameter End
Point Type is selected as Datagram Only.
This parameter specifies a time interval for TCP Keep Alive mechanism.
If the timer times out, the controller transmits a keep-alive message. The keep-
alive message is a DNP Data Link Layer status request
(FC_REQUEST_LINK_STATUS). If a response is not received to the keep-alive
message, the controller deems the TCP connection broken and closes the TCP
connection.
This value is used to configure Local UDP Port Number which is used for UDP
socket listening.
This value is used to configure Local TCP Port Number which is used for TCP
socket listening.
Only channels already configured for DNP3 protocol appear in the Channel for
Unsolicited Response dropdown menu. Any and all Unsolicited Responses are
transmitted via this selected channel.
When the selection is Disabled (Unchecked), DNP3 events which are generated
before a power cycle are flushed after a power cycle. When the option is
Enabled (Checked), all DNP3 events are restored after a power cycle.
When the selection is Disabled (Unchecked), the controller does not send any
enabled Unsolicited Responses after a restart until it has received a
FC_ENABLE_UNSOLICITED (20) command from the DNP3 Master.
When the selection is Enabled (Checked), the controller sends any enabled
Unsolicited Responses after a restart to the DNP3 Master unconditionally.
When the selection is Disabled (Unchecked), the controller does not send
Unsolicited NULL Response with RESTART IIN bit on startup.
This selection is also used for sending the Restart IIN bit during Driver and
Channel configuration changes. See Internal Indications on page 104 for more
information.
Enable Confirmation
When the selection is Disabled (Unchecked), the controller does not perform
any time synchronization.
When the selection is Enabled (Checked), the controller sets the NEED_TIME
Internal Indication bit (IIN1.4) on power up and every interval configured in
Time Synchronization Interval (x1 mins).
This parameter is used with Enable Time Synchronization. Only valid when
Enable Time Synchronization is Enabled (Checked).
The valid range is 0…32767. Default value is 0. If the value is 0, the NEED_TIME
Internal Indication (IIN1.4) bit are set at startup and then after every Time
Synchronization Interval minutes if the value is greater than 0.
The controller sends Application Layer frame to fit in Max Response Size. If
the Response packet size is larger than this value, the controller fragments the
Response packet.
Number of Retries
This parameter is only for Unsolicited Response. If this value has the
maximum which is 65535, it means infinite retries of the Unsolicited Response.
This parameter is only for a Class 1 Unsolicited Response. The controller holds
the events during Hold Time after Class1 Events (x 1s) before initiating an
Unsolicited Response.
The value of 0 indicates that responses are not delayed due to this parameter.
The parameters Number of Class1 Events and Hold Time after Class1 Events
(x 1s) are used together so that if either one of the criteria are met, an
Unsolicited Response is transmitted.
By default, the Hold time is re-triggered for each new event detected.
This parameter is only for a Class 2 Unsolicited Response. The controller holds
the events during Hold Time after Class2 Events (x 1s) before initiating an
Unsolicited Response.
The value of 0 indicates that responses are not delayed due to this parameter.
The Parameters Number of Class2 Events and Hold Time after Class2 Events
(x 1s) are used together so that if either one of the criteria are met, an
Unsolicited Response is transmitted.
By default, the Hold time is re-triggered for each new event detected.
This parameter is only for a Class 3 Unsolicited Response. The controller holds
the events during Hold Time after Class3 Events (x 1s) before initiating an
Unsolicited Response.
The value of 0 indicates that responses are not delayed due to this parameter.
The parameters Number of Class3 Events and Hold Time after Class3 Events
(x 1s) are used together so that if either one of the criteria are met, an
Unsolicited Response is transmitted.
By default, the Hold time is re-triggered for each new event detected.
This parameter is used for controlling CROB (Control Relay Output Block) and
AOB (Analog Output Block). After receiving the request with the function code
FC_SELECT(3), DNP3 Master should send the request with the function code
FC_OPERATE(4) within this configured time.
The DNP3 Mapping selection under DNP3 Slave in the controller properties
allow you to define the mapping of the listed DNP3 object and object properties
(class number, online/offline status, object quality flags, deadbands, and/or
thresholds) to controller variables.
See DNP3 Objects and Controller Variables on page 105 for more information.
The valid selections are Enabled (Checked) and Disabled (Unchecked). Default
value is Disabled (Unchecked).
When the selection is Enabled (Checked), the controller enables DNP3 Secure
Authentication subsystem.
This parameter specifies the authentication version that this DNP3 slave
controller uses.
The valid selections are Enabled (Checked) and Disabled (Unchecked). Default
value is Disabled (Unchecked).
This critical function code in the DNP3 Slave configuration page is used to
define the list of the critical function codes in Secure Authentication. A critical
function code should be defined by clicking the number icon to change it
between Critical and Non-critical.
The following table shows the default state of the function codes that are
defined in Connected Components Workbench software.
Function Codes
Function Code Critical FCs Function Code Critical FCs
0 (0x00) non-critical 20 (0x14) critical
1 (0x01) non-critical 21 (0x15) critical
2 (0x02) critical 22 (0x16) non-critical
3 (0x04) critical 23 (0x17) non-critical
4 (0x04) critical 24 (0x18) critical
5 (0x05) critical 25 (0x19) non-critical
6 (0x06) critical 26 (0x1A) non-critical
7 (0x07) non-critical 27 (0x1B) non-critical
8 (0x08) non-critical 28 (0x1C) non-critical
9 (0x09) non-critical 29 (0x1D) critical
This parameter is used for configuring the expected session key change
interval in minutes.
When DNP3 Master does not change the Session Key within this time
configured, the controller invalidate the Session Key and its state for each user.
This parameter is used for configuring the expected session key change count.
This parameter is used for configuring the reply timeout in 100 ms.
In Connected Components Workbench software, you can create the user keys
in the DNP3 Slave configuration page.
User Number
Valid range is 1…65535.
User Role
A dropdown selection of various roles that you can define for each user
number (Viewer, Operator, Engineer, Installer, SECADM, SECAUD,
RBACMNT, and single user).
User Name
Define the unique name for each user, up to 32 characters (numbers,
alphabets, and symbols).
Update Key
The key to be used by each user, up to 32 hexadecimal digits.
Public Key
The type of key used in the certificate is based on the Update Key Change
Method setting that you have selected in the configuration. To define the key,
select one of the following settings.
• To use Symmetric Key in authorization:
- AES-128/SHA-1-HMAC
- AES-256/SHA-256-HMAC
• To use Public Key in authorization:
- RSA-2048/RSA SHA-256/SHA-256/HMAC
- RSA-3072/RSA SHA-256/SHA-256-HMAC
Table 7 shows the structure of the DNP3 Default Variation Configuration File.
Table 7 - DNP3 Default Variation Configuration File
Group Default Variation for the following Objects Standard Default Variation Alternate Default Variations
0 - All variation
1 Binary Input Static Object 1 - Packed format 2 - With flag
0 - All variation
2 Binary Input Change Object 3 - With relative time 1 - Without time
2 - With absolute time
0 - All variation
3 Double Bit Binary Input Static Object 1 - Packed format 2 - With flag
0 - All variation
4 Double Bit Binary Input Change Object 3 - With relative time 1 - Without time
2 - With absolute time
0 - All variation
10 Binary Output Static Object 2 - Output status with flag 1 - Packed format
0 - All variation
11 Binary Output Change Object 2 - Status with time 1 - Status without time
0 - All variation
13 Binary Output Command 2 - Command status with time 1 - Command status without time
0 - All variation
1 - 32-bit with flag
16-bit Counter Static Object 6 - 16-bit without flag 2 - 16-bit with flag
5 - 32-bit without flag
20
0 - All variation
1 - 32-bit with flag
32-bit Counter Static Object 5 - 32-bit without flag 2 - 16-bit with flag
6 - 16-bit without flag
0 - All variation
1 - 32-bit with flag
2 - 16-bit with flag
Frozen 16-bit Counter Static Object 10 - 16-bit without flag 5 - 32-bit with flag and time
6 - 16-bit with flag and time
9 - 32-bit without flag
21
0 - All variation
1 - 32-bit with flag
2 - 16-bit with flag
Frozen 32-bit Counter Static Object 9 - 32-bit without flag 5 - 32-bit with flag and time
6 - 16-bit with flag and time
10 - 16-bit without flag
DNP3 Slave Application This section covers DNP3 Slave Application Layer Function Codes and Internal
Layer Indications. All of the Function Codes that are supported in the controller are
summarized in Function Codes for DNP3 in Micro870 Controllers on page 126.
For details of Packet Formats for the request and response, see the DNP3
Protocol specifications.
Function Codes
00 – Confirm
A DNP3 master sends a message with this function code to confirm receipt of a
response fragment. In a general environment, the controller receives a
response with this function code. But the controller may generate a response
with this function code when a DNP3 Master sends a request with the CON bit
set in the application control header.
01 – Read
The READ function code is used by a DNP3 master to request data from the
controller.
02 – Write
The WRITE function code is used to write the contents of DNP3 objects from
the DNP3 master to the controller. This function code is used for clearing bit
IIN1.7 [DEVICE_RESTART], setting time in the controller and downloading
user programs to the controller.
03 – Select
The SELECT function code is used in conjunction with the OPERATE function
code as part of select-before-operate method for issuing control requests. This
procedure is used for controlling binary output (CROB) or analog output
(AOB) objects.
04 – Operate
See SELECT (FC Byte = 0x03) on page 101.
05 – Direct Operate
This direct operate function is similar to the FC_OPERATE function code
except that no preceding select command is required.
07 – Immediate Freeze
Upon receiving a request with this function, the controller copies the current
value of a counter point to a separate memory location associated with the
same point. The copied value remains constant until the next freeze operation
to the same point.
Upon receiving a request with this function, the controller copies the current
value to the frozen value, then clears the current value to 0 immediately.
Rockwell Automation Publication 2080-UM002M-EN-E - April 2022 101
Chapter 6 Micro870 Controller Distributed Network Protocol
13 – Cold Restart
This function code forces the controller to perform a complete restart upon
powering up.
14 – Warm Restart
This function code forces the controller to perform a partial reset.
16 – Initialize Application
This function code is used to initialize the user program which was
downloaded by Connected Components Workbench software.
17 – Start Application
This function code is used to start the user program which was downloaded by
Connected Components Workbench software.
18 Stop Application
This function code is used to stop the user program which was downloaded by
Connected Components Workbench software.
25 – Open File
This function code is used to make a file available for reading or writing.
26 – Close File
After the file reading or writing operation, this function code used to unlock
the file.
27 – Delete File
A DNP3 master uses this function code to delete a file.
29 – Authenticate File
This function code is used to obtain an authentication key that is needed to
open or delete a file.
30 – Abort File
This function code is used to immediately request termination of the current
read/write operation and close the file, without saving.
31 – Activate Config
This function code is used to begin using the configuration or executable code
specified by the objects included in the request.
32 – Authentication Request
The master uses this function code when sending authentication messages to
the controller that require a response
129 – Response
All responses except for Unsolicited Response messages use this function code.
Internal Indications
Internal Indication bits are set under the following conditions of the
controllers:
• IIN1.0: ALL_STATIONS. This bit is set when an all-stations message is
received.
• IIN1.1: CLASS_1_EVENTS. This bit is set when Class 1 event data is
available.
• IIN1.2: CLASS_2_EVENTS. This bit is set when Class 2 event data is
available.
• IIN1.3: CLASS_3_EVENTS. This bit is set when Class 3 event data is
available.
• IIN1.4: NEED_TIME. This bit is set when Time synchronization is
required.
• IIN1.5: LOCAL_CONTROL. This bit is set when the controller is in Non-
executing mode.
• IIN1.6: DEVICE_TROUBLE. This bit is set when the controller is in Fault
mode.
• IIN1.7: DEVICE_RESTART. This bit is set when the DNP3 driver is just
configured, in channel configuration or when the controller has been
restarted.
To set this bit during the driver configuration and channel
configuration, you need to select the Send Init. Unsol. Null Resp. on
Restart setting and set Status Bit S:36/13 to 1 before downloading to the
controller.
• IIN2.0: NO_FUNC_CODE_SUPPORT. This bit is set when a request
which has an unknown function code is received.
• IIN2.1: OBJECT_UNKNOWN. This bit is set when a request which has an
unknown object is received.
DNP3 Objects and Controller All of the DNP3 Objects that are supported in the controller are summarized in
Variables Implementation Table for Micro870 controllers on page 128.
Variables used in DNP3 Objects are not the same as that used in the controller,
but are similar. Mapping is required between variables in DNP3 Objects and
controller variables.
Overview
DNP3 Data objects that are implemented in the controller are listed below:
• DNP3 Binary Input Object
• DNP3 Double Bit Binary Input Object
• DNP3 Binary Output Object
• DNP3 Counter Object
• DNP3 Frozen Counter Object
• DNP3 Analog Input Object
• DNP3 Analog Output Object
• DNP3 BCD Object
• DNP3 Data-Set Object
Some of objects are divided into several Object files to map data in the
controller.
• Counter Object — 16-bit and 32-bit Counter Object
• Analog Input Object — 16-bit and 32-bit Analog Input Object, and Short
Floating Point Analog Input Object.
• Analog Output Object — 16-bit and 32-bit Analog Output Object, and
Short Floating Point Analog Output Object.
You can create the different data objects by mapping them to the variables
created in the controller. You can configure the Data object for each DNP3
Object in the DNP3 Slave configuration page. Variables can be BOOL, INT,
DINT, or REAL data types.
DNP3 Configuration
You can configure parameters such as Class level and Object Flag bit
information for each element. This information is defined during object
creation in the data mapping window in DNP3 mapping.
To create a Data Set Object from the DNP3 Subsystem in the controller,
configure Data Set Prototypes/Descriptors Object in the DNP3 Data-set
Descriptor/Prototype under DNP3 Slave.
Each Data Set Prototypes Object can have up to 10 elements of Data Set
Prototypes, and each Data Set Descriptors Object can have up to 10 elements of
Data-set Descriptors.
As an example, with Data Set Prototypes entry, you can create any number of
Data Set Prototype Object in the DNP3 Data Set Prototype configuration
screen, up to a maximum of 10 entries.
As an example, with Data Set Descriptors entry, you can create any number of
Data Set Descriptor Object in the DNP3 Data Set Descriptor configuration
screen, up to a maximum of 10 entries
Once the Data Set Prototypes and Descriptors are configured in the DNP3
Slave setting page of Connected Components Workbench software version
20.01.00 or later, you can see the DNP3 Descriptor DSX and Prototype PTYPX
under the respective DNP3 Data Set branch, where X is the element numbers
of each Prototype or Descriptor.
For DNP3 PTYPX, you can configure the controller to construct the Data Set
Prototype objects.
For DNP3 DSX, you can configure the controller to construct the Data Set
Descriptor objects.
Max Data Length (bytes): 0 for element 1. 0…255 for index 3 or higher.
Ancillary Value: Binary Array in hexadecimal for element 1. ASCII strings for
index 3 or higher. Maximum 32 bytes.
Event Class – With the Enable Event checked, the event class is displayed to
allow assignment of Event Class to this Descriptor.
• 1 – Class 1
• 2 – Class 2
• 3 – Class 3
Trigger Event: Define and set this parameter to generate an event by the ladder
logic to generate timed events. Once this parameter is set by the ladder logic or
communications, the controller clears it automatically after generating an
event at the end of scan.
Disable Change Event: Define and set this parameter to suppress the events
generated by any Event Occurrence Condition.
Event Occurrence Condition: The conditions of Data-Set Event for each Data-
Set Descriptor can be configured by Data-Set Event Occurrence Condition 1/2/
3/4 in the DNP3 Data-Set Descriptors Object. When one of the values that are
pointing to the Event Occurrence Condition 1/2/3/4 are changed or the criteria
are met, the controller generates a Data-Set Event, retrievable using the object
Group 88, Variation 1.
The following table shows the supported conditions for Point Addressing
under Event Occurrence Conditions.
Point Address Type Point Type Point Index Event Occurrence Condition
Empty NONE: No point type is associated. 0 No Event is generated.
BI: Binary input 0…4095
B2I: Double-bit input 0…2047 When the Point Type and Point
Index are pointing a specific point,
Standard DNP3 Point CI: Counter 0…511 if the value of the point is
AI: Analog input 0…767 changed, an event is generated.
BCD: BCD point 0…255
Event is generated based on the
Variable Select the tag from the controller. 0 condition of the variable tag
selected.
Note that a Data-set event can consume any number of event buffers,
depending on the Data-set configuration. This is only applicable for Data-set
events. The event for other objects consumes a single event buffer. When using
Data-set events, increase the number of events in the DNP3 Slave
configuration.
Data Type Code: VSTR, UINT, INT, FLT, OSTR, BSTR, TIME
Ancillary Value: Any string. This can be a binary array or ASCII string, up to
32 bytes.
When these values are configured properly according to the supported data
files, the controller responds with a Group 87, Variation 1 object filled with the
value in the data file. Table 9 on page 113 shows the supported data files for the
Point Addressing.
The object flag is composed of an 8 bit string for some DNP3 objects. The tables
below show Flag Descriptions for each object. The ONLINE, RESTART,
COMM_LOST, REMOTE_FORCED and LOCAL_FORCED flags are common to
all object group types that contain flags.
There are some rules for the Object flag set or clear for each bit by the
controller. The rules below are also applied to Event data.
• When the controller is in Non-executing mode, the object flag is always
all 0.
• When the controller is in Executing mode and there is no configuration
file, only the Online flag in the object flag is set.
• When the controller is in Executing mode and there is a configuration
file, the flags in the object flag are set according to the upper byte of the
configuration files.
Object Flags for Binary Input
Bit Offset Name Description
0 when the controller is or was in Non-executing mode.
1 when the controller is or was in Executing mode and the configuration file
0 ONLINE does not exist.
May be 1 when the controller is or was in Executing mode and the
configuration file exists.
1 RESTART Always 0. Not used.
2 COMM_LOST Always 0. Not used.
3 REMOTE_FORCED Always 0. Not used.
4 LOCAL_FORCED Always 0. Not used.
5 CHATTER_FILTER Always 0. Not used.
6 Reserved Always 0. Not used.
7 STATE Reflects point state of Binary Input point.
DNP3 Device Attribute The Device Attribute object can be used to identify DNP3 Slave devices.
Object With the controller, some of the variations are written so that you can read or
write your own strings in your application.
The R/W property shows if the object is Read Only, Read, or Write. If the R/W
property is writable, the value which was written by DNP3 master device is
stored to non-volatile memory.
The object group of the Device Attribute is 0. The supported range of the
variation is 209…255.
Object Group 0, Variations for Attribute Set 0
Event Reporting This section covers how to generate DNP3 events from DNP3 Data Objects and
how to report the generated events by polled response or unsolicited response.
Generate Events
The controller has a separate buffer area that you can use to log DNP3 events
internally.
The maximum number of the Events that can be logged is 10000 (see DNP3
10K Event Logging on page 119), regardless of the Event data type. In
If the number of the generated events reaches this value, the controller sets
IIN2.3 [EVENT_BUFFER_OVERFLOW]. Further events are not logged until
the logged events are reported to DNP3 Master and the buffer is available.
The logged events are not removed until they are reported to DNP3 Master
successfully. Logged event can also be cleared when one of the following events
occur:
• New OS firmware upgrade
• New user program download.
Figure 6 shows how to generate events for a Binary Input Object and a 16-bit
Analog Input Object. In the DNP3 Slave configuration, Binary Input Object
Data and 16-bit Analog Input Object Data is configured in the DNP3 mapping
table.
Click Add to select, or create a binary variable from the variable selector screen
for the Binary Input Object.
There are two methods to create Binary Input Object. You can create the object
as a BOOL data type or as an UINT data type. The UINT data type represents
similar to a BOOL array of 16 bits and this representation is similar to the
BOOL array used in MicroLogix™ 1400 controllers.
The setting in the image above shows that the different class events can be
triggered when the BOOL variable is triggered. When using the UINT variable,
any of the bits in the UINT will trigger the respective class event.
In the same manner, create this 16-bit Analog Input Object in the Analog Input
tab and define Index 0 as Class 1, Index 1 as Class 2, and Index 2 as Class 3.
When there is a change in the configuration for the number of events, you
must download the project into the controller for the setting to take effect.
The controller checks all elements in the Object Data for changes at the end of a
scan and generates events where needed.
The key method to turn on and off event generating by ladder logic is to assign
the variable to be used for controlling into the Trigger Event and Disable
Change Events field.
The following example shows how to control the event generation condition by
using the Deadband for Analog Input Objects.
In this example, for 16-bit Analog Input point 0, if the absolute value of the
difference between the present value of variable AnalogValue1 and the value
that was most recently queued as an event for that point exceeds the deadband
value in variable AnalogV1Deadband, then an event is generated for that point.
When a DNP3 Master sends a poll to read Class events, any events logged to the
event buffer are reported in the polled response.
Define the Number of Events for the respective Class event in the DNP3 Slave
configuration page as shown in the following example.
In some cases, the controller may not send an Unsolicited Response even
though the parameters are configured properly.
• Normally, when the parameter Enable Unsolicited On Start Up is
checked, the controller initiates an Unsolicited Response with the
function code ENABLE_UNSOLICITED(20), if there are any events
logged into the event buffer. However, when a request with the function
code DISABLE_UNSOLICITED(21) is received, an Unsolicited Response
will not be sent.
• When the parameter Enable Unsolicited On Start Up is unchecked, the
controller does not trigger the Unsolicited Response until a request with
the function code ENABLE_UNSOLICITED(20) from the DNP3 Master is
received.
Figure 7 shows how to initiate and send the Unsolicited Response. Master
Node 0 in the DNP3 Slave configuration page indicates that the Unsolicited
Response is reported to the Master with the node address 3.
Collision Avoidance The controller currently supports the first of the two methods listed below for
collision avoidance.
• Detecting transmitted data (TX/RX line on RS-485 communication).
• Detecting out-of-band carrier (DCD on RS-232C communication).
When the controller is connected to RS-485 network, it monitors all data on the
link. If the controller is preparing to transmit a packet and finds the link busy,
it waits for an interval defined by the Backoff_Time until it is no longer busy.
Backoff_Time = Pre Transmit Delay (x1 ms) + Max Random Delay (x1 ms)
The Pre Transmit Delay (x1 ms) in the Link Layer Channel Configuration file is
a fixed delay and the Max Random Delay (x1 ms) in the Channel Configuration
file is a maximum random delay for Channel 0 and Channel 2. You must
specify those parameters to get the collision avoidance mechanism.
Time Synchronization The time value in the real time clock (RTC) of the controller (firmware real time
clock) or plug-in module (2080-MEMBAK-RTC2 or 2080-SDMEMRTC-SC) is
updated every 1 second.
The DNP3 subsystem and the RTC (firmware or plug-in module) are
synchronized by the following conditions:
• power up
• a request for time synchronization from DNP3 Master.
At power up, the DNP3 subsystem gets the time from the controller. For the
controller to acquire the correct time, a plug-in module RTC should be used
and enabled before a power cycle to acquire the correct time from the
controller. The firmware RTC always reverts to a default time and date after a
power cycle, so it is not able to provide an accurate time to the DNP3
subsystem.
If a plug-in module RTC is not used, then the firmware RTC must be enabled.
To enable firmware RTC, select Enable firmware real time clock.
When there is a write request for time synchronization from a DNP3 Master,
the time in the RTC (firmware or plug-in module) is synchronized with the
time from the DNP3 Master.
2080-MEMBAK-RTC2 Accuracy
RTC Accuracy(1) Ambient Temperature
±5 sec/month 25 °C (77 °F)
±9 sec/month -20…+65 °C (-4…+149 °F)
(1) These numbers are maximum worst case values over a 31-day month.
Diagnostic Counters and Errors in DNP3 Slave subsystem for the Ethernet
channel are shown in Connected Components Workbench software. Click
Diagnose to display the Diagnostic page.
Function Codes These tables show the Application Layer Function codes implemented in the
controller.
Table 11 - Function Codes for DNP3 in Micro870 Controllers
Message Type Function Code Name Micro870 Support Description
Confirmation 0 (0x00) CONFIRM Yes Controller parses/sends
Request 1 (0x01) READ Yes Controller parses
Request 2 (0x02) WRITE Yes Controller parses
Request 3 (0x03) SELECT Yes Controller parses
Request 4 (0x04) OPERATE Yes Controller parses
Request 5 (0x05) DIRECT_OPERATE Yes Controller parses
Request 6 (0x06) DIRECT_OPERATE_NR Yes Controller parses
Request 7 (0x07) IMMED_FREEZE Yes Controller parses
Request 8 (0x08) IMMED_FREEZE_NR Yes Controller parses
Request 9 (0x09) FREEZE_CLEAR Yes Controller parses
Request 10 (0x0A) FREEZE_CLEAR_NR Yes Controller parses
Request 11 (0x0B) FREEZE_AT_TIME No
Table 12 identifies which object groups and variations, function codes and
qualifiers the device supports in both requests and responses. The Request and
Response columns identify all requests and responses that may be sent/parsed
by a DNP3 Master, or must be parsed/sent by the controller.
Notes:
Overview of Program A Micro800 cycle or scan consists of reading inputs, executing programs in
Execution sequential order, updating outputs, and performing housekeeping (data log,
recipe, communications).
In addition to the User Fault Routine, Micro800 controllers also support two
Selectable Timed Interrupts (STI). STIs execute assigned programs once every
set point interval (1…65535 ms).
Execution Rules
This section illustrates the execution of a program. The execution follows four
main steps within a loop. The loop duration is a cycle time for a program.
1. Read inputs 1
2. Execute POUs(1)/programs
2
3. Write outputs
4. Housekeeping (data log, recipe, communications) 3
When a cycle time is specified, a resource waits until this time has elapsed
before starting the execution of a new cycle. The POUs execution time varies
depending on the number of active instructions. When a cycle exceeds the
specified time, the loop continues to execute the cycle but sets an overrun flag.
In such a case, the application no longer runs in real time.
When a cycle time is not specified, a resource performs all steps in the loop
then restarts a new cycle without waiting.
Optional Module Normally before the read inputs step, the controller will verify the presence of
any configured plug-in and expansion I/O modules. If a plug-in or expansion
I/O module is missing, the controller will fault. In Connected Components
Workbench software release 10 or later, an Optional Module configuration
option is added to prevent a missing plug-in I/O or expansion I/O module
from faulting the controller if enabled. This option can be enabled separately
for each plug-in I/O or expansion I/O module.
Controller Load and Within one program scan cycle, the execution of the main steps (as indicated
Performance in the Execution Rules diagram) could be interrupted by other controller
activities that have higher priority than the main steps. Such activities include,
Considerations
1. User Interrupt events, including STI, EII, and HSC interrupts (when
applicable);
2. Communication data packet receiving and transmitting;
3. PTO Motion engine periodical execution (if supported by the controller).
Power Up and First Scan In Program mode, all analog and digital input variables hold their last state,
and the LEDs are always updated. Also all analog and digital output variables
hold their last state, but only the analog outputs hold their last state while the
digital outputs are off.
When transitioning from Program mode to Run mode, all analog output
variables hold their last state but all digital output variables are cleared.
Two system variables are also available from revision 2 and later.
System Variables for Scan and Power-up on Firmware Revision 2 and later
Variable Type Description
First scan bit.
Can be used to initialize or reset variables immediately after
_SYSVA_FIRST_SCAN BOOL every transition from Program to Run mode.
Note: True only on first scan. After that, it is false.
Power-up bit.
Can be used to initialize or reset variables immediately after
download from Connected Components Workbench or
_SYSVA_POWER_UP_BIT BOOL immediately after being loaded from memory backup module
(for example, microSD™ card).
Note: True only on the first scan after a power-up, or running a
new ladder for the first time.
Variable Retention
After a power cycle, all variables inside instances of instructions are cleared.
Micro830 and Micro850 controllers retain all user-created variables. Micro810®
and Micro820 controllers can only retain a maximum of 400 bytes of user-
created variable values. Micro870 controllers can only retain a maximum of 128
kilobytes of user-created variable values.
For example: A user-created variable called My_Timer of Time data type will be
retained after a power cycle but the elapsed time (ET) within a user-created
timer TON instruction will be cleared. This means that after a power cycle,
global variables are cleared or set to initial value, and depending on the
controller, some or all user-created variable values are retained. You can
choose which variables to retain by selecting them on the global variable page.
Memory Allocation Depending on base size, available memory on Micro800 controllers are shown
in the table below.
Program steps(1) 4K 10 K 10 K 20 K
Data bytes 8 KB 20 KB 20 KB 40 KB
(1) Estimated Program and Data size are “typical” – program steps and variables are created dynamically.
1 Program Step = 12 data bytes.
These specifications for instruction and data size are typical numbers. When a
project is created for Micro800, memory is dynamically allocated as either
program or data memory at build time. This means that program size can
exceed the published specifications if data size is sacrificed and vice versa. This
flexibility allows maximum usage of execution memory. In addition to the
If your project is larger, it affects the power up time. Typical power up time is
10...15 seconds for all controllers. However, if your project has a lot of initial
and project values, it may cause the power up time to exceed 30 seconds. After
boot up, EtherNet/IP connections may take up to 60 seconds to establish.
The Micro800 controllers also have project memory, which stores a copy of the
entire downloaded project (including comments), as well as configuration
memory for storing plug-in setup information, and so on.
Guidelines and Limitations Here are some guidelines and limitations to consider when programming a
for Advanced Users Micro800 controller using Connected Components Workbench software:
• Each program/POU can use up to 64 Kb of internal address space. For all
controllers except Micro870, it is recommended that you split large
programs into smaller programs to improve code readability, simplify
debugging and maintenance tasks.
• A User Defined Function (UDF) uses significantly less memory than a
User Defined Function Block (UDFB). For example, 30% less for a typical
sized program compared to a UDFB with one instance. The savings
increases as the number of UDFB instances increases.
• A User Defined Function Block (UDFB) can be executed within another
UDFB, with a limit of five nested UDFBs. Avoid creating UDFBs with
references to other UDFBs, as executing these UDFBs too many times
may result in a compile error. This also applies to UDFs.
Example of Five Nested UDFBs
UDFB1
UDFB2
UDFB3
UDFB4
UDFB5
• Structured Text (ST) is much more efficient and easier to use than
Ladder Logic, when used for equations. If you are used to using the
RSLogix 500® CPT Compute instruction, a great alternative is to use ST
combined with either UDF or UDFB.
As an example, for an Astronomical Clock Calculation, Structured Text
uses 40% less Instructions.
Display_Output LD:
Memory Usage (Code) : 3148 steps
Memory Usage (Data) : 3456 bytes
Display_Output ST:
Memory Usage (Code) : 1824 steps
Memory Usage (Data) : 3456 bytes
• You may encounter an Insufficient Reserved Memory error while
downloading and compiling a program over a certain size. One
workaround is to use arrays, especially if there are many variables.
Rockwell Automation Publication 2080-UM002M-EN-E - April 2022 137
Chapter 7 Program Execution in Micro800
Notes:
Motion Control
Generally two types of motion control are used in Micro800 controller motion
applications that have Kinetix® 3 servo drives.
• Indexed Motion – Micro800 controller issues position indexes to the
servo drive using Modbus RTU communications or discrete I/O. Used for
simple positioning. See publication CC-QS025 for building block
example.
• PTO Motion – Micro800 controller uses pulse and direction outputs to
the servo drive for precise control of position and velocity with Modbus
RTU communications or discrete I/O for feedback. Micro800 motion
configuration and instructions make programming easy. See publication
CC-QS033 for building block example.
PTO Motion Control Certain Micro830, Micro850, and Micro870 controllers, shown in Table 13,
support motion control through high-speed pulse-train outputs (PTO). PTO
functionality refers to the ability of a controller to accurately generate a
specific number of pulses at a specified frequency. These pulses are sent to a
motion device, such as a servo drive, which in turn controls the number of
rotations (position) of a servo motor. Each PTO is exactly mapped to one axis,
to allow for control of simple positioning in stepper motors and servo drives
with pulse/direction input.
As the duty cycle of the PTO can be changed dynamically, the PTO can also be
used as a pulse width modulation (PWM) output.
PTO/PWM and motion axes support on the Micro830, Micro850, and Micro870
controllers are summarized below.
IMPORTANT The PTO function can only be used with the controller’s embedded I/O. It
cannot be used with expansion I/O modules.
The Micro800 motion control feature has the following elements. New users
need to have a basic understanding of the function of each element to
effectively use the feature.
Input and Output Signals Multiple input/output control signals are required for each motion axis, as
described in the next tables. PTO Pulse and PTO Direction are required for an
axis. The rest of the input/outputs can be disabled and reused as regular I/O.
Configurable Input/Output
Motion Signals Input/Output Notes
Servo/Drive On OUTPUT Can be configured as any embedded output.
Servo/Drive Ready INPUT Can be configured as any embedded input.
In-Position signal (from INPUT Can be configured as any embedded input.
servo/motor)
Home Marker INPUT Can be configured as any embedded input, from input 0...15.
IMPORTANT If an output is configured for motion, then that output can no longer be
controlled or monitored by the user program and cannot be forced. For
example, when a PTO Pulse output is generating pulses, the
corresponding logical variable IO_EM_DO_xx will not toggle its value and
will not display the pulses in the Variable Monitor but the physical LED
will give an indication.
If an input is configured for motion, then forcing the input only affects
the user program logic and not motion. For example, if the input Drive
Ready is false, then the user cannot force Drive Ready to true by forcing
the corresponding logical variable IO_EM_DI_xx to be true.
24V 24V
Power Power
supply supply
1 2
+ + _
–
+DC 24 +CM0 Pin 1, 2
-DC 24 +CM1 Encoder signal cable
Pin 49 (CLK+)
O-00 Pin 12 (CLK-)
Pin25 (DIR+)
Encoder
Motor
O-03 Pin 14 (DIR-)
O-06 Pin 3 (Enable)
2080-LC50-xxQVB
2080-LC30-xxQVB
Kinetix3
3
Motor power cable
Kinetix
-CM0
-CM1
Notes:
1. Drive Enable (Pin 3) and Reset Drive (Pin 7) will be operating as sourcing inputs when (Pin 1, 2) connected to – of the Power Supply 2.
2. To help you configure Kinetix 3 drive parameters, so the drive can communicate and be controlled by a Micro830/Micro850/Micro870
controller, see publication CC-QS033. The parameter Command Type must be set to “Step/Direction.Positive Logic”, and the parameter
Controller Output Type must be set to “Open Collector Input”.
24V 24V
Power Power
supply supply
1 2
+ + _
–
+DC 24 +CM0 Pin 1, 2
-DC 24 +CM1 Encoder signal cable
Pin 12(CLK-)
O-00 Pin 49(CLK+)
Pin 14(DIR-)
Encoder
Motor
Notes:
1. Drive Enable (Pin 3) and Reset Drive (Pin 7) will be operating as sinking inputs when (Pin 1, 2) connected to + of the Power Supply 2.
2. To help you configure Kinetix 3 drive parameters, so the drive can communicate and be controlled by a Micro830/Micro850/Micro870
controller, see publication CC-QS033. The parameter Command Type must be set to “Step/Direction.Positive Logic”, and the parameter
Controller Output Type must be set to “Open Collector Input”.
Motion Control Function Motion control function blocks instruct an axis to a specified position,
Blocks distance, velocity, and state.
WARNING: During Run Mode Change (RMC), the MC_Power function block should
be disabled, which will power down the axis. Otherwise the axis will remain
powered even if the function block is deleted.
Take note of the following:
• If a new instance of MC_Power accesses the axis, the axis will enter the error
stop state.
• If MC_Power is inside a UDFB and any edit is made to the UDFB that changes
the UDFB template (for example, adding a local variable), the axis will enter
the error stop state.
ATTENTION: During Run Mode Change, the Movement Function Blocks can
only be deleted when that Function Block has been done or aborted.
Otherwise unintended axis and Function Block behavior may occur.
ATTENTION: Each motion function block has a set of variable inputs and
outputs that allows you to control a specific motion instruction. See the
Connected Components Workbench Online Help for a description of these
variable inputs and outputs.
To work with motion control function blocks, users need to be familiar with
the following general rules.
Output Exclusivity
With Enable: The outputs Valid and Error indicate whether a read function block executes successfully. They are mutually exclusive:
only one of them can be true on one function block for MC_ReadBool, MC_ReadParameter, MC_ReadStatus.
The Valid, Enabled, Busy, Error, and ErrorID outputs are reset with the falling edge of Enable as soon as possible.
Output Exclusivity
When used in Function Block Diagram, you can connect the axis output parameter to the Axis input parameter of another motion
function block for convenience (for example, MC_POWER to MC_HOME).
Axis Output When used in a Ladder Diagram, you cannot assign a variable to the Axis output parameter of another motion function block because
it is read-only.
Every function block has a Busy output, indicating that the function block is not yet finished (for function blocks with an Execute
input), and new output values are pending (for function blocks with Enable input).
Busy is set at the rising edge of Execute and reset when one of the outputs Done, Aborted, or Error is set, or it is set at the rising edge
of Enable and reset when one of the outputs Valid or Error is set.
It is recommended that the function block continue executing in the program scan for as long as Busy is true, because the outputs
will only be updated when the instruction is executing. For example, in ladder diagram, if the rung becomes false before the
instruction finishes executing, the Busy output will stay true forever even though the function block has finished executing.
Output Active In current implementation, buffered moves are not supported. Consequently, Busy and Active outputs have the same behavior.
Behavior of CommandAborted
Output
The Enable input for read function blocks is level-sensitive. On every program scan with the Enable input as true, the function block
will perform a read and update its outputs. The Valid output parameter shows that a valid set of outputs is available.
The Valid output is true as long as valid output values are available and the Enable input is true. The relevant output values will be
Enable and Valid Status refreshed as long as the input Enable is true.
If there is a function block error, and the relevant output values are not valid, then the valid output is set to false. When the error
condition no longer exists, the values will be updated and the Valid output will be set again.
Relative move does not require the axis to be homed. It simply refers to a move in a specified direction and distance.
Relative Move versus Absolute Absolute move requires that the axis be homed. It is a move to a known position within the coordinate system, regardless of distance
Move and direction. Position can be negative or positive value.
Buffered Mode For all motion control function blocks, BufferMode input parameter is ignored. Only aborted moves are supported for this release.
All blocks have two outputs which deal with errors that can occur during execution. These outputs are defined as follows:
• Error – Rising edge of “Error” informs that an error occurred during the execution of the function block, where the function block
cannot successfully complete.
• ErrorID – Error number.
Error Handling • Types of errors:
• Function block logic (such as parameters out of range, state machine violation attempted)
• Hard limits or soft limits reached
• Drive failure (Drive Ready is false)
For more information about function block error, see Motion Function Block and Axis Status Error ID on page 161.
The general rule is that when a movement function block is busy, then a
function block with the same instance (for example, MC_MoveRelative2)
cannot be executed again until the function block status is not busy.
Velocity
Time
Execute1
Busy1
Execute1
Busy1
Velocity
Aborted move is possible if using two
instances of MC_MoveRelative,
MC_MoveAbsolute. The second instance
can immediately abort the first instance
(and vice versa) for applications where on-
the-fly corrections are needed.
Time
Execute1
Busy1
CommandAborted1
Execute2
Busy2
When changing velocity, generally, an aborted move is not necessary since the
function block is only Busy during acceleration (or deceleration). Only a single
instance of the function block is required.
Time
Execute1
Busy
Halt Execute
Busy
It is possible for the movement function blocks and MC_Halt to abort another
motion function block during acceleration/deceleration. This is not
recommended as the resulting motion profile may not be consistent.
Velocity
Time
Execute1
Busy
CommandAborted
Halt Execute
Busy
Velocity
This command is ignored.
Time
MC_Stop Execute
Busy
MC_Halt and MC_Stop are both used to bring an axis to a StandStill but
MC_Stop is used when an abnormal situation occurs.
MC_Stop can abort other motion function blocks but can never be
aborted itself.
Motion Axis and Parameters The following state diagram illustrates the behavior of the axis at a high level
when multiple motion control function blocks are activated. The basic rule is
that motion commands are always taken sequentially, even if the controller
has the capability of real parallel processing. These commands act on the axis’
state diagram.
The axis is always in one of the defined states see Figure 11 on page 153. Any
motion command is a transition that changes the state of the axis and, as a
consequence, modifies the way the current motion is computed.
MC_MoveAbsolute
MC_MoveRelative MC_MoveVelocity
MC_MoveAbsolute; MC_MoveRelative; MC_Halt
MC_Halt
Error
Error Stopping
Note 6 Error
Done
Note 1
MC_MoveAbsolute MC_Stop
MC_MoveRelative
MC_MoveVelocity
ErrorStop
MC_Stop
Note 4 Note 2
Error Error
MC_Reset MC_Reset and
MC_Power.Status=FALSE
Done
Homing StandStill Note 3
Disabled Note 5
MC_Home
NOTES:
1. In the ErrorStop and Stopping states, all function blocks (except MC_Reset), can be called although they will not be executed.
MC_Reset generates a transition to the StandStill state. If an error occurs while the state machine is in the Stopping state, a transition to the ErrorStop
state is generated.
Axis position still updates even if the Axis state is ErrorStop. Also, the MC_TouchProbe function block is still active if it was executed before the ErrorStop
state.
2. Power.Enable = TRUE and there is an error in the Axis.
3. Power.Enable = TRUE and there is no error in the Axis.
4. MC_Stop.Done AND NOT MC_Stop.Execute.
5. When MC_Power is called with Enable = False, the axis goes to the Disabled state for every state including ErrorStop.
6. If an error occurs while the state machine is in Stopping state, a transition to the ErrorStop state is generated.
Axis States
The axis state can be determined from one of the following predefined states.
Axis state can be monitored through the Axis Monitor feature of the
Connected Components Workbench software when in debug mode.
Motion States
State Value State Name
0x00 Disabled
0x01 Standstill
0x02 Discrete Motion
0x03 Continuous Motion
0x04 Homing
0x06 Stopping
0x07 Stop Error
Limits
The Limits parameter sets a boundary point for the axis, and works in
conjunction with the Stop parameter to define a boundary condition for the
axis on the type of stop to apply when certain configured limits are reached.
Hard Limits
Hard limits refer to the input signals received from physical hardware devices
such as limit switches and proximity sensors. These input signals detect the
presence of the load at the maximum upper and minimum lower extents of
allowable motion of the load or movable structure that carries the load, such as
a load tray on a transfer shuttle.
Hardware limits are mapped to discrete inputs that are associated with data
tags/variables.
When a hard limit switch is enabled, the axis comes to a stop when the limit
switch is detected during motion. If hard stop on hard limit switch is
configured as ON and the limit is detected, motion is stopped immediately
(that is, PTO pulse is stopped immediately by the hardware). Alternatively, if
hard stop on hard limit switch is configured as OFF, motion will be stopped
using Emergency Stop parameters.
When any hard limit switch is enabled, the input variable connecting to this
physical input can still be used in User Application.
Soft Limits
Soft limits refer to data values that are managed by the motion controller.
Unlike hardware limits that detect the presence of the physical load at specific
points in the allowable motion of the load, soft limits are based on the stepper
commands and the motor and load parameters.
Soft limits are displayed in user-defined units. The user can enable individual
soft limits. For non-enabled soft limits (whether upper or lower), an infinite
value is assumed.
Soft Limits are activated only when the corresponding axis is homed. Users
can enable or disable soft limits, and configure an upper and lower limit
setting through the Connected Components Workbench software.
When a soft limit is enabled, the axis comes to a stop when the limit is detected
during motion. The motion is stopped using emergency stop parameters.
If both hard and soft limits are configured as enabled, for two limits in the
same direction (upper or lower), the limits should be configured such that the
soft limit is triggered before the hard limit.
This limit parameter is not configurable by the user and is the physical
limitation of the embedded PTO. The limits are set at 0x7FFF0000 and -
0x7FFF0000 pulses, for upper and lower limits, respectively.
PTO pulse limits are checked by the controller unconditionally — that is, the
checking is always ON.
For a continuous motion, if the axis is homed, and the soft limit in the motion
direction is enabled, soft limit will be detected before PTO pulse limit being
detected.
Motion Stop
There are three types of stops that can be configured for an axis.
The maximum possible response delay for this type of stop could be as much as
the Motion Engine Execution time interval. This type of stop is applicable in
the following scenarios:
• During motion, when axis PTO Pulse Limit is reached;
• One Hard Limit is enabled for an axis, but Hard Stop on Hard Limit
switch is configured as Off. If the Emergency Stop is configured as
Immediate Software Stop, during motion, when the Hard Limit switch is
detected;
• One Soft Limit is enabled for an axis and the axis has been homed. If the
emergency stop is configured as Immediate Soft Stop, during motion,
when the Soft Limit reach is detected;
• The Emergency Stop is configured as Immediate Soft Stop. During
motion, MC_Stop function block is issued with Deceleration parameter
equal to 0.
Motion Direction
For distance (position) motion, with the target position defined (absolute or
relative), the direction input is ignored.
For velocity motion, direction input value can be positive (1), current (0) or
negative (-1). For any other value, only the sign (whether positive or negative) is
considered and defines whether the direction is positive or negative. This
means that if the product of velocity and direction is -3, then direction type is
negative.
The user can monitor this variable in controller debug mode through the
software when the motion engine is active, or in the user application as part of
user logic. It can also be monitored remotely through various communication
channels.
REAL During motion, this element refers to the velocity the controller commands
CommandVel the axis to use. This element is a signed value indicating direction
(float)(1) information.
(1) See Real Data Resolution on page 170 for more information on REAL data conversion and rounding.
IMPORTANT • Once an axis is flagged with error, and the error ID is not zero, the user needs
to reset the axis (using MC_Reset) before issuing any other movement
function block.
• The update for axis status is performed at the end of one program scan
cycle, and the update is aligned with the update of Motion Axis status.
For the above exceptions, it is still possible for the user application to issue a
successful movement function block to the axis after the axis state changes.
CurrScantime(1) UINT16
MaxScantime(1) UINT16
CurrEngineInterval(1) UINT16
MaxEngineInterval(1) UINT16
ExtraData UINT16
(1) The time unit for this element is microsecond. This diagnostic information can be used to optimize motion configuration and
user application logic adjustment.
MCEngstate States
State Name State Description
MC engine exists (at least one axis defined), but the engine is idle as there
MCEng_Idle 0x01 is no axis is moving. The Engine diagnostic data is not being updated.
MC engine exists (at least one axis defined) and the engine is running. The
MCEng_Running 0x02 diagnostic data is being updated.
MCEng_Faulted 0x03 MC engine exists, but the engine is faulted.
Function Block and Axis All motion control function blocks share the same ErrorID definition.
Status Error Codes
Axis error and function block error share the same Error ID, but error
descriptions are different, as described in Table 14 on page 161.
Error code 128 is warning information to indicate the motion profile has
been changed and velocity has been adjusted to a lower value but the
function block can execute successfully.
The function block cannot execute because the motion The axis is not operational. The motion profile requested in
profile requested in the function block cannot be achieved the function block cannot be achieved because of current
due to current axis velocity. axis velocity.
Some examples: Some examples:
• The function block requests the axis to reverse the • The function block requests the axis to reverse the
direction while the axis is moving.
09 MC_FB_ERR_VELOCITY direction while the axis is moving.
• The required motion profile cannot be achieved due to • The required motion profile cannot be achieved due to
current velocity too low or too high. current velocity too low or too high.
Reset the state of the axis using the MC_Reset function
Check the motion profile setting in the function block, and block.
correct the profile, or re-execute the function block when Correct the motion profile in the function block, or re-
the axis velocity is compatible with the requested motion execute the function block when the axis velocity is
profile. compatible with the requested motion profile.
When a motion control function block ends with an error, and the axis is in
ErrorStop state, in most cases, MC_Reset function block (or, MC_Power Off/
On and MC_Reset) can be used to have the axis to be recovered. With this, the
axis can get back to normal motion operation without stopping the controller
operation.
Major Fault Handling In case the controller encounters issues where recovery is not possible through
the Stop, Reset, or Power function blocks, controller operation will be stopped
and a major fault will be reported.
Table 15 on page 163 defines the motion-related major fault codes for Micro830,
Micro850, and Micro870 controllers.
Motion Axis Configuration in A maximum of three motion axes can be configured through the Connected
Connected Components Components Workbench software. To add, configure, update, delete, and
monitor an axis in the Connected Components Workbench software, see the
Workbench sections that follow.
Values for the different motion axis parameters are validated based on a
set of relationships and pre-determined absolute range. See Motion Axis
Parameter Validation on page 172 for a description of the relationships
between parameters.
When an axis is added to the configuration, the Motion Engine Execution Time can be configured from 1…10 ms (default: 1 ms). This global parameter applies to all motion axis configurations.
To help you edit these motion properties, see Edit Axis Configuration on
page 164. You can also learn more about axis configuration parameters.
General Parameters
1. On the axis configuration tree, click General.
The <Axis Name> - General properties tab appears.
2. Edit General parameters. See Table 16 on page 165 for a description of the
general configuration parameters for a motion axis.
IMPORTANT To edit these general parameters, see Input and Output Signals on
page 141 for more information about fixed and configurable outputs.
Names of embedded PTO channels have the prefix EM (embedded) and each
available PTO channel is enumerated starting from 0. For example, a controller
that supports three axes will have the following PTO channels available:
• EM_0
• EM_1
• EM_2
IMPORTANT Certain parameters for Motor and Load are Real values. For more
information, see Real Data Resolution on page 170
A red border on an input field indicates that an invalid value has been
entered. Scroll over the field to see tooltip message that will let you know
the valid value range for the parameter. Supply the valid value.
Limits
ATTENTION: To learn more about the different types of Limits, see Limits on
page 154.
Parameter(1) Value
Hard Limits Defines upper and lower hard limits for the axis.
Configure whether to perform a forced PTO hardware stop
(immediately turn off pulse output) or whether to decelerate (leave
pulse output on and use deceleration values as defined on the
When hard limits is reached, apply Emergency Stop profile).
Set as any of the following:
• Forced PTO Hardware Stop
• Emergency Stop Profile
Lower Hard Limit Click checkbox to enable a lower hard limit.
Active Level (for Lower Hard Limit) High or Low.
Upper Hard Limit Click checkbox to enable.
Active Level (for Upper Hard Limit) High or Low.
Soft Limits Defines upper and lower soft limits values.
Lower Soft Limit(2) Lower soft limit should be less than upper soft limit.
1. Click checkbox to enable an lower/upper soft limit.
Upper Soft Limit(2) 2. Specify a value (in mm).
(1) To convert from user units to pulse:
Travel per revolution
Value in user unit = Value in pulse x Pulse per revolution
(2) The parameter is set as REAL (float) value in Connected Components Workbench. To learn more about conversions and
rounding of REAL values, see Real Data Resolution on page 170.
A red border on an input field indicates that an invalid value has been
entered. Scroll over the field to see tooltip message that will let you know
the valid value range for the parameter. Supply the valid value.
3. Click Dynamics. The <Axis Name> - Dynamics tab appears. Edit the
Dynamics parameters based on the values in Table 19 on page 168.
Start/Stop Velocity The range is based on Motor and Load parameters (See Motor and Load
(1) (2)
Parameters on page 166) using:
Range 1…100,000 pulse/sec
Default: 300 rpm
For example, you can configure the value from 0.005…500 mm/s for 200 pulses
Start/Stop Velocity in rpm(1) (2) per revolution and units of 1 mm per revolution.(3)
Rpm value is automatically populated when a value in user units is specified, but
the user can also initially enter an rpm value.
Start/stop velocity should not be greater than maximum velocity.
The range is based on Motor and Load parameters (See Motor and Load
(1) (2) Parameters on page 166) using:
Max Velocity Range: 1…10,000,000 pulse/sec.
Default: 100,000.0 pulse/sec
The range is based on Motor and Load parameters (See Motor and Load
Parameters on page 166) using:
(1)
Max Acceleration Range: 1…10,000,000 pulse/sec2
Default: 10,000,000 pulse/sec2
The range is based on Motor and Load parameters (See Motor and Load
Parameters on page 166) using:
Max Deceleration(1) Range: 1…100,000 pulse/sec2
Default: 10,000,000 pulse/sec2
The range is based on Motor and Load parameters (See Motor and Load
Parameters on page 166) using:
Max Jerk(1) Range: 0…10,000,000 pulse/sec3
Default: 10,000,000 pulse/sec3
Emergency Stop Profile Defines stop type, velocity, deceleration, and jerk values.
Stop Type Set as Deceleration Stop (default) or Immediate Stop.
The range is based on Motor and Load parameters (See Motor and Load
Parameters on page 166) using:
Stop Velocity(1) Range: 1…100,000 pulse/sec
Default: 300 rpm
The range is based on Motor and Load parameters (See Motor and Load
Parameters on page 166) using:
Stop Deceleration(1) Range: 1…10,000,000 pulse/sec
Default: 300.0 rpm2
The range is based on Motor and Load parameters (See Motor and Load
Parameters on page 166) using:
Stop Jerk(1) Range: 0...10,000,000 pulse/sec3
Default: 0.0 rpm3 (Disabled)
(1) The parameter is set as REAL (float) value in Connected Components Workbench. To learn more about conversions and
rounding of REAL values, see Real Data Resolution on page 170.
(2) The formula for deriving rpm to user unit, and vice versa:
v (in user unit/sec) x 60 s
v (in rpm) =
travel per revolution (in user unit)
(3) To convert from parameter value from pulse to user units:
Travel per revolution
Value in user unit = Value in pulse x Pulse per revolution
A red border on an input field indicates that an invalid value has been
entered. Scroll over the field to see tooltip message that will let you
know the valid value range for the parameter. Supply the valid value.
Start/Stop velocity is the initial velocity when an axis starts to move, and the
last velocity before the axis stops moving. Generally, Start/Stop velocity is
configured at some low value, so that it is smaller than most velocity used in
the motion function block.
• When the target velocity is smaller than Start/Stop velocity, move the
axis immediately at the target velocity.
• When the target velocity is NOT smaller than Start/Stop velocity, move
the axis immediately at Start/Stop velocity.
Certain data elements and axis properties use REAL data format (single-
precision floating point format). Real data has seven-digit resolution and digit
values entered by the user that are longer than seven digits are converted. See
the examples in Table 21.
If the number of digits is greater than seven (7) and the eighth digit is greater
than or equal to 5, then the seventh digit is rounded up. For example:
If the eighth digit is <5, no rounding is done and the seventh digit remains the
same. For example:
The Variable Monitor displays six significant digits with rounding, although
the real data type still contains seven significant digits.
Micro800 motion feature is pulse-based and the value of distance and velocity
are designed in such a way that all PTO-related values are integers at the
hardware level, when converting to PTO pulse.
For example, if the user configures Motor Pulses per Revolution as 1,000 and
Travel per Revolution as 10 cm and the user wants to drive velocity at 4.504 cm/
sec. The target velocity is 4.504 cm/sec (that is, 450.4 pulse/sec). In this case, the
actual commanded velocity will be 4.5 cm/sec (that is, 450 pulse/sec), and the
0.4 pulse/sec is rounded off.
This rounding scheme also applies to other input parameters such as Position,
Distance, Acceleration, Deceleration, and Jerk. For instance, with above motor
revolution configuration, setting Jerk as 4.504 cm/sec3 is the same as setting
Jerk as 4.501 cm/sec3, as both are rounded off to 4.5 cm/sec3. This rounding
applies to both axis configuration input in the Connected Components
Workbench software and function block input.
Delete an Axis
1. On the device configuration tree, and under Motion, right-click the axis
name and select Delete.
Monitor an Axis To monitor an axis, the Connected Components Workbench software should
be connected to the controller and in DEBUG mode.
1. On the device configuration page, click Axis Monitor.
2. The Axis Monitor window appears with the following characteristics
available for viewing:
• Axis state
• Axis homed
• Movement
• Error description
• Command position in user unit
• Command velocity in user unit per second
• Target position in user unit
• Target velocity in user unit per second
Homing Function Block The homing function block MC_Home commands the axis to perform the
“search home” sequence. The Position input is used to set the absolute position
when the reference signal is detected, and configured home offset is reached.
This function block completes at StandStill if the homing sequence is
successful.
After axis power on is done, the axis Homed status is reset to 0 (not homed).
On most scenarios, the MC_Home function block needs to be executed to
calibrate the axis position against the axis home configured after MC_Power
(On) is done.
IMPORTANT If axis is powered On with only one direction enabled, the MC_Home
function block (in modes 0, 1, 2, 3) will generate an error and only
MC_Home function block (mode 4) can be executed. See MC_Power
function block for more details.
During MC_Home function block execution, the home position will be reset,
and the soft limits mechanical position will be recalculated. During homing
sequence, the motion configuration for the soft limits will be ignored.
The homing motion sequence discussed in this section has the following
configuration assumptions:
1. Homing direction is configured as negative direction;
2. The Lower limit switch is configured as enabled and wired;
The different homing modes, as defined in Table 23, can have different, but
still similar motion sequence. The concept discussed below is applicable to
various homing configurations.
MC_HOME_ABS_SWITCH
Scenario 1: Moving part at right (positive) side of home switch before homing starts
Scenario 2: Moving part is in between Lower Limit and Home switch before homing starts
Scenario 3: Moving part on Lower Limit or Home switch before homing starts
Scenario 4: Moving part at left (negative) side of Lower Limit switch before homing starts
In this case, the homing motion fails and moves continuously to the left until
drive or moving part fails to move. User needs to make sure the moving part at
the proper location before homing starts.
MC_HOME_LIMIT_SWITCH
For Homing against Lower Limit switch, one positive home offset can be
configured; for Homing against Upper Limit switch, one negative home offset
can be configured.
Scenario 1: Moving part at right (positive) side of Lower Limit switch before homing starts
Scenario 3: Moving part at left (negative) side of Lower Limit switch before homing starts
In this case, the homing motion fails and moves continuously to the left until
drive or moving part fails to move. User needs to make sure the moving part is
at the proper location before homing starts.
MC_HOME_REF_WITH_ABS
Scenario 1: Moving part at right (positive) side of Home switch before homing starts
Scenario 2: Moving part between Lower Limit and Home switch before homing starts
IMPORTANT In this case, if Lower limit switch is not configured, or not wired, the
homing motion will fail and moves continuously to the left until the drive
or moving part fails to move.
Scenario 3: Moving part on Lower Limit or Home switch before homing starts
2. Once Home Abs switch On→Off is detected, start to detect first Ref Pulse
signal;
3. Once the first Ref Pulse signal comes, record the position as mechanical
home position, and decelerate to stop;
4. Move to the configured home position. The mechanical home position
recorded during moving right sequence, plus the home offset configured
for the axis in the Connected Components Workbench software.
Scenario 4: Moving part at left (negative) side of Lower Limit switch before homing starts
In this case, the homing motion fails and moves continuously to the left until
drive or moving part fails to move. User needs to make sure the moving part is
at the proper location before homing starts.
MC_HOME_REF_PULSE
For Homing against Lower Limit switch, one positive home offset can be
configured; for Homing against Upper Limit switch, one negative home offset
can be configured.
Scenario 1: Moving part at right (positive) side of Lower Limit switch before homing starts
2. Once Lower Limit switch On→Off edge is detected, start to detect first
Ref Pulse signal;
3. Once the first Ref Pulse signal comes, record the position as the
mechanical home position, and decelerate to stop;
4. Move to the configured home position. The mechanical home position
recorded during moving back sequence, plus the home offset configured
for the axis through the Connected Components Workbench software.
Scenario 3: Moving part at left (negative) side of Lower Limit switch before homing starts
In this case, the homing motion fails and moves continuously to the left until
drive or moving part fails to move. User needs to make sure the moving part at
the proper location before homing starts.
MC_HOME_DIRECT
Use PTO for PWM Control The example shows in you how to use a PTO axis as a PWM.
1 Enable/power up the PWM axis immediately after going to RUN mode. PWM axis will remain powered ON (until Program mode, and so on).
MC_Power_1
__SYSVA_FIRST_SCAN MC_Power
EN ENO
Error
ErrorID
2 Continually use MC_WriteParameter (Parameter 1005) to change the Duty Cycle from global variable G_PWM_Duty_Cycle (example: 0.5 => 50%)
Update_PWM_Duty_Cycle Update_PWM_Duty_Cycle
MC_WriteParameter_1
MC_WriteParameter
EN ENO
0 MC_ExecutionMode ErrorID
3
After first scan, use MC_MoveVelocity to continually set the PWM frequency (for example: 50,000 => 50 KHz) from global variable G_PWM_Frequency. PWM axis will run
forever (until Program Mode, MC_Halt, and so on).
MC_MoveVelocity_1
__SYSVA_FIRST_SCAN MC_MoveVelocity
EN ENO
1 Jerk Error
0 DirectionIn ErrorID
POU PWM_Program
HSC Feedback Axis From Connected Components Workbench software version 8.0 onwards,
support has been added for an HSC (High-Speed Counter) Feedback Axis that
uses the same instructions as the PTO Motion Axis. UDFBs are still supported.
You can use either one but you cannot select both for the same plug-in.
The HSC Feedback Axis provides ease-of-use as you no longer need to program
the function blocks, and it also uses up less memory on the controller. The HSC
Feedback Axis uses only the administrative function blocks from the PTO
Motion Axis and they share the same Axis Monitor.
IMPORTANT The counters are not reset to zero for program download. For example, if
using the feedback axis, use the MC_ResetPosition function block to
reset the position to zero.
IMPORTANT If the feedback axis is in the error state because the configured position
limits have been exceeded, using the MC_Reset function block to reset
the axis may not clear the error as there may still be pulse detected from
the encoder.
Notes:
High-Speed Counter All Micro830, Micro850, and Micro870 controllers, except for 2080-LCxx-AWB,
Overview support up to six high-speed counters (HSC). The HSC feature in Micro800
consists of two main components: the high-speed counter hardware
(embedded inputs in the controller), and high-speed counter instructions in
the application program. High-speed counter instructions apply configuration
to the high-speed counter hardware and updates the accumulator.
This chapter describes how to use the HSC function and also contains sections
on the HSC and HSC_ SET_STS function blocks, as follows:
• High Speed Counter (HSC) Data Structures
• High-Speed Counter (HSC) Function Block
• HSC_SET_STS Function Block
• Programmable Limit Switch (PLS) Function
• HSC Interrupts
Programmable Limit Switch The Programmable Limit Switch function allows you to configure the High-
Overview Speed Counter to operate as a PLS (Programmable Limit Switch) or rotary cam
switch. For more information, see Programmable Limit Switch (PLS) Function
on page 205.
What is High-Speed High-Speed Counter is used to detect narrow (fast) pulses, and its specialized
Counter? instructions to initiate other control operations based on counts reaching
preset values. These control operations include the automatic and immediate
execution of the high-speed counter interrupt routine and the immediate
update of outputs based on a source and mask pattern you set.
The HSC functions are different than most other controller instructions. Their
operation is performed by custom circuitry that runs in parallel with the main
system processor. This is necessary because of the high-performance
requirements of these functions.
The HSC is extremely versatile; you can select or configure the master HSC for
any one of ten (10) modes and the sub HSC for any one of five (5) modes of
operation. See HSC Mode (HSCAPP.HSCMode) on page 189 for more
information.
You must set a proper value for the variables OFSetting, HPSetting, and
UFSetting before triggering Start/Run HSC. Otherwise, the controller will
be faulted. (Setting a value for LPSetting is optional for certain counting
modes.)
To learn more about HscAppData variable input, see HSC APP Data
Structure on page 187.
In some cases, a sub counter will be disabled by master counter mode. For
more information, see HSC Mode (HSCAPP.HSCMode) on page 189.
IMPORTANT The HSC function can only be used with the controller’s embedded I/O.
It cannot be used with expansion I/O modules.
HSC Inputs and All Micro830, Micro850, and Micro870 controllers, except 2080-LCxx-xxAWB,
Wiring Mapping have 100 kHz high-speed counters. Each main high-speed counter has four
dedicated inputs and each sub high-speed counter has two dedicated inputs.
HSC0's sub counter is HSC1, HSC2's sub counter is HSC3, and HSC4's sub
counter is HSC5. Each set of counters share the input. The following table
shows the dedicated inputs for the HSCs depending on the mode.
Table 25 - HSC Input Wiring Mapping
Embedded Input
0 01 02 03 04 05 06 07 08 09 10 11
HSC0 A/C B/D Reset Hold
HSC1 A/C B/D
HSC2 A/C B/D Reset Hold
The following tables show the input wiring mapping for the different
Micro830, Micro850, and Micro870 controllers.
Table 26 - Micro830 10 and 16-point Controller HSC Input Wiring Mapping
Mode Value in
Input 0 (HSC0) Input 1 (HSC0)
Modes of Operation Input 2 (HSC0) Input 3 (HSC0) User Program
Input 2 (HSC1) Input 3 (HSC1) (HSCAppData.HSCMode)
Counter with Internal Direction Count Up Not Used 0
(mode 1a)
Counter with Internal Direction,
Count Up Not Used Reset Hold 1
External Reset and Hold (mode 1b)
Counter with External Direction Count Up/Down Direction Not Used 2
(mode 2a)
Counter with External Direction, Count Direction Reset Hold 3
Reset, and Hold (mode 2b)
Two Input Counter (mode 3a) Count Up Count Down Not Used 4
Two Input Counter with External Count Up Count Down Reset Hold 5
Reset and Hold (mode 3b)
Quadrature Counter (mode 4a) A Type input B Type input Not Used 6
Quadrature Counter with External A Type input B Type input Z Type Reset Hold 7
Reset and Hold (mode 4b)
Quadrature X4 Counter A Type input B Type input Not Used 8
(mode 5a)
Quadrature X4 Counter with External A Type input B Type input Z Type Reset Hold 9
Reset and Hold
High Speed Counter (HSC) The following section describes HSC data structures.
Data Structures
HSC APP Data Structure
Define an HSC App Data (configuration data, data type HSCAPP) when
programming an HSC. During HSC counting, you should not change the data,
except if you need to reload the configuration.
To reload HSC configuration, change the HSC APP Data, then call HSC
function block with command 0x03 (set/reload). Otherwise, the change to HSC
App Data during HSC counting is ignored.
HSC1, HSC3, and HSC5 support mode 0, 2, 4, 6, and 8 only, and HSC0,
HSC2, and HSC4 support all counting modes.
This bit enables and disables the HSC Programmable Limit Switch (PLS)
function.
HSCID (HSCAPP.HSCID)
Description Data Format User Program Access
HSCID Word (UINT) read/write
The main high-speed counters support 10 types of operation mode and the sub
high-speed counters support 5 types (mode 0, 2, 4, 6, 8). If the main high-speed
counter is set to mode 1, 3, 5, 7 or 9, then the resub high-speed counter will be
disabled.
Inputs 0…11 are available for use as inputs to other functions regardless
of the HSC being used.
Inputs 0…11 are available for use as inputs to other functions regardless
of the HSC being used.
Inputs 0…11 are available for use as inputs to other functions regardless
of the HSC being used.
Inputs 0 through 11 are available for use as inputs to other functions regardless of the HSC being used.
HSC Mode 5 – Two Input Counter (up and down) with External Reset and Hold
Table 35 - HSC Mode 5 Examples
Input Terminals Embedded Input 0 Embedded Input 1 Embedded Input 2 Embedded Input 3 CE Bit Comments
Function Count Direction Reset Hold
Example 1 on (1) off (0) on (1) off (0) off (0) on (1) HSC Accumulator + 1 count
Example 2 on (1) off (0) on (1) off (0) off (0) on (1) HSC Accumulator - 1 count
Example3 on (1) off (0) on (1) Hold accumulator value
Example 4 on (1) off (0) off (0) Hold accumulator value
Example 5 on (1) off (0) on (1) off (0) Hold accumulator value
Example 6 Clear accumulator (=0)
Inputs 0…11 are available for use as inputs to other functions regardless of the HSC being used.
The counter can be reset using the Z input. The Z outputs from the encoders
typically provide one pulse per revolution.
A
A Input 0
Input 0
B
Input 1
Z
Input 2
Reset
Quadrature Encoder Input 1
B
Forward Rotation Reverse Rotation
B
1 2 3 2 1
Count
Inputs 0…11 are available for use as inputs to other functions regardless of the HSC being used.
HSC Mode 7 – Quadrature Counter – Phased Inputs A and B with External Reset and Hold
Table 37 - HSC Mode 7 Examples
Input Terminals Embedded Input 0 Embedded Input 1 Embedded Input 2 Embedded Input 3 CE Bit Comments
Function Count A Count B Z reset Hold
Example 1(1) off (0) off (0) on (1) HSC Accumulator + 1 count
Example 2(2) ß off (0) off (0) off (0) on (1) HSC Accumulator - 1 count
Example3 ß off (0) off (0) on (1) Reset accumulator to zero
Example 4 on (1) Hold accumulator value
Example 5 on (1) Hold accumulator value
Example 6 off (0) on (1) Hold accumulator value
Example 7 off (0) off (0) Hold accumulator value
(1) Count input A leads count input B.
(2) Count input B leads count input A. Blank cells = don’t care, = rising edge, = falling edge
Inputs 0…11 are available for use as inputs to other functions regardless of the HSC being used.
This parameter is the initial HSC Accumulator value that need to be set when
starting the HSC. This parameter is updated by the HSC sub-system
automatically when the HSC is in Counting mode, reflecting the actual HSC
accumulator value.
The HSCAPP.HPSetting is the upper setpoint (in counts) that defines when the
HSC sub-system generates an interrupt.
The data loaded into the high preset must be less than to the data resident in
the overflow (HSCAPP.OFSetting) parameter or an HSC error is generated.
The HSCAPP.LPSetting is the lower setpoint (in counts) that defines when the
HSC sub-system generates an interrupt.
If the underflow and low preset values are negative numbers, the low preset
must be a number with a smaller absolute value.
The HSCAPP.OFSetting defines the upper count limit for the counter. If the
counter’s accumulated value increments past the value specified in this
variable, an overflow interrupt is generated. When the overflow interrupt is
generated, the HSC sub-system rolls the accumulator over to the underflow
value and the counter continues counting from the underflow value (counts
are not lost in this transition). The user can specify any value for the overflow
position, provided it is greater than the underflow value and falls between
-2,147,483,648 and 2,147,483,647.
Data loaded into the overflow variable must be greater than the data
resident in the high preset (HSCAPP.HPSetting) or an HSC error is
generated.
The HSCAPP.UFSetting defines the lower count limit for the counter. If the
counter’s accumulated value decrements past the value specified in this
variable, an underflow interrupt is generated. When the underflow interrupt is
generated, the HSC sub-system resets the accumulated value to the overflow
value and the counter then begins counting from the overflow value (counts
are not lost in this transition). The user can specify any value for the underflow
position, provided it is less than the overflow value and falls between
-2,147,483,648 and 2,147,483,647.
Data loaded into the underflow variable must be less than or equal to
the data resident in the low preset (HSCAPP.LPSetting) or an HSC error
is generated.
For example, if the user wants to control outputs 0, 1, 3, using HSC then the
user needs to assign,
HscAppData.OutputMask = 2#1011
(OR using Decimal Value: HscAppData.OutputMask = 11)
HSCAPP.OutputMask (output
1 1 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 1 1
mask)
The outputs shown in the black boxes are the outputs under the control of the
HSC sub-system. The mask defines which outputs can be controlled. The high
preset output or low preset output values (HSCAPP.HPOutput or
HSCAPP.LPOutput) define if each output is either ON (1) or OFF (0). Another
way to view this is that the high or low preset output is written through the
output mask, with the output mask acting like a filter.
The bits in the gray boxes are unused. For the 10-point controller, the first 4
bits of the mask word are used and the remaining mask bits are not functional
because they do not correlate to any physical outputs on the base unit. For the
16, 24 and 48-point controllers, the first 6, 10 and 20 bits of the mask word are
used, respectively.
The mask bit pattern can be configured only during initial setup.
The High Preset Output defines the state (1 = ON or 0 = OFF) of the outputs on
the controller when the high preset is reached. For more information on how
to directly turn outputs on or off based on the high preset being reached, see
Output Mask Bits (HSCAPP.OutputMask) on page 195.
The high output bit pattern can be configured during initial setup, or while the
controller is operating. Use the HSC function block to load the new parameters
while the controller is operating.
The Low Preset Output defines the state (1 = “on”, 0 = “off”) of the outputs on
the controller when the low preset is reached. See Output Mask Bits
(HSCAPP.OutputMask) on page 195 for more information on how to directly
turn outputs on or off based on the low preset being reached.
The low output bit pattern can be configured during initial setup, or while the
controller is operating. Use the HSC function block to load the new parameters
while the controller is operating.
HSC STS (HSC Status) Data Define an HSC STS data (HSC status information data, data type HSCSTS)
Structure when programming an HSC.
The Counting Enabled control bit is used to indicate the status of the High-
Speed Counter, whether counting is enabled (1) or disabled (0, default).
The Error Detected flag is a status bit that can be used in the control program
to detect if an error is present in the HSC sub-system. The most common type
of error that this bit represents is a configuration error. When this bit is set (1),
you should look at the specific error code in parameter HSCSTS.ErrorCode.
This bit is maintained by the controller and is set when there is an HSC error.
This bit can be cleared by the user, if necessary.
Count Up (HSCSTS.CountUpFlag)
Description Data Format HSC Modes(1) User Program Access
HSCSTS.CountUpFlag bit 0…9 read only
(1) For Mode descriptions, see HSC Mode (HSCAPP.HSCMode) on page 189.
The Count Up bit is used with all of the HSCs (modes 0…9). If the
HSCSTS.CountEnable bit is set, the Count Up bit is set (1). If the
HSCSTS.CountEnable is cleared, the Count Up bit is cleared (0).
The Count Down bit is used with the bidirectional counters (modes 2…9). If the
HSCSTS.CountEnable bit is set, the Count Down bit is set (1). If the
HSCSTS.CountEnable bit is clear, the Count Down bit is cleared (0).
The Mode Done status flag is set (1) by the HSC sub-system when the HSC is
configured for Mode 0 or Mode 1 behavior, and the accumulator counts up to
the High Preset.
Overflow (HSCSTS.OVF)
Description Data Format HSC Modes(1) User Program Access
HSCSTS.OVF bit 0…9 read/write
(1) For Mode descriptions, see HSC Mode (HSCAPP.HSCMode) on page 189.
The HSCSTS.OVF status flag is set (1) by the HSC sub-system whenever the
accumulated value (HSCSTS.Accumulator) has counted through the overflow
variable (HSCAPP.OFSetting).
This bit is transitional and is set by the HSC sub-system. It is up to the control
program to utilize, track if necessary, and clear (0) the overflow condition.
Underflow (HSCSTS.UNF)
Description Data Format HSC Modes(1) User Program Access
HSCSTS.UNF bit 0…9 read/write
(1) For Mode descriptions, see HSC Mode (HSCAPP.HSCMode) on page 189.
The Underflow status flag is set (1) by the HSC sub-system whenever the
accumulated value (HSCSTS.Accumulator) has counted through the underflow
variable (HSCAPP.UFSetting).
This bit is transitional and is set by the HSC sub-system. It is up to the control
program to utilize, track if necessary, and clear (0) the underflow condition.
The Count Direction status flag is controlled by the HSC sub-system. When the
HSC accumulator counts up, the direction flag is set (1). Whenever the HSC
accumulator counts down, the direction flag is cleared (0).
If the accumulated value stops, the direction bit retains its value. The only time
the direction flag changes is when the accumulated count reverses.
The High Preset Reached status flag is set (1) by the HSC sub-system whenever
the accumulated value (HSCSTS.Accumulator) is greater than or equal to the
high preset variable (HSCAPP.HPSetting).
The Low Preset Reached status flag is set (1) by the HSC sub-system whenever
the accumulated value (HSCSTS.Accumulator is less than or equal to the low
preset variable HSCAPP.LPSetting).
The Overflow Interrupt status bit is set (1) when the HSC accumulator counts
through the overflow value and the HSC interrupt is triggered. This bit can be
used in the control program to identify that the overflow variable caused the
HSC interrupt. If the control program needs to perform any specific control
action based on the overflow, this bit is used as conditional logic.
This bit can be cleared (0) by the control program and is also cleared by the
HSC sub-system whenever these conditions are detected:
• Low Preset Interrupt executes
• High Preset Interrupt executes
• Underflow Interrupt executes
Underflow Interrupt (HSCSTS.UFCauseInter)
Description Data Format HSC Modes(1) User Program Access
HSCSTS.UFCauseInter bit 2…9 read/write
(1) For Mode descriptions, see HSC Mode (HSCAPP.HSCMode) on page 189.
The Underflow Interrupt status bit is set (1) when the HSC accumulator counts
through the underflow value and the HSC interrupt is triggered. This bit can
be used in the control program to identify that the underflow condition caused
the HSC interrupt. If the control program needs to perform any specific
control action based on the underflow, this bit is used as conditional logic.
This bit can be cleared (0) by the control program and is also cleared by the
HSC sub-system whenever these conditions are detected:
• Low Preset Interrupt occurs
• High Preset Interrupt occurs
• Overflow Interrupt occurs
High Preset Interrupt (HSCSTS.HPCauseInter)
Description Data Format HSC Modes(1) User Program Access
HSCSTS.HPCauseInter bit 0…9 read/write
(1) For Mode descriptions, see HSC Mode (HSCAPP.HSCMode) on page 189.
The High Preset Interrupt status bit is set (1) when the HSC accumulator
reaches the high preset value and the HSC interrupt is triggered. This bit can
be used in the control program to identify that the high preset condition
caused the HSC interrupt. If the control program needs to perform any
specific control action based on the high preset, this bit is used as conditional
logic.
This bit can be cleared (0) by the control program and is also cleared by the
HSC sub-system whenever these conditions are detected:
• Low Preset Interrupt occurs
• Underflow Interrupt occurs
• Overflow Interrupt occurs
Low Preset Interrupt (HSCSTS.LPCauseInter)
Description Data Format HSC Modes(1) User Program Access
HSCSTS.LPCauseInter bit 2…9 read/write
(1) For Mode descriptions, see HSC Mode (HSCAPP.HSCMode) on page 189.
The Low Preset Interrupt status bit is set (1) when the HSC accumulator
reaches the low preset value and the HSC interrupt has been triggered. This bit
can be used in the control program to identify that the low preset condition
caused the HSC interrupt. If the control program needs to perform any
specific control action based on the low preset, this bit would be used as
conditional logic.
This bit can be cleared (0) by the control program and is also be cleared by the
HSC sub-system whenever these conditions are detected:
• High Preset Interrupt occurs
• Underflow Interrupt occurs
• Overflow Interrupt occurs
Programmable Limit Switch Position (HSCSTS.PLSPosition)
Description Data Format HSC Modes(1) User Program Access
HSCSTS.PLSPosition Word (INT) 0…9 read only
(1) For Mode descriptions, see HSC Mode (HSCAPP.HSCMode) on page 189.
When the HSC is in Counting mode, and PLS is enabled, this parameter
indicates which PLS element is used for the current HSC configuration.
The Error Codes detected by the HSC sub-system are displayed in this word.
Errors include:
Writing to this element is not recommended except for clearing existing errors
and to capture new HSC errors.
Accumulator (HSCSTS.Accumulator)
Description Data Format User Program Access
HSCSTS.Accumulator long word (32-bit INT) read only
The HSCSTS.HP is the upper set point (in counts) that defines when the HSC
sub-system generates an interrupt.
The data loaded into the high preset must be less than or equal to the data
resident in the overflow (HSCAPP.OFSetting) parameter or an HSC error is
generated.
This is the latest high preset setting, which may be updated by PLS function
from the PLS data block.
The HSCSTS.LP is the lower set point (in counts) that defines when the HSC
sub-system generates an interrupt.
The data loaded into the low preset must greater than or equal to the data
resident in the underflow (HSCAPP.UFSetting) parameter, or an HSC error is
generated. If the underflow and low preset values are negative numbers, the
low preset must be a number with a smaller absolute value.
This is the latest low preset setting, which may be updated by PLS function
from the PLS data block.
The High Preset Output defines the state (1 = ON or 0 = OFF) of the outputs on
the controller when the high preset is reached. See Output Mask Bits
(HSCAPP.OutputMask) on page 195 for more information on how to directly
turn outputs on or off based on the high preset being reached.
This is the latest high preset output setting, which may be updated by PLS
function from the PLS data block.
The Low Preset Output defines the state (1 = “on”, 0 = “off”) of the outputs on
the controller when the low preset is reached. See Output Mask Bits
(HSCAPP.OutputMask) on page 195 for more information on how to directly
turn outputs on or off based on the low preset being reached.
This is the latest low preset output setting, which may be updated by PLS
function from the PLS data block.
High-Speed Counter (HSC) The HSC function block can be used to start/stop HSC counting, to refresh
Function Block HSC status, to reload HSC setting, and to reset HSC accumulator.
HSC
Enable STS
HscCmd
HscAppData
HscStsInfo
PlsData
HscCmd is an input parameter with data type USINT. All HSC commands
(1…4) are Level commands. Users are advised to disable the instruction before
updating the command.
HscCmd = 1 starts the HSC mechanism. Once the HSC is in running mode, the
HscCmd = 2 must be issued to stop counting. Setting the Enable input
parameter to False does not stop counting while in running mode.
The parameter values shown in the Variable Monitor may not match the values
in the Hardware. Command 3 must be executed to load the values from the
variables to the hardware without stopping the HSC.
If the HSC Enable is True, HscCmd = 3 will continuously load the parameters.
Trigger HscCmd = 3 only once.
HscCmd = 4 (reset) sets the Acc value to the HSC AppData.Accumalator value.
The HscCmd =4 does not stop HSC counting. If HSC is counting when the
HscCmd =4 is issued, some counting may be lost.
To reset the Acc value and then continue the counting, trigger the HscCmd =4
only once. If the command is enabled continuously, it may cause errors.
HSC_SET_STS Function
Block HSC
Enable STS
HscId
Mode1Done
HPReached
LPReached
OFOccured
UFOccured
The HSC Set Status function block can be used to change the HSC counting
status. This function block is called when the HSC is not counting (stopped).
Programmable Limit Switch The Programmable Limit Switch function allows you to configure the High-
(PLS) Function Speed Counter to operate as a PLS (programmable limit switch) or rotary cam
switch.
IMPORTANT The PLS Function only operates in tandem with the HSC of a Micro830
controller. To use the PLS function, an HSC must first be configured.
PLS data structure is a flexible array, with each element defined as follows,
The total number of elements for one PLS data cannot be larger than 255.
When PLS is not enabled, PLS data are still required to be defined, but can be
not initialized.
PLS Operation
When the PLS function is enabled, and the controller is in the run mode, the
HSC counts incoming pulses. When the count reaches the first preset (HSCHP
or HSCLP) defined in the PLS data, the output source data (HSCHPOutput or
HSCLPOutput) is written through the HSC mask (HSCAPP.OutputMask).
At that point, the next presets (HSCHP and HSCLP) defined in the PLS data
become active.
When the HSC counts to that new preset, the new output data is written
through the HSC mask. This process continues until the last element within
the PLS data block is loaded. At that point, the active element within the PLS
data block is reset to zero. This behavior is referred to as circular operation.
Output High Data is only operational when the counter is counting up.
Output Low Data is only operational when the counter is counting
down.
You can use the PLS in Up (high), Down (low), or both directions. If your
application only counts in one direction, ignore the other parameters.
The PLS function can operate with all of the other HSC capabilities. The ability
to select which HSC events generate a user interrupt are not limited.
PLS Example
Once the values above for all 4 PLS data elements have been entered, the PLS is
configured.
When the ladder logic first runs, HSCSTS.Accumulator = 1, therefore all the
outputs are turned off. The value of HSCSTS.HP = 250
This will repeat as the HSCSTS.Accumulator reaches 500, 750, and 1000. The
controller energizes outputs 0...2, 0...3, and 0...4 respectively. Once completed,
the cycle resets and repeats from HSCSTS.HP = 250.
Rockwell Automation Publication 2080-UM002M-EN-E - April 2022 207
Chapter 9 Use the High-Speed Counter and Programmable Limit Switch
HSC Interrupts An interrupt is an event that causes the controller to suspend the task it is
currently performing, perform a different task, and then return to the
suspended task at the point where it suspended. Micro800 supports up to six
HSC interrupts.
In the User Interrupt configuration window, select HSC, and HSC ID, which is
the interrupt triggering the User Interrupt.
This is the name of the Program Organizational Unit (POU) which is executed
immediately when this HSC Interrupt occurs. You can choose any pre-
programmed POU from the drop-down list.
The Auto Start is configured with the programming device and stored as part
of the user program. The auto start bit defines if the HSC interrupt function
automatically starts whenever the controller enters any run or test mode.
The MV (Overflow Mask) control bit is used to enable (allow) or disable (not
allow) an overflow interrupt from occurring. If this bit is clear (0), and an
overflow reached condition is detected by the HSC, the HSC user interrupt is
not executed.
This bit is controlled by the user program and retains its value through a power
cycle. It is up to the user program to set and clear this bit.
The MN (Underflow Mask) control bit is used to enable (allow) or disable (not
allow) a underflow interrupt from occurring. If this bit is clear (0), and a
Underflow Reached condition is detected by the HSC, the HSC user interrupt
is not executed.
This bit is controlled by the user program and retains its value through a power
cycle. It is up to the user program to set and clear this bit.
The MH (High Preset Mask) control bit is used to enable (allow) or disable (not
allow) a high preset interrupt from occurring. If this bit is clear (0), and a High
Preset Reached condition is detected by the HSC, the HSC user interrupt is not
executed.
This bit is controlled by the user program and retains its value through a power
cycle. It is up to the user program to set and clear this bit.
The ML (Low Preset Mask) control bit is used to enable (allow) or disable (not
allow) a low preset interrupt from occurring. If this bit is clear (0), and a Low
Preset Reached condition is detected by the HSC, the HSC user interrupt is not
executed.
This bit is controlled by the user program and retains its value through a power
cycle. It is up to the user program to set and clear this bit.
The Enabled bit is used to indicate HSC interrupt enable or disable status.
The EX (User Interrupt Executing) bit is set (1) whenever the HSC sub-system
begins processing the HSC subroutine due to any of the following conditions:
• Low preset reached
• High preset reached
• Overflow condition – count up through the overflow value
• Underflow condition – count down through the underflow value
The HSC EX bit can be used in the control program as conditional logic to
detect if an HSC interrupt is executing.
The HSC sub-system will clear (0) the EX bit when the controller completes its
processing of the HSC subroutine.
The LS (User Interrupt Lost) is a status flag that represents an interrupt has
been lost. The controller can process 1 active and maintain up to 1 pending user
interrupt conditions before it sets the lost bit.
This bit is set by the controller. It is up to the control program to utilize, track
the lost condition if necessary.
Notes:
Controller Security
Protected Mode To maintain the secure operation of your Micro800 controllers, operations
that can disrupt controller operation are restricted based on the controller
operating mode.
Table 45 - Protected Operations on Micro800 Controllers
Activity
Ethernet Port
Configuration
Current Controller Setting(1) (through Serial and USB
Firmware Update
Port Configuration Lost Password Password Change Controller
Operation Mode I/O Configuration
Request Connected Recovery Change Change
Components Changes
Workbench or
RSLinx)
Controller in Accepted Not Allowed Accepted Not Allowed
Program Mode
Controller with
Password Protected Rejected Not Allowed(2) Not Allowed Rejected Rejected Rejected Not Allowed
in Run Mode
Controller in Hard
Rejected Not Allowed Not Allowed Rejected Rejected Rejected Not Allowed
Run Mode(3)
(1) Ethernet configuration includes IP address, subnet mask, gateway, port speed/duplex and so on.
(2) Difference between Not Allowed and Rejected is that Not Allowed activities can only be done during offline while Rejected activities can be performed but do not take effect.
(3) Hard Run Mode can only be in Micro830, Micro850 and Micro870 controllers with Mode switch to RUN.
Exclusive Access Exclusive access is enforced on the Micro800 controller regardless of whether
the controller is password-protected or not. This means that only one
Connected Components Workbench software session is authorized at one
time and only an authorized client has exclusive access to the controller
application. This ensures that only one software session has exclusive access to
the Micro800 application-specific configuration.
Password Protection By setting a password on the controller, a user effectively restricts access to the
programming software connections to the controller to software sessions that
can supply the correct password. Essentially, Connected Components
Workbench software operation such as upload and download are prevented if
the controller is secured with a password and the correct password is not
provided.
Micro800 controllers with firmware revision 2 and later are shipped with no
password but a password can be set through the Connected Components
Workbench software (version 2 or later).
For users with earlier versions of the software and/or revisions of the
hardware, see the compatibility scenarios below.
If the controller is not locked, access to the user application will be allowed,
provided the controller is not busy with another session. If the controller is
locked, access to the user application will fail. You need to upgrade to version 2
of the Connected Components Workbench software.
Users are advised to upgrade the firmware. See Flash Upgrade Your Micro800
Firmware on page 257 for instructions.
Work with a Locked The following workflows are supported on compatible Micro800 controllers
Controller (firmware revision 2) and Connected Components Workbench software
version 2.
To debug a locked controller, you have to connect to the controller through the
Connected Components Workbench software and provide the password
before you can proceed to debug.
1. Launch the Connected Components Workbench software.
IMPORTANT If the controller has a password locked version 10 or later project, you
cannot access the controller using Connected Components Workbench
software version 9 or earlier. If you use Connected Components
Workbench software version 10 or later to download a version 9 or
earlier project, the password in the controller will be automatically
converted to the old algorithm.
IMPORTANT If the controller has a password locked version 9 or earlier project and
you use Connected Components Workbench software version 10 or later,
to download a version 10 or later project, the password in the controller
will be automatically converted to the new algorithm.
IMPORTANT If communication is lost during the download, repeat the download and
verify that the controller is password protected.
9. Click Connect.
10. Select target controller2.
11. Click Download.
12. Lock controller2. See Configure Controller Password on page 267.
IMPORTANT Even though the password matches, the restore operation will fail if
either one of the controller or project in the memory module is
protected using the old password algorithm, and the other is protected
using the new password algorithm. You can flash update the controller
using the Reset option to clear the password before restoring the
project to the controller.
Configure Controller To set, change, and clear controller password, see the quickstart instructions
Password Configure Controller Password on page 267.
IMPORTANT After creating or changing the controller password, you need to power
down the controller in order for the password to be saved.
Recover from a Lost If the controller is secured with a password and the password has been lost,
Password then it becomes impossible to access the controller using the Connected
Components Workbench software.
To recover, the controller must be set to Program Mode using the keyswitch for
Micro830, Micro850, and Micro870 controllers, the 2080-LCD for Micro810
ATTENTION: The project in the controller will be lost but a new project can be
downloaded.
Using the Memory Module You can use the memory module (2080-MEMBAK-RTC and 2080-MEMBAK-
Plug-in RTC2) to download a program into different controllers.
IMPORTANT The Password Mismatch status must be at “False”, this means that the
Controller and Backup project have the same security condition.
If the status is “True” then the Controller will not load from the Memory
module as the security condition is mismatched.
To restore the project from the memory module to the controller, follow these
steps:
1. While connected to the controller and being in the MEMBAK-RTC
properties, make sure that the controller is changed to Program Mode
and click “Restore from Memory Module” under Memory Module
You can use the memory module to download a project to multiple controllers
without connecting them to a PC with Connected Components Workbench
software installed. To do this:
1. Back up a project with “Load Always” option enabled.
2. Remove the module and plug it into a different controller.
3. Cycle the power. Observe the Status LED on the module lights up for a
few seconds while the project is being downloaded from the module to
the controller.
4. When the operation is finished you can unplug the module and leave the
slot empty, or plug in a different MEMBAK-RTC module if you want to
use the RTC functionality.
Topic Page
Overview 221
Project Backup and Restore 222
Backup and Restore Directory Structure 223
Power-up Settings in ConfigMeFirst.txt 224
General Configuration Rules in ConfigMeFirst.txt 226
ConfigMeFirst.txt Errors 226
Data Log 229
Recipe 235
Quickstart Projects for Data Log and Recipe Function Blocks 238
The last section provides quickstart projects for the data log and recipe
functions.
Overview With firmware revision 12.011 or later, Micro830, Micro850, and Micro870
controllers support microSD cards through the use of the microSD card plug-
in (a PartnerNetwork™ Technology partner product) for Micro800 controllers
for the following purposes:
• Project backup and restore
• Data log and Recipe
IMPORTANT For optimum performance, the microSD card should not be more than 90%
full. Regularly check available space on your microSD card and ensure that
the card is exclusively used for the Micro800 controller and no unnecessary
files are present. Regularly delete old data log files and directories.
IMPORTANT Do not remove the microSD card or power down while operations such as
upload, download, delete, search, backup, and restore are ongoing to
prevent data loss. A blinking SD status LED indicates that these operations
are ongoing.
Note the following:
• The SD status LED will not blink when flash upgrading the firmware from the
microSD card.
• The SD status LED does not blink continuously for the entire duration of the
restore operation.
IMPORTANT To prevent data loss, recipe and data log function blocks must indicate Idle
status before microSD card is removed.
Project Backup and Restore Project backup and restore on Micro830, Micro850, and Micro870 controllers
are mainly supported through the microSD card. Both backup and restore can
be initiated or manually triggered and configured through the Connected
Components Workbench software, and the ConfigMeFirst.txt file in the
microSD card. These backup files are not the same as Connected Components
Workbench project files.
Backup and restore can only occur when the controller is in PROGRAM mode.
On controller power-up, restore automatically occurs if the Load Always or
Load on Memory Error option has been configured in the Connected
Components Workbench software.
If you select the option “Enable Encryption on user backup project”, the time it
takes to restore the program can increase up to 10 times, depending on the size
and content of the program.
IMPORTANT To learn about restore and backup using the Connected Components
Workbench software, see the software Online Help.
IMPORTANT For Micro800 controllers that support microSD cards, IP protection of user
project can only be achieved through the POU password protection
mechanism in Connected Components Workbench Developer Edition
software and NOT via Controller Lock feature.
IMPORTANT If the Load Always setting is enabled and power is lost when restoring a
project from the microSD card, the controller will attempt to load the project
using the default project name and directory after power is restored. If your
project is not using the default name and directory, the operation will fail
and a fault occurs, or the wrong project will be loaded.
The default project name is the name of the controller, for example
“Micro850”, and the default directory is “Micro850\USERPRJ”.
If you change the name of the controller from the default, you must
configure the UPD setting in the ConfigMeFirst.txt file.
The microSD card stores the controller password in encrypted format. When
the password is mismatched, the contents of the microSD card is not restored
on the controller.
Backup and restore can be configured to trigger through the following ways:
IMPORTANT The Micro800 controller reports a major fault when project backup does not
succeed because the memory card size is exceeded.
ConfigMeFirst.txt Errors
The SD status LED goes off when the microSD card is inserted during
PROGRAM or RUN mode (or on power-up) and the ConfigMeFirst.txt file is
either unreadable or invalid. The ConfigMeFirst.txt file will be invalid when it
has the following errors:
• unrecognized setting (that is, the first three configuration rules have not
been followed),
• the setting parameters after the = symbol is invalid, does not exist, or out
of range,
• the same setting exists twice or more,
• one or more non-setting characters exist within the same bracket,
• space in between setting characters (example, [P M]), or
• space in between IP address, subnet mask, and gateway address (for
example, xxx. x xx.xxx.xxx)
• only one of the network parameter settings ([IPA], [SNM], or [GWA]) is
assigned
• [END] setting does not exist (even if there are no other settings in the
configuration file).
The microSD card becomes unusable until the ConfigMeFirst.txt file becomes
readable or the errors are corrected.
The first step is to back up the project from the controller into the microSD
card.
1. In the Connected Components Workbench software, verify that you have
downloaded the updated project to your controller.
2. Insert a microSD card into the microSD card slot.
3. Set the controller to program mode.
4. Under the Memory Card option in your controller settings, click Backup
to Memory Card.
IMPORTANT The Backup to Memory Card button is enabled when the controller
is in program mode and a microSD card is in the microSD card
slot.
5. After the backup is completed, click OK.
The image files are stored in the default location on the microSD card
<Micro800>\USERPRJ. This location is where the controller loads from when
the Load on power up setting is configured to “Load Always” or “Load on
Error”.
The ConfigMeFirst.txt file also allows you to restore from the backup if you
want to configure the Load on power up setting to “Disable”.
The next step is to retrieve the image files from the microSD card and send
them to your customer through email.
1. Remove the microSD card from the controller and read the card using
your computer.
2. Navigate to the location where the image files are stored (default is
<Micro800>\USERPRJ).
3. Use a compression program to zip these image files and send them to
your customer through email.
The customer must unzip these image files into the root directory of their
microSD card and verify that the location is identical to the original (default is
<Micro800>\USERPRJ).
The last step is to restore the project to your controller from the microSD card.
There are two methods to restore the backup, depending on the configuration
of the controller.
For this example, the Load on power up setting was configured to “Load
Always”. This means that the controller loads the project from the memory
card whenever it is powered on.
1. Insert the microSD card into the microSD card slot.
2. Cycle power to the controller.
3. When the SD LED displays a steady green light, the project restore is
complete.
This method is used for an existing controller that has been configured and
you want to update the program.
New Controller
If your controller is new, you can use the ConfigMeFirst.txt file to restore the
project backup.
The ConfigMeFirst.txt file must be placed in the same root directory as the
backup folder in the microSD card.
Data Log The data logging feature allows you to capture global and local variables with
timestamp from the Micro800 controller into the microSD card. You can
retrieve the recorded datasets on the microSD card by reading the contents of
the microSD card through a card reader or by doing an upload through the
Connected Components Workbench software.
You can retrieve data log files from the microSD card using a card reader or by
uploading the data logs through the Connected Components Workbench
software.
IMPORTANT Uploading data log files in PROGRAM mode is recommended for optimum
performance and to prevent file access conflict. For example, if the data
log instruction is executing, Connected Components Workbench
software will not upload the last data log file.
See the sample quickstart project to get you started on the Data Log feature,
Use the Data Log Feature on page 239.
IMPORTANT Data log execution time depends on the user application and its
complexity. Users are advised to data log no faster than every 2 seconds
for typical applications. Note that housekeeping takes at least 5 ms per
program scan. See Program Execution in Micro800 on page 133 for more
information on program scan and execution rules and sequence.
See also Data Log – Data Payload vs. Performance Time on page 234.
IMPORTANT Note that in cases where there are simultaneous RCP and DLG function
block execution or uploads/downloads/searches, the activities are
queued up and handled one by one by the program scan. You will notice a
slowdown in performance in these cases.
Subdirectories are also created following the controller RTC timestamp. This means that
if RTC date at the time of function block execution is February 02, 2019, the subfolder 2019
is created under DATALOG. Under the 2019 folder, the subfolder 02 (which stands for the
month of February) is created. Under 02, another subfolder 02 is created, corresponding
to the current date.
These data log files are
for February 2, 2019.
Under the current working folder, the subfolder Grp01 is created. A maximum of 50 Grpxxx
folders can be generated on the microSD card per day.
Under the current Grpxxx working folder, the data log file File01.txt is created. Once this
file reaches more than 4 KB, another file, File02.txt, is automatically created to store
data. The file size is kept small in order to minimize data loss in case the card is removed
or when there is unexpected power off.
Each Grpxx folder can accommodate up to 50 files. This means that, for example, when
the Grp01 folder already stores 50 files, a new folder Grp02 is automatically created to
store the next data log files for that day. This automatic folder and file generation goes
on until the Grpxx folder reaches 50 for that day.
When a microSD card is inserted, the DLG function block looks for the last Grpxx folder
and filexx.txt file, and proceeds to do the data logging based on that information.
The data logging function block lets a user program to write run-time global
values into the data logging file in microSD card.
DLG
Enable Status
TSEnable ErrorID
CfgId
IMPORTANT File access error will be returned during DLG function block execution
when card is full.
Figure 21 - Data Log Function Block Timing Diagram
Enable(1) Enable(1)
Enable(1)
Disable(0) Disable(0) Disable(0)
Error(3)
Succeed(2)
Busy(1) Busy(1)
Status(0)
Idle(0)
Idle(0) Idle(0)
Table 46 - Supported Data Types for Data Log and Recipe Function Blocks
Data Type Description Example Format in Output Data Log File
Logical Boolean with values 0: FALSE
BOOL(1) TRUE and FALSE 1: TRUE)
SINT Signed 8-bit integer value -128, 127
INT Signed 16-bit integer value -32768, 32767
DINT Signed 32-bit integer value -2147483648, 2147483647
LINT Signed 64-bit integer value -9223372036854775808, 9223372036854775807
USINT(BYTE) Unsigned 8-bit integer value 0, 255
UINT(WORD) Unsigned 16-bit integer value 0, 65535
UDINT(DWORD) Unsigned 32-bit integer value 0, 4294967295
ULINT(LWORD) Unsigned 64-bit integer value 0, 18446744073709551615
REAL 32-bit floating point value -3.40282347E+38, +3.40282347E+38
LREAL 64-bit floating point value -1.7976931348623157E+308, +1.7976931348623157E+308
character string
STRING(2) (1 byte per character) '"Rotation Speed"
1234567
Unsigned 32-bit
DATE(1) integer value (Date variables are stored as 32-bit words, a positive number
of seconds beginning at 1970-01-01 at midnight GMT.)
1234567
Unsigned 32-bit
TIME(1) integer value (Time variables are stored as 32-bit words, positive number
of milliseconds).
(1) BOOL, DATE, TIME data variables are presented in decimal digital format in the microSD Card. You have the option to convert
this format to a more friendly format. For example, use ANY_TO_STRING function block to convert BOOL data type (0, 1) to
FALSE or TRUE. You can similarly do the same for DATE and TIME data types.
DATE data type is presented in differential decimal digital value between system baseline time (1970/01/01,00:00:00) and
current date value. Unit is millisecond.
Time should be absolute time value. Unit is second.
(2) String data variables are enclosed in double quotation marks in the data log file.
The example below shows DSET1 using string variables and DSET2 using integers.
Time (msec)
2750 2692.22
2545.918367
2250 Average write time per
1972.9 data log including all
overheads
Time (msec)
2900
2400
Average write time per
data log including all
overheads
1900
Recipe Micro800 controllers support the Recipe feature and allows users to store and
load a list of data to and/or from recipe data files using the RCP instruction. It
also allows users to download, upload, and delete Recipe data on the microSD
card through the Connected Components Workbench software.
It also creates 10 subdirectories for each recipe set with a name following the CfgID
input value (1…10). If the CfgID value is 1, then the subfolder Rcp_Id01 is created.
Recipe files are then created/written into the folder, with file names that correspond
to the input value of RcpName parameter for the RCP function block, as configured in
the Connected Components Workbench software. Each Recipe set can contain up to
50 recipe files or variations. Filenames for recipe files should not exceed 30
characters.
You can retrieve recipe files from the microSD card using a card reader or by
uploading and downloading the recipe sets through the Connected
Components Workbench software.
The RCP function block allows a user program to read variable values from an
existing recipe data file that is in the recipe folder of the microSD card and
update run-time global or local variable values in the controller. The RCP
function block also allows the user program to write run-time global or local
variable values from smaller controller into the recipe data file in the
microSD card.
RCP
Enable Status
RWFlag ErrorID
CfgId
RcpName
2 RCP_ERR_DATAFILE_FULL Recipe files exceed maximum number of files per recipe set
folder.
3 RCP_ERR_DATAFILE_ACCESS Error to access recipe data file in microSD card.
4 RCP_ERR_CFG_ABSENT Recipe configuration file is absent.
5 RCP_ERR_CFG_ID Configure ID is absent in recipe configuration file.
The Recipe operation resource linked to this Recipe ID is used
6 RCP_ERR_RESOURCE_BUSY by another function block operation.
7 RCP_ERR_CFG_FORMAT Recipe configuration file format is invalid.
8 RCP_ERR_RESERVED Reserved.
9 RCP_ERR_UNKNOWN Unspecified error has occurred.
10 RCP_ERR_DATAFILE_NAME Recipe data file name is invalid.
11 RCP_ERR_DATAFOLDER_INVALID Recipe dataset folder is invalid.
12 RCP_ERR_DATAFILE_ABSENT Recipe data file is absent.
13 RCP_ERR_DATAFILE_FORMAT Recipe data file contents are wrong.
14 RCP_ERR_DATAFILE_SIZE Recipe data file size is too big (>4K).
IMPORTANT File access error will be returned during RCP function block execution
when card is full.
Enable(1) Enable(1)
Enable(1)
Disable(0) Disable(0) Disable(0)
Error(3)
Succeed(2)
Busy(1) Busy(1)
Status(0)
Idle(0)
Idle(0) Idle(0)
Quickstart Projects for Data The following sample quickstart projects provide step-by-step instructions on
Log and Recipe Function how to use the Data Log and Recipe function blocks in the Connected
Components Workbench software to generate and manage your recipe files
Blocks and data logs.
Local Variables
Variable Name Data Type
data_bool BOOL
data_int8 INT
data_string STRING
Local Variables
Variable Name Data Type
EnDlg BOOL
cfg_id USINT
data_time_enable BOOL
error UDINT
status USINT
data_bool BOOL
data_int8 INT
data_string STRING
7. Assign the variables to the DLG input and output parameters as follows:
Note: For CfgID input parameter, you can choose a predefined variable by
choosing from the Defined Words in the Connected Components Workbench
software. To do so, click the CfgID input box. From the Variable Selector
window that appears, click the Defined Words tab and choose from the list of
defined words. For example, DSET1 that corresponds to DSET1 in your recipe
configuration. See Figure 23.
After configuring data log properties, build the program and download to the
controller.
Execute the DLG function block. Notice the Status output go from 0 (Idle) to
1 (Enable), and 2 (Succeed).
You can retrieve data log files from the microSD card using a card reader or by
uploading the data logs through the Connected Components Workbench
software.
1. To use the Upload feature, go to the Properties section of your project in
the Connected Components Workbench software.
2. Select Data Log. Click Manage and then choose Upload.
IMPORTANT The Manage button is not available in DEBUG mode. You need to stop
DEBUG mode to use the Manage button to upload data log files.
Uploading data log files in PROGRAM mode is recommended for
performance and file locking reasons.
3. From the Upload window that appears, select the date of the data log files
that you would like to upload. You can upload data logs for the entire
month by clicking Whole Month option button.
4. If the file already exists in your destination folder, select whether you
would like to Overwrite file, Skip file, or Preserve both files.
5. Click Upload. The progress bar should tell you whether the upload is
successful or not.
IMPORTANT Do not take out the microSD card from the slot while data is being
written or retrieved from the card. Ongoing write and retrieval
operations are indicated by a flashing SD status LED.
IMPORTANT For better data log file management, you can use a third-party tool or
DOS CMD to merge all your data log files into a single file and import as a
CSV file in Excel®.
Configure Recipe
Configure Recipe
1. In the Connected Components Workbench software, go to the Properties
pane to configure Recipe.
2. Select Recipe. Click Add Recipe to add a recipe. Note that each recipe will
be stored in separate files. You can add up to 10 recipes per
configuration.
3. Click Add Variable to add variables to the recipe. You can add up to 128
variables to each recipe.
For this quickstart sample project, add the following variables that you
have previously created to RCP 1:
Local Variables
Variable Name Data Type
data_bool BOOL
data_int8 INT
5. On the Block Selector window that appears, type RCP to filter the Recipe
function block from the list of available function blocks. Click OK.
Local Variables
Variable Name Data Type
recipe_file STRING
recipe_file2 STRING
cfg_id2 USINT
read BOOL
write BOOL
9. Assign the variables to the RCP input and output parameters as follows:
Rung 2
Rung 3
Note: For CfgID input parameter, you can choose a predefined variable by
choosing from the Defined Words in the Connected Components Workbench
software. To do so, click the CfgID input box. From the Variable Selector
window that appears, click the Defined Words tab and choose from the list of
defined words. For example, RCP1 that corresponds to RCP1 in your recipe
configuration. See Figure 24.
After configuring Recipe, build the program and download to the controller.
Execute the RCP function block. Notice the Status output go from 0 (Idle) to
1 (Enable), and 2 (Succeed).
You can retrieve recipe files from the microSD card using a card reader or by
uploading the recipe files through the Connected Components Workbench
software.
1. To use the Upload feature, go to the Properties section of your project in
the Connected Components Workbench software.
2. Select Recipe. Click Manage and then choose Upload.
Through Manage, you can also choose to Download and Delete recipe
files.
3. From the Upload window that appears, select the batch of recipe files
that you would like to upload.
4. If the file already exists in your destination folder, select whether you
would like to Overwrite file, Skip file, or Preserve both Files.
5. Click Upload. The progress bar should tell you whether the upload is
successful or not.
IMPORTANT Do not remove the microSD card from the slot while data is being written
or retrieved from the card. Ongoing write and retrieval operations are
indicated by a flashing SD status LED.
Notes:
Modbus Mapping All Micro800 controllers (except the Micro810 12-point models) support
Modbus RTU over a serial port through the embedded, non-isolated serial port.
The 2080-SERIALISOL isolated serial port plug-in module also supports
Modbus RTU. Both Modbus RTU master and slave are supported. Although
performance may be affected by the program scan time, the 48-point
controllers can support up to six serial ports (one embedded and five plug-ins),
and so consequently, six separate Modbus networks.
Endian Configuration
The embedded serial port is targeted for use with HMIs using Modbus RTU.
The maximum recommended cable distance is 3 meters. Use the 2080-
SERIALISOL serial port plug-in module if longer distances or more noise
immunity is needed.
The HMI is typically configured for Master and the Micro800 embedded serial
port is configured for Slave.
From the default Communications Settings for a PanelView 800 HMI (PV800),
there are three items that must be checked or modified in order to set up
communications from PV800 to Micro800.
2. Set the Address of Micro800 slave to match the serial port configuration
for the controller.
Table 52 - Parameters
Parameter Number
Parameter Name
4M 4 40 40P 400 400N 400P
Start Source P106 P36
Speed Reference P108 P38
Comm Data Rate C302 A103 C103
Comm Node Addr C303 A104 C104
Comm Loss Action C304 A105 C105
Comm Loss Time C305 A106 C106
Comm Format C306 A107 C102
7. From the Parameter window, change the following Parameters to set the
communications for Modbus RTU so that the PowerFlex 4M Drive
communicates with Micro830/850/870 via Modbus RTU communication.
9. Turn off the power to the drive until the PowerFlex 4M display blanks out
completely, then restore power to the PowerFlex 4M.
The drive is now ready to be controlled by Modbus RTU communication
commands initiated from the Micro830/850/870 controller.
For example, the Logic Command word is located at address 8192, but your
Micro800 program needs to use 8193 (8192+1) to access it.
See the respective PowerFlex 4-Class drive User Manual for additional
information about Modbus addressing. See Appendix E – Modbus RTU
Protocol, on publication 22C-UM001.
Performance
Quickstarts
This chapter covers some common tasks and quickstart instructions that are
aimed to make you familiar with the Connected Component Workbench
software. The following quickstarts are included:
Topic Page
Flash Upgrade Your Micro800 Firmware 257
Establish Communications Between RSLinx and a Micro830/Micro850/ 262
Micro870 Controller through USB
Configure Controller Password 267
Use the High-Speed Counter 270
Forcing I/Os 280
Use Run Mode Change 282
Flash Upgrade Your This quick start will show you how to flash update the firmware for a Micro800
Micro800 Firmware controller using Connected Components Workbench software version 10 or
later.
The procedure to flash update the controller is similar for both options.
IMPORTANT If you have forgotten the password for the controller, use the Reset
option to clear the password.
On Micro850 and Micro870 controllers, users can use flash update their
controllers through the Ethernet port, in addition to the USB.
IMPORTANT To successfully flash update your controller over USB, connect only one
controller to your computer, and do not perform the flash update in a
virtual machine such as VMware.
IMPORTANT Flash update over USB using FactoryTalk Linx software with a 32-bit
operating system is not supported. Use either a 64-bit operating system
or RSLinx Classic software.
2. If your project does not have a connection path to the controller, the
Connection Browser dialog appears. Select your controller, then click
OK.
If the desired firmware revision is not shown in the drop-down list, you
can download that firmware revision by clicking the “Get the firmware
files online” link.
You can also change the Connection Path by clicking the “Change” link.
4. When you have confirmed the settings, click Update to begin flash
updating the controller.
The update progress is shown in the dialog box.
5. After the update is completed, the status is shown in the dialog box.
IMPORTANT After control flashing the controller, some microSD cards may not be
detected. Remove and insert the microSD card, or power cycle the
controller if this issue is encountered.
3. Select the drive letter that points to the microSD card on your computer
from the pull-down list.
You can check the drive letter by looking in Windows® Explorer. For this
example, the microSD card uses the drive letter “G”.
5. Select the firmware revision you want to flash your Micro800 controller
with.
The list of firmware revisions are installed together with the Connected
Components Workbench software. If you require a revision that is not
listed, download the firmware from the Product Compatibility and
Download Center (PCDC) at rok.auto/pcdc and install the included
ControlFLASH kit.
7. Close the SD Card Utility and proceed to the next step to edit the
ConfigMeFirst.txt file.
To flash upgrade the controller with the firmware that you have transferred to
the microSD card, you need to edit the ConfigMeFirst.txt file with the settings
listed below. These settings must be added at the beginning of the file.
After you have edited the file, insert the microSD card into the controller.
Power cycle the controller and the flash upgrade process will begin. Note that
the SD status LED will not blink when flash upgrading the firmware from the
microSD card is in progress.
For a list of firmware and series compatibility, see the release notes for
firmware revision 11.011 or later, on the Product Compatibility and Download
Center (PCDC) at rok.auto/pcdc.
Establish Communications This quick start shows you how to get RSLinx® RSWho to communicate with a
Between RSLinx and a Micro830, Micro850, or Micro870 controller through USB. Micro830,
Micro850, and Micro870 controllers use the AB_VBP-x driver.
Micro830/Micro850/
Micro870 Controller RSLinx Classic is installed as part of the Connected Components Workbench
through USB software installation process. The minimum version of RSLinx Classic with full
Micro800 controller support is 2.57, build 15 (released March 2011).
Configure Controller Set, change, and clear the password on a target controller through the
Password Connected Components Workbench software.
IMPORTANT After creating or changing the controller password, you need to power
down the controller in order for the password to be saved.
5. Click OK.
Once a password is created, any new sessions that try to connect to the
controller will have to supply the password to gain exclusive access to the
target controller.
Change Password
8. Click OK.
The controller requires the new password to grant access to any new session.
Clear Password
With an authorized session, you can clear the password on a target controller
through the Connected Components Workbench software.
1. On the Device Details toolbar, click Secure. Select Clear Password.
Use the High-Speed Counter To use a HSC device, you first need to establish the HSC counting mode
required by your application. See HSC Mode (HSCAPP.HSCMode) on page 189
for available modes on Micro800 controllers.
The following sample project guides you through the creation of a project that
uses HSC mode 6, a quadrature counter with phased inputs A and B. It shows
you how to write a simple ladder program with the HSC function block, create
variables, and assign variables and values to your function block. It also guides
you through a step-by-step process on how test your program, and enable a
Programmable Light Switch (PLS).
A
Input 0
B
1 2 3 2 1
Count
(1) The HSC module is supported on all Micro830, Micro850, and Micro870 controllers, except
on 2080-LCxx-xxAWB types.
Rockwell Automation Publication 2080-UM002M-EN-E - April 2022 271
Appendix B Quickstarts
5. Double-click the Direct Contact you have just added to bring up the
Variable Selector dialog. Click I/O Micro830 tab. Assign the Direct
Contact to input 5 by selecting _IO_EM_DI_05. Click OK.
After adding the variables, your Local Variables table should look like
this:
Next, you need to assign values to the variables you have just created. Typically,
a routine is used to assign values to your variables. For illustration purposes,
this quickstart assigns values through the Initial Value column of the Local
Variables table.
IMPORTANT MyAppData variable has subvariables that determine the settings of the
counter. It is crucial to know each one in order to determine how the
counter will perform. A quick summary is provided below but you can
also see HSC APP Data Structure on page 187 for detailed information.
If ID 0 is used, ID 1 cannot be used on the same controller since the inputs are
being used by the Reset and Hold.
Modes 1, 3, 5, 7, and 9 will only work when an ID of 0, 2, or 4 is set due to the fact
that these modes use reset and hold. Modes 0, 2, 4, 6, and 8 will work on any ID.
Modes 6…9 will only work when an encoder is connected to the controller. Use
the HSC ID chart as a reference to wire the encoder to the controller.
Variable
Thus, in our example, we first set the Output Mask to a decimal value of 3
which, when converted to binary, is equal to 0011. This means that now outputs
O0 and O1 can be turned On/Off.
2. Next, click the Micro830 controller under the Project Organizer pane to
bring up the Micro830 Controller Properties pane. Under Controller
Properties, click Embedded I/O. Set the input filters to a correct value
depending on the characteristics of your encoder.
Now that we are on debug mode we can see the values of the HSC output.
The HSC function block has two outputs, one is the STS (MyStatus) and
the other is the HSCSTS (MyInfo).
2. Double-click the Direct Contact labeled _IO_EM_DI_05 to bring up the
Variable Monitoring window.
3. Click the I/O Micro830 tab. Select the _IO_EM_DI_05 row. Check the
boxes Lock and Logical Value so that this input will be forced in the ON
position.
4. Click the Local Variables tab to see any real time changes being made to
the variables. Expand the MyAppData and MyInfo variable list by
clicking the + sign.
5. Turn On the encoder to see the counter count up/down. For example, if
the encoder is attached to a motor shaft then turn on the motor to trigger
the HSC count. The counter value will be displayed on
MyInfo.Accumulator. MyStatus variable should display a Logical Value
of 1, which means that the HSC is running.
See HSC Function Block Status Codes on page 204 for the complete list
of status codes. For example, if the MyStatus value is 04, a configuration
error exists and the controller will fault. You need to check your
parameters in this case.
For this example, once the Accumulator reaches a High Preset value of 40,
output 0 turns on, and the HPReached flag turns on. Once the Accumulator
reaches a Low Preset value of -40, output 1 turns on and the LPReached flag
turns on as well.
The Programmable Limit Switch function allows you to configure the High-
Speed Counter to operate as a PLS (programmable limit switch) or rotary cam
switch. The PLS is used when you need more than one pair of high and low
presets (up to 255 pairs of high and low presets are supported by the PLS).
1. Start a new project following the same steps and values as the previous
project. Set the values for the following variables as follows:
• HSCAPP.PlsEnable variable should be set to TRUE.
• Set a value only for UFSetting and OFSetting (OutputMask is optional
depending if an output is to be set or not). Your new values should
follow the example in Figure 27:
Once again, your High Presets should be set lower than the OFSetting
and the Low Preset should be greater than the UFSetting. The
HscHPOutPut and HscLPOutPut values will determine which outputs
will be turned on when a High Preset or Low Preset is reached.
2. You can now build and download the program into the controller then
debug and test it following the instructions for the last project.
Forcing I/Os Inputs are logically forced. Status indicators do not show forced values, but the
inputs in the user program are forced.
Forcing is only possible with I/O and does not apply to user-defined variables
and non-I/O variables, and special functions such as HSC and Motion that
execute independently from the User Program scan. For example, for motion,
Drive Ready input cannot be forced.
Unlike inputs, outputs are physically forced. Status indicators do show forced
values and the user program does not use forced values.
HSC
User Program
Normal
Variables
Motion
In many cases, the front of the controller is not visible to the operator and the
Connected Components Workbench software is not online with the controller.
If you want the force status to be visible to the operator, then the User Program
must read the force status using the SYS_INFO function block and then
display the force status on something that the operator can see, such as the
human machine interface (HMI), or stack light. Figure 29 is an example
program in Structured Text.
If the front of the controller is visible, and not blocked by the cabinet enclosure,
Micro830, Micro850, and Micro870 controllers have a Force LED indicator.
After a controller is power cycled, all I/O forces are cleared from memory.
Use Run Mode Change Run Mode Change allows the user to make small changes to the logic of a
running project and immediately testing it out on the controller, without
having to go into Program mode or disconnecting from the controller.
IMPORTANT The following requirements must be met to use Run Mode Change:
• Micro820/Micro830/Micro850 controller firmware revision 8 or higher,
and
• Connected Components Workbench Developer Edition software, version 8
or higher.
The following sample project guides you through the creation of a simple
application for a Micro850 controller without any plug-in modules, and how to
use the Run Mode Change feature.
Run Mode Change Test Logic Changes Accept Changes Undo Changes
If you add a new variable during RMC, external data access and changing
the access type (default is Read/Write) of this new variable is not
available until you have chosen to Accept or Undo the Test Logic changes.
2. From the Toolbox, double-click Instruction Block to add it to the rung, or
drag and drop Instruction Block onto the rung.
5. Click the Test Logic Changes icon to build the project and download
it to the controller.
6. The controller will automatically go into Debug mode and display the
updated project.
7. You can now choose to either Undo or Accept the changes to the project.
Notes:
User Interrupts
Interrupts allow you to interrupt your program based on defined events. This
chapter contains information about using interrupts, the interrupt
instructions, and interrupt configuration. The chapter covers the following
topics:
Topic Page
Information About Using Interrupts 289
User Interrupt Instructions 292
Using the Selectable Timed Interrupt (STI) Function 297
Selectable Time Interrupt (STI) Function Configuration and Status 298
Using the Event Input Interrupt (EII) Function 299
For more information on HSC Interrupt, see Use the High-Speed Counter and
Programmable Limit Switch on page 183.
Information About Using The purpose of this section is to explain some fundamental properties of the
Interrupts User Interrupts, including:
• What is an interrupt?
• When can the controller operation be interrupted?
• Priority of User Interrupts
• Interrupt Configuration
• User Fault Routine
What is an Interrupt?
An interrupt must be configured and enabled to execute. When any one of the
interrupts is configured (and enabled) and subsequently occurs, the user
program:
rung 275
When multiple interrupts occur, the interrupts are serviced based on their
individual priority.
When an interrupt occurs and another interrupt(s) has already occurred but
has not been serviced, the new interrupt is scheduled for execution based on
its priority relative to the other pending interrupts. At the next point in time
when an interrupt can be serviced, all the interrupts are executed in the
sequence of highest priority to lowest priority.
User interrupts can be configured and set as AutoStart from the Interrupts
window.
The user fault routine gives you the option of doing the cleanup before a
controller shutdown, when a specific user fault occurs. The fault routine is
executed when any user fault occurs. The fault routine is not executed for non-
user faults.
The controller goes to Fault mode after a User Fault Routine is executed, and
the User Program execution stops.
The STIS instruction can be used to start and stop the STI function or to
change the time interval between STI user interrupts. The STI instruction has
two operands:
• IRQType — This is the STI ID that a user wants to drive.
• SetPoint — This is the amount of time (in milliseconds) which must
expire prior to executing the selectable timed user interrupt. A value of
zero disables the STI function. The time range is from 0…65,535
milliseconds.
The STIS instruction applies the specified set point to the STI function as
follows (STI0 is used here as an example):
• If a zero set point is specified, the STI is disabled and STI0.Enable is
cleared (0).
• If the STI is disabled (not timing) and a value greater than 0 is entered
into the set point, the STI starts timing to the new set point and
STI0.Enable is set (1).
• If the STI is currently timing and the set point is changed, the new
setting takes effect immediately, restarting from zero. The STI continues
to time until it reaches the new set point.
The UID instruction is used to disable selected user interrupts. The table below
shows the types of interrupts with their corresponding disable bits:
To disable interrupt(s):
1. Select which interrupts you want to disable.
2. Find the Decimal Value for the interrupt(s) you selected.
3. Add the Decimal Values if you selected more than one type of interrupt.
4. Enter the sum into the UID instruction.
The UIE instruction is used to enable selected user interrupts. The table below
shows the types of interrupts with their corresponding enable bits:
To enable interrupt(s):
1. Select which interrupts you want to enable.
2. Find the Decimal Value for the interrupt(s) you selected.
3. Add the Decimal Values if you selected more than one type of interrupt.
4. Enter the sum into the UIE instruction.
The UIF instruction is used to flush (remove pending interrupts from the
system) selected user interrupts. The table below shows the types of interrupts
with their corresponding flush bits:
To flush interrupt(s):
1. Select which interrupts you want to flush.
2. Find the Decimal Value for the interrupt(s) you selected.
3. Add the Decimal Values if you selected more than one type of interrupt.
4. Enter the sum into the UIF instruction.
This C function clears Interrupt Lost bit for the selected User Interrupt(s).
Using the Selectable Timed Configure the STI function from the Interrupt Configuration window.
Interrupt (STI) Function
Selectable Time Interrupt This section covers the configuration and status management of the STI
(STI) Function function.
Configuration and Status
STI Function Configuration
This is the name of the Program Organizational Unit (POU) which is executed
immediately when this STI Interrupt occurs. You can choose any pre-
programmed POU from the drop-down list.
The AS (Auto Start) is a control bit that can be used in the control program. The
auto start bit is configured with the programming device and stored as part of
the user program. The auto start bit automatically sets the STI Timed Interrupt
Enable (STI0.Enabled) bit when the controller enters any executing mode.
The minimum value cannot be less than the time required to scan the STI
POUplus the Interrupt Latency.
STI Function status bits can be monitored either in the User Program, or in the
Connected Components Workbench software, in Debug mode.
The EX (User Interrupt Executing) bit is set whenever the STI mechanism
completes timing and the controller is scanning the STI POU. The EX bit is
cleared when the controller completes processing the STI subroutine.
The STI EX bit can be used in the control program as conditional logic to detect
if an STI interrupt is executing.
The User Interrupt Enable bit is used to indicate STI enable or disable status.
The LS is a status flag that indicates an interrupt was lost. The controller can
process 1 active and maintain up to 1 pending user interrupt conditions before
it sets the lost bit.
This bit is set by the controller. It is up to the control program to utilize, track,
the lost condition if necessary.
The PE is a status flag that represents an interrupt is pending. This status bit
can be monitored or used for logic purposes in the control program if you need
to determine when a subroutine cannot execute immediately.
This bit is automatically set and cleared by the controller. The controller can
process 1 active and maintain up to 1 pending user interrupt conditions before
it sets the lost bit.
Using the Event Input The EII (Event Input Interrupt) is a feature that allows the user to scan a
Interrupt (EII) Function specific POU when an input condition is detected from a field device.
Configure EII Input Edge from the Embedded I/O configuration window.
This is the name of the Program Organizational Unit (POU) which is executed
immediately when this EII Interrupt occurs. You can choose any pre-
programmed POU from the drop-down list.
AS (Auto Start) is a control bit that can be used in the control program. The
auto start bit is configured with the programming device and stored as part of
the user program. The auto start bit automatically sets the Event User
Interrupt Enable bit when the controller enters any executing mode.
The IS (Input Select) parameter is used to configure each EII to a specific input
on the controller. Valid inputs are 0…N, where N is either 15, or the maximum
input ID, whichever is smaller.
EII Function status bits can be monitored either in the User Program, or in the
Connected Components Workbench software, in Debug mode.
The EX (User Interrupt Executing) bit is set whenever the EII mechanism
detects a valid input and the controller is scanning the EII POU. The EII
mechanism clears the EX bit when the controller completes its processing of
the EII subroutine.
The EII EX bit can be used in the control program as conditional logic to detect
if an EII interrupt is executing.
The Enabled (User Interrupt Enable) bit is used to indicate the EII enable or
disable status.
LS (User Interrupt Lost) is a status flag that represents an interrupt has been
lost. The controller can process 1 active and maintain up to 1 pending user
interrupt conditions before it sets the lost bit.
This bit is automatically set and cleared by the controller. The controller can
process 1 active and maintain up to 1 pending user interrupt conditions before
it sets the lost bit.
Notes:
Troubleshooting
1 1 1
2
3 2
4 2 3
3
5 4 4
6 5 5
6 6
7
7 7
Micro850 Controllers
1 1
8
8 9
9 2
2 3
3 4
4
5 5
6 6
7 7
Micro870 Controllers
24-point Controllers
8
9
2
3
4
5
6
Normal Operation
The POWER and RUN indicators are on. If a force condition is active, the
FORCE indicator turns on and remains on until all forces are removed.
Error Codes This section lists possible error codes for your controller, as well as
recommended actions for recovery. Information about the fault is stored in a
fault log, which can be accessed from the Diagnostics page in Connected
Components Workbench software. The fault log contains brief information
about the last fault, and detailed information about the last 10 non-recoverable
faults that occurred.
Fault Types
Retrieve a Fault Log You can retrieve a fault log for your controller by using the Connected
Components Workbench software, version 9 or later.
Controller Error Recovery Use the following error recovery model to help you diagnose software and
Model hardware problems in the micro controller. The model provides common
questions you might ask to help troubleshoot your system. See the
recommended pages within the model for further help.
Start
Is the Power No
LED on? Check the wiring.
Yes
No
Is fault recoverable? Power cycle the controller.
Yes
End
Calling Rockwell If you need to contact Rockwell Automation or local distributor for assistance,
Automation for Assistance it is helpful to obtain the following (prior to calling):
• controller type, series letter, revision letter, and firmware (FRN) number
of the controller
• controller indicator status
Notes:
The PID function block has parameter naming similar to RSLogix 500 and is
recommended for users who are already familiar with programming in
RSLogix 500. The IPIDCONTROLLER function block has the advantage of
supporting auto tune.
PID Function Block This function block diagram shows the arguments in the PID function block.
PID
Enable Active
PV CV
SP AbsoluteError
AutoManual Error
CVManual Error ID
CVMax
CVMin
Gains
Control
Llnit
The following table explains the arguments used in this function block.
Enable instruction.
Enable Input BOOL TRUE = Start execution with current input parameters.
FALSE = CV equals zero.
IPIDCONTROLLER Function This function block diagram shows the arguments in the IPIDCONTROLLER
Block function block.
IPIDCONTROLLER
EN ENO
Process Output
SetPoint AbsoluteError
FeedBack ATWarning
Auto OutGains
Initialize
Gains
AutoTune
ATParameters
The following table explains the arguments used in this function block.
During autotune, the controller will automatically set the process value to zero.
To autotune, perform the following steps:
1. Set the Initialize input to TRUE.
2. Set the AutoTune input to TRUE.
3. Wait for the Process input to stabilize or reach a steady state.
4. Note the temperature fluctuation of the process value.
5. Calculate deviation value with reference to the fluctuation. For example,
if the temperature stabilizes around 22 °C (72 °F) with a fluctuation of
21.7…22.5 °C (71…72.5 °F), the value of ‘ATParams.Deviation’ is:
22.5...21.7 72.5...71
For °C: = 0.4 For °F: = 0.75
2 2
The auto tune process begins when the ‘Initialize’ is set to FALSE (Step 7.) At
this moment, the control output increases by the amount of ‘Step’ and the
process waits for the process value to reach or exceeds ‘first peak’.
Once the process value reaches first peak, the control output reduces by the
amount of Step and waits for the process value to drop to the second peak.
Troubleshooting an You can tell what is going on behind the autotune process from the sequences
Autotune Process of control output. Here are some known sequences of control output and what
it means if autotune fails. For the ease of illustrating the sequence of control
output, we define:
• Load: 50
• Step: 20
Output Sequence 1: 50 → 70 → 30
Sequence Condition Autotune Result Action for Autotune Fail
Process value reached 'first peak' and 'second' Likely successful NA
peak in time
Output Sequence 2: 50 → 70 → 50
Sequence Condition Autotune Result Action for Autotune Fail
Process value not able to reach 'first peak' Likely unsuccessful Reduce Deviation or Increase Step
Output Sequence 3: 50 → 70 → 30 → 50
Sequence Condition Autotune Result Action for Autotune Fail
Process value not able to reach second peak Likely unsuccessful Increase Deviation or increase Step
Output Sequence 4: 50 → 70
Sequence Condition Autotune Result Action for Autotune Fail
Process value not able to reach First peak in Likely unsuccessful Increase ATDynamSet
time
Water Level
The illustration above shows a basic water level control system, to maintain a
preset water level in the tank. A solenoid valve is used to control incoming
water, filling the tank at a preset rate. Similarly, outflowing water is controlled
at a measurable rate.
Autotune of IPID can only work on first and second order systems.
flow of fluid from a tank, a motor with constant torque driving a disk flywheel
or an electric RC lead network. The energy storage element for these systems
are heat energy, potential energy, rotational kinetic energy and capacitive
storage energy, respectively.
This may be written in a standard form such as f(t) = dy/dt + y(t), where is
the system time constant, f is the forcing function and y is the system state
variable.
The illustration PID Code Sample shows sample code for controlling the PID
application example shown before. Developed using Function Block Diagrams,
it consists of a pre-defined function block, IPIDCONTROLLER, and four use-
defined function blocks. These four are:
• PID_OutputRegulator
This user-defined function block regulates the output of
IPIDCONTROLLER within a safe range to ensure that there is no
damage to the hardware used in the process.
System Loading
Example 1:
Derive Total Power for a 24-point Micro830 controller with two plug-ins.
Example 2:
Derive Total Power for a 48-point Micro850 controller, with 3 plug-ins, and
2085-IQ16 and 2085-IF4 expansion I/O modules attached.
Topic Page
DF1 Full-Duplex Protocol 325
DF1 Half-Duplex Protocol 326
Modem Control Line Operation 328
Configure DF1 Half-Duplex Parameters 330
Configure a Standard-Mode DF1 Half-Duplex Master Station 330
Configure a Message-based Mode DF1 Half-Duplex Master 334
Station
Configure a Slave Station 336
Configure Poll Timeout 337
Configure a Radio Modem Station 338
The following protocols are supported on the embedded serial port, including
any 2080-SERIALISOL plug-in module that is installed, on the newer Micro850
(2080-L50E) and Micro870 (2080-L70E) controllers.
• DF1 Full Duplex
• DF1 Half-Duplex Master/Slave
• DF1 Radio Modem
DF1 Full-Duplex Protocol DF1 Full-Duplex protocol provides a point-to-point connection between two
devices. DF1 Full-Duplex protocol combines data transparency (American
National Standards Institute ANSI – X3.28-1976 specification subcategory D1)
and 2-way simultaneous transmission with embedded responses
(subcategory F1).
The controller supports the DF1 Full-Duplex protocol via RS-232 connection to
external devices, such as computers, or other controllers that support DF1 Full-
Duplex.
DF1 support is achieved through the CIP serial interface in the Micro800
controllers.
CH0
Computer
Modem
CH0
Modem 1761-CBL-PM02 with null modem adapter
DF1 Half-Duplex Protocol DF1 Half-Duplex protocol is a multi-drop single master/multiple slave
network. DF1 Half-Duplex protocol supports data transparency (American
National Standards Institute ANSI – X3.28-1976 specification subcategory D1).
In contrast to DF1 Full-Duplex, communication takes place in one direction at
a time. You can use the RS-232/RS-485 port on the controller as both a Half-
Duplex programming port and a Half-Duplex peer-to-peer messaging port.
IMPORTANT Firmware revision 20 for Micro850 and Micro870 controllers does not
support the broadcast function in Half-Duplex Master. This feature will
be supported in a future firmware revision.
For radio modem connections, use DF1 Radio Modem protocol, especially if
store and forward capability is required.
Modem Control Line The following explains the operation of the Micro800 controllers when you
Operation configure the RS-232 serial port for the following applications.
DF1 Full-Duplex
When configured for DF1 full-duplex, the following control line operation
takes effect:
No Handshake Selected
No Handshake Selected
No Handshake Selected
RTS is only active during transmissions (and any programmed delays before
and after transmissions).
Transmissions require CTS to be active
No Handshake Selected
Configure DF1 Half-Duplex RTS Send Delay and RTS Off Delay
Parameters
Through your programming software, the parameters RTS Send Delay and
RTS Off Delay let you set how long RTS is on prior to transmission, as well as
how long to keep it on after transmission is complete. These parameters only
apply when you select half-duplex modem. For maximum communication
throughput, leave these parameters at zero.
For use with half-duplex modems that require extra time to turnaround or key-
up their transmitter even after they have activated CTS, the RTS Send Delay
specifies (in 20 millisecond increments) the amount of delay time after
activating RTS to wait before checking to see if CTS has been activated by the
modem. If CTS is not yet active, RTS remains active, and as long as CTS is
activated within one second, the transmission occurs. After one second, if CTS
is still not activated, then RTS is set inactive and the transmission is aborted.
For modems that do not supply a CTS signal but still require RTS to be raised
prior to transmission, jumper RTS to CTS and use the shortest delay possible
without losing reliable operation.
Certain modems will drop their carrier link when RTS is set inactive even
though the transmission has not quite been finished. The RTS Off Delay
parameter specifies in 20 millisecond increments the delay between when the
last serial character is sent to the modem and when RTS is deactivated. This
gives the modem extra time to transmit the last character of a packet.
ATTENTION: For almost all modem applications, the RTS Off Delay should be
left at 0. Never select an RTS Off Delay that is greater than the RTS Send Delay
in the other devices on the network, or you may incur two devices trying to
transmit simultaneously.
Configure a Standard-Mode Choose standard mode if you want to query slave stations for information
DF1 Half-Duplex Master based upon user-configured polling ranges. This mode is used most often in
general point-to-multipoint configurations.
Station
To configure the controller as a master station using standard-
communication, place the controller into program mode and follow the steps
below using your programming software:
The following table shows the parameters for configuring a Micro850 (2080-
L50E) or Micro870 (2080-L70E) controller as a master station using standard-
communication mode to talk to slave stations.
Table 75 - Configure a Micro800 Controller as a Master Using Standard-communication
Mode
Parameter Selections
Select a communication rate that all devices in your system support. Configure all
Baud Rate devices in the system for the same communication rate.
Parity provides additional message packet error detection. To implement even
Parity parity checking, choose Even. To implement no parity checking, choose None.
A node address identifies the controller on the DF1 half-duplex link. Each station
on a link must have a unique address. Choose an address between 010 and 25410.
Node Address Node address 25510 is the broadcast address, and cannot be selected as a
station’s individual address.
This parameter defines the mode in which the driver operates. Choose a method
appropriate for your system’s configuration:
• If you are not using a modem, choose NO HANDSHAKE.
Control Line • If the master modem is full duplex, choose FULL-DUPLEX (RTS ALWAYS ON).
• If all the modems in the system are half-duplex, choose HALF-DUPLEX WITHOUT
CONTINUOUS CARRIER (RTS/CTS).
See Modem Control Line Operation on page 328 for a description of the control
line operation settings.
With this selection, you choose how the controller checks the accuracy of each
DF1 packet transmission.
BCC: This algorithm provides a medium level of data security. It cannot detect:
– transposition of bytes during transmission of a packet
Error Detection – the insertion or deletion of data values of zero within a packet
CRC: This algorithm provides a higher level of data security.
Select an error detection method that all devices in your configuration can use.
When possible, choose CRC.
If you want to receive:
• only one message from a slave station per its turn, choose STANDARD (SINGLE
MESSAGE TRANSFER PER NODE SCAN). Choose this method only if it is critical to
Polling Mode keep the poll list scan time to a minimum.
• as many messages from a slave station as it has, choose STANDARD (MULTIPLE
MESSAGE TRANSFER PER NODE SCAN).
Duplicate Detect lets the controller detect if it has received a message that is a
duplicate of its most recent message from another station. If you choose
duplicate detect, the controller will acknowledge (ACK) the message but will not
act on it since it has already performed the message’s task when it received the
Duplicate Packet Detect command from the first message.
If you want to detect duplicate packets and discard them, check this parameter.
If you want to accept duplicate packets and execute them, leave this parameter
unchecked.
The amount of time, in 20 millisecond increments, that you want the controller to
wait for an acknowledgment to the message it has sent before the controller
ACK Timeout retries the message or the message errors out. This timeout value is also used for
the poll response timeout. See page G-332 for recommendations to minimize this
value.
The timeout must be long enough that after the master has transmitted the
last character of the poll packet, there is enough time for a slave to transmit
(and the master receive) a maximum-sized packet before the time expires.
Next, you need to determine the average slave program scan time. In
Connected Components Workbench software, double-click the controller
variables in the Controller Organizer and locate the system tag
_SYSVA_TCYCYCTIME in the Variable tab. For this example, assume the
program scan time is 20 ms. The program scan time varies by application.
Finally, you must determine the larger of two values, either the configured
slave RTS Send Delay or the turnaround time of the slave modem. The RTS
Send Delay time can be found by in the Configuration screen of the Micro800
embedded serial port. Note that the RTS Send Delay time is in intervals of 20
ms, so with a value of 3 in the box, the RTS Send Delay time would be 20 ms
multiplied by 3. Using this value (60 ms) for our example, and assuming that
the turnaround time of the modem is 50 ms (which will vary by modem), you
would choose to use the RTS Send Delay time of 60 ms for your calculation.
Having determined the maximum message transmission time (224 ms), the
average slave program scan time (20 ms) and the largest of either RTS Send
Delay (60 ms) or the modem turnaround time, the minimum ACK timeout is
simply the sum of these values.
Parameter Example Values (in ms)
Max Message Transmission Time 224
Average Program Scan Time 20
RTS Send Delay 60
Modem Turnaround Time 50
Calculated ACK Timeout 304 Use only the largest of these two values.
Round up to Nearest 20 ms 320
Configure a Message-based Choose message-based communication mode if you want to use MSG
Mode DF1 Half-Duplex instructions in user programming to communicate with one station at a time.
If your application uses satellite transmission or cellular transmission,
Master Station consider choosing message-based. Communication to a slave station can be
initiated on an as-needed basis.
With message-based mode, you do not have an active node file that you can use
to monitor station status. Also, you cannot implement slave station-to-slave
station messaging or slave programming.
Configure a Slave Station To choose the controller as a slave station, follow the steps below using your
programming software:
Configure Poll Timeout The Poll Timeout is only used when the DF1 half-duplex slave is initiating MSG
instructions in ladder logic. This implies that the Master is most likely
configured for Standard Polling Mode. The minimum Poll Timeout value is
dependent on the maximum Master poll scan rate. Since the Master’s polling
and the Slave’s triggering of a MSG instruction are asynchronous events, it is
possible that in the instant just after the slave was polled, the MSG instruction
gets triggered. This means the MSG instruction will remain queued-up for
transmission until the Master has polled every other slave first. Therefore, the
minimum Slave Serial port Poll Timeout value is equal to the maximum Master
poll scan rate rounded up to the next 20 ms increment.
Minimum Serial Port Poll Timeout = Maximum Master Scan Poll Rate
Configure a Radio Modem To configure a Micro800 controller channel 1 for DF1 Radio Modem, do the
Station following using your programming software:
Use the static method when you want to configure the Store and Forward
tables while the controller is offline. Use the dynamic method when you want
to configure the Store and Forward tables while the controller is in RUN mode.
The dynamic Store and Forward table occupies a BOOL array [0…255] or
DWORD array [0…7] data type. Each bit in this array corresponds to a DF1
Radio Modem node address.
In order to configure a Micro800 controller to Store and Forward message
packets between two other nodes, the bits corresponding to the addresses of
those two other nodes must be set. For instance, if node 2 is used to Store and
Forward message packets between nodes 1 and 3, then both Bit 1 and Bit 3
would have to be set in the Store and Forward table (see Figure 30).
IMPORTANT Once Store and Forward is enabled, duplicate packet detection is also
automatically enabled. Whenever Store and Forward is used within a
radio modem network, every node should have Store and Forward
enabled, even if all of the bits in the file are cleared, so that duplicate
packets will be ignored.
Figure 30 - Applying Store and Forward with DF1 Radio Modem Protocol
(2nd Rebroadcast) Note 4
REPLY 1 (1st Rebroadcast)
REPLY 1 Note 3
Note 1
CMD1 CMD 1
(1st Rebroadcast) (2nd Rebroadcast)
Note 2
Note 1 – The link layer of Node 1 blocks the re-transmission of a packet that is received with the SRC byte equal to the receiving node’s station
address. Packets received that originate from the receiving node should never be re-transmitted.
Note 2 – To prevent Node 2 from re-transmitting a duplicate packet, the link layer of Node 2 updates the duplicate packet table with the last 20
packets received.
Note 3 – The link layer of Node 4 blocks the re-transmission of a packet that is received with the SRC byte equal to the receiving node’s station
address. Packets received that originate from the receiving node should never be re-transmitted.
Note 4 – To prevent Node 3 from re-transmitting a duplicate packet, the link layer of Node 3 updates the duplicate packet table with the last 20
packets received.
Notes:
Symbols Communication
configuring DF1 radio modem station 339
__SYSVA_CYCLECNT 134 configuring slave station 336
__SYSVA_TCYCURRENT 134 communication connections 59, 75
__SYSVA_TCYMAXIMUM 134 communication protocols 59
DF1 Full-Duplex 325
DF1 Half-Duplex 326
Numerics Communication rate 331, 335, 336, 339
1761-CBL-PM02 65 communications
2080-PS120-240VAC 40 ports 59
2711P-CBL-EX04 22 ConfigMeFirst.txt
errors 226
configure
A DF1 radio modem communication 339
About Your Controller 23 Configuring 334
absolute home switch 141, 142 DF1 Half-Duplex Master
Message-based 334
Additional Resources 13
Standard Mode 330
Addressing Minimum Channel 0 ACK Timeout 332
defining 331, 335, 336 Minimum DF1 Half-Duplex Master 332
analog cable grounding 56 Minimum Master ACK Timeout 333
analog channel wiring guidelines 55 Poll Timeout 337
analog inputs Slave Station 336
Connected Components Workbench 13, 23, 133,
analog channel wiring guidelines 55
ASCII 59, 61, 66 137, 153, 215, 216, 217, 229, 235
configuration 70 connection limits 60
AutoTune 318 Control line 331, 335, 336, 339
axis 140 ControlFLASH 218
axis output controller
general rules 146 description 17
axis state diagram 153 grounding 50
axis state update 154 I/O wiring 55
minimizing electrical noise 55
axis states 153
preventing excessive heat 34
Controller Error Recovery Model 310
B controller load 135
Controller Mounting Dimensions 39
Baud rate 331, 335, 336, 339 controller password 213
BCC 331, 335, 337, 339
recover 217
before calling for assistance 311 controller security 213
CRC 331, 335, 337, 339
C
cables D
programming 21 data log 229, 230
serial port 21
data types 233
calling for assistance 311
directory structure 230
Checking if Forces (locks) are Enabled 281 execution rules 233
CIP Client Messaging 63 specifications 230
CIP communications pass-thru 64 timing diagram 232
CIP Serial 66 datasets 229, 230
CIP Serial Client/Server 59, 61 deceleration 145
CIP Serial Driver DF1 Full-Duplex
configure 66 Communication Diagnostics 339
CIP Symbolic Addressing 63 DF1 full-duplex driver 339
CIP Symbolic Client/Server 59, 62 DF1 Full-Duplex protocol
collision avoidance 122 description 325
using a modem 327
DF1 half-duplex driver 335, 336
T
time synchronization 123
timing diagrams
quadrature encoder 191
touch probe input switch 141, 142
troubleshooting 303
U
UID instruction 293
UIE instruction 294
UIF instruction 295
upper (Positive) Limit switch 141
upper (positive) limit switch 142
User Defined Function (UDF) 133, 137
User Defined Function Block (UDFB) 133, 137
user fault routine
creating a user fault routine 292
recoverable and non-recoverable faults 292
User Interrupt Configuration 291
user interrupt disable instruction 293
user interrupt enable instruction 294
user interrupt flush instruction 295
using emergency-stop switches 35
Using Interrupts 289
Using the High-Speed Counter and
Programmable Limit Switch 183
Using the Selectable Timed Interrupt (STI)
Function 297
V
validate IP address 72
variable retainment 137
velocity input 145
W
wiring diagrams 51
Wiring Examples 56
wiring recommendation 47
Wiring Your Controller 47
Notes:
Technical Support Center Find help with how-to videos, FAQs, chat, user forums, and product notification updates. rok.auto/support
Knowledgebase Access Knowledgebase articles. rok.auto/knowledgebase
Local Technical Support Phone Numbers Locate the telephone number for your country. rok.auto/phonesupport
Literature Library Find installation instructions, manuals, brochures, and technical data publications. rok.auto/literature
Product Compatibility and Download Center Download firmware, associated files (such as AOP, EDS, and DTM), and access product release rok.auto/pcdc
(PCDC) notes.
Documentation Feedback
Your comments help us serve your documentation needs better. If you have any suggestions on how to improve our
content, complete the form at rok.auto/docfeedback.
At the end of life, this equipment should be collected separately from any unsorted municipal waste.
Rockwell Automation maintains current product environmental information on its website at rok.auto/pec.
Allen-Bradley, CompactBlock LDX I/O, CompactLogix, Connected Components Workbench, ControlFLASH, ControlLogix, Data-Set, DH+, expanding human possibility, FactoryTalk, FactoryTalk Linx,
FactoryTalk Linx Gateway, Kinetix, Micro800, Micro810, Micro820, Micro830, Micro850, Micro870, PanelView Component, PanelView Plus, PartnerNetwork, PowerFlex, Rockwell Automation,
RSLinx, RSLinx Classic, RSLogix 500, and TechConnect are trademarks of Rockwell Automation, Inc.
CIP, DeviceNet, and EtherNet/IP are trademarks of ODVA, Inc.
Excel, Microsoft, Visual Studio, and Windows are trademarks of Microsoft Corporation.
microSD is a trademark of SD-3C.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
Rockwell Otomasyon Ticaret A.Ş. Kar Plaza İş Merkezi E Blok Kat:6 34752, İçerenkÖy, İstanbul, Tel: +90 (216) 5698400 EEE YÖnetmeliğine Uygundur