What is Service Mode?
Service mode means that no task classes are running on the PLC. The application program is not running; the PLC is halted. There are three reasons why a PLC goes into service mode:
- The Reset button is pressed on the PLC
- The “Stop Target” command is sent from Automation Studio
- A critical error occurred at runtime
Points 1 & 2 are intentional actions by the user, so the reason for service mode is known. If a critical error occurs on the PLC which sends it into service mode (point 3), then the error will be entered in the logbook. The purpose of this document is to show you how to obtain the log file so that the reason for unexpected service mode can be determined.
Steps to Obtain the Log File
There are three options to obtain the log file which do not require the B&R Automation Studio software:
B&R Service Utility
This method should be used if your only option is to establish a serial connection (RS232) to the PLC. This utility is only supported in Windows XP and Windows 7. This is the preferred method if the PLC was programmed around or before roughly the year 2010.
System Diagnostics Manager
This method should be used if you are able to establish an Ethernet connection to the PLC. You must know the IP address of the PLC in order to access the System Diagnostics Manager. The PLC must be SG4 (CPU with an Intel processor) and it must be running Automation Runtime 3.0 or higher.
CF / CFast card
If your PLC has a CF or CFast card and it is running ARembedded, then you can obtain the logbook directly from the card. This method requires a CF or CFast card reader, which can be purchased at any general electronics store. This method is useful if you are having trouble establishing a serial or Ethernet connection to the PLC.
B&R Service Utility
Here are the steps to obtain the log file via an RS232 connection and the B&R Service Utility:
-
Download the B&R Service Utility from the following link:
BR Service Utility | B&R Industrial Automation -
Install the Visual Studio 2008 (VC++ 9.0) SP1 Redistributable Package X86 Architecture from
Microsoft from the following link. Make sure to restart your laptop after installing this package.
Latest supported Visual C++ Redistributable downloads | Microsoft Learn -
Make or acquire an RS232 serial cable (null-modem). The required pinout is shown below.
-
Run the B&R Service Utility (brServiceUtility_v14.exe).
-
Click OK to the initial pop-up:
-
Set the connection type to “Serial” (this is the default value) and click OK:
-
Select the COM port of your serial port or USB-to-serial adaptor. The COM port in use can be foundin the Device Manager.
-
Select “Save Error Logbook” (this is the default value) and click OK.
-
Choose a download location. Note that the folder that you save the logbook to must already exist (you cannot create a new folder with this window). Also be sure to include the trailing backslash.
-
Choose a file format for the log file and click OK.
-
Send the resulting log file to your local B&R Support Team.
System Diagnostics Manager
The System Diagnostics Manager (SDM) is an integrated web server which contains a plethora of diagnostic information about the PLC. There is a feature called the System Dump which collects all of the data (including the log file) into one file. The System Dump is available starting with AR V3.08. Here are the steps to access the SDM and get the System Dump:
-
Identify the IP address of the PLC. If you don’t already know this information, contact the OEM or see Determining a PLC's IP Address using Wireshark.
-
Set the IP address of the Ethernet port on your laptop to be unique and on the same subnet as the PLC. For example:
To check and/or change the IP address of the Ethernet port on your laptop, refer to the following article from Microsoft: Change TCP/IP settings - Microsoft Support
For example, in Windows 10:
-
Open a web browser (e.g. Google Chrome) and type the IP address of the PLC /sdm. For example ifthe IP address of the PLC is 192.168.1.15, then you would navigate in a browser to:
192.168.1.15/sdm
If you are unable to access the SDM in this step, then that either means that your Automation
Runtime version is too old or the SDM has been disabled on your PLC. In this case, obtain the log using one of the other methods described here. -
Click the System Dump icon in the middle:
-
Choose “Parameters + Data-Files” and click OK
-
Click OK on the subsequent pop-up.
-
Click “Upload from target”.
-
Send the resulting .tar.gz file to your local B&R Support Team.
Note: If your PLC is running a version of Automation Runtime greater than or equal to V3.0 but less than V3.8, then you can access the System Diagnostics Manager but the System Dump will not be available. In this case, select the Logger tab and then click the “Upload from target” button to upload the arlogsys log file separately.
CF / CFast card
Here are the steps to get the log files directly from the CF / Cfast card:
-
If you don’t already have the Runtime Utility Center, download the PVI Development Center off of the B&R website from the following link:
PVI Development Setup | B&R Industrial Automation
Otherwise, skip to step 2. -
Open the Runtime Utility Center. You can find this on your Start menu under B&R Automation.
-
Select “Create, modify and execute projects (.pil)”
-
Go to “Tools” → “Back up files from Compact Flash / Image file…”
-
Select the CF card:
-
Wait for Runtime Utility Center to finish reading disk information:
-
Expand the contents of the disk as follows: DATA1 Partition → RPSHD → SYSROM
-
Within the SYSROM folder, select all entries which begin with a $. These correspond to the log files. (Note that you may not have all of the entries shown in the screenshot below.) Checking these boxes will automatically check the boxes of the parent folders DATA1 Partition, RPSHD, and SYSROM.
-
Browse for a location to save the files (for example, C:\LogFiles):
-
Click Start:
-
Once the files are saved, you will receive this pop-up:
-
Send the saved log files to your local B&R Support Team.