Program the ladder logic of your fault routine in the file you specify. You enter a program file number (3-255) to be used in all recoverable and non-recoverable major errors. This bit is set (1) when an attempt is made to process a string using an ASCII instruction that exceeds 82 characters in length. This bit is set whenever the input filter selection in the controller is made compatible with the hardware. It is updated only in the REM Run or REM Test modes.
This bit is cleared when the Battery Low LED is off. This bit is set whenever the Battery Low LED in on. This bit is set while processing a fault routine (due to a major error) another major error occurs. Major Error Executing User Fault Return S:5/3 If this bit is set, the error bit of a control word used by the instruction has been set. The LFU, LFL, FFU, FFL, BSL, BSR, SQO, SQC and SQL instructions are capable of generating this error. When this bit is set by the controller, it indicates that a mathematical overflow has occurred in the ladder program. If a major fault state exists, you must correct the condition causing the fault, and then clear the fault.
This bit is set by the controller any time a major error is encountered. When this bit is set and power is cycled while the controller is in the REM Run mode, the controller executes the user fault routine prior to the execution of the first scan of your program. The controller then attempts to enter the REM Run mode. When set, this bit causes the controller to clear the Major Error Halted bit S:1/13 and Minor error bits S:5/0 to S:5/7 on power up if the processor had previously been in the REM Run mode and had faulted. Below is a description of each bit but perhaps the most important one is the Error Description which will give you details about the PLC fault. There is a lot of great information on this tab to help you diagnose your problem. The "Goto Error" brings up the S2 - STATUS data files "Errors" tab. You can use this ASCII method to gather data for your own projects, or display messages for an operator if you have no other HMI.įor more information on the SLC-500, visit the category page.3. Undoubtedly, the project is working, and you are writing text back to the PC! I’ll set the communication type to Serial, set the com port, and adjust the baud rate to match Channel 0 configuration. I like to use PUTTY, but you could also use Hyper-Terminal, or other terminal that you are familiar with. I’ll hit the + or down arrow next to “Ports”. Obviously, we’ll go to Device Manager for that.
I do need to know the COM port the USB to serial bridge appears on though. In this case, I’ve connected a null modem cable from channel 0 of the processor to a USB to Serial adapter.
I’ll download my work, and go to run mode. Remember that our string length was 12 characters including 2 spaces. The data file we created as the source is ST10:0, and the control file is R6:0. We are writing out of Channel 0, which is the Serial Port. I intentionally placed a space after the last character, so the total characters are 12. Next, open the ST10 data file, and type “Hello World “. In this case, T4:8 and T4:9 are available. Likewise, check your T4 timer file usage, and add a timer if needed. If you have W’s and X’s, on all of your elements, just create a new element to use by going into the properties of the file. If your file looks like this, then the control element is not in use.
This will become a data file button when you are viewing usage.
We will also need a control element though, so open R6 to make sure we have a free control element. Right-Click the Data table folder, and create a new data table as follows:įor this exercise, one element will be enough.
In the SLC, we must be offline to create a data table. Create Data Tablesīefore we begin, we’ll drop offline. I’m just going to leave all the settings at default for example. Next, go to Channel 0 User Tab, and take note of the settings. Prepare Channel 0Īt this time, we’ll go to Channel Configuration, and on the “General” tab, set the mode to “User”. Be sure you are using Channel 1 to go online with a 5/03, 5/04, or 5/05 as we will use channel 0 for ASCII. Experimentation should not be done on running equipment. I’m just going to keep this lab simple, and we will write the text, “Hello World” to a PC.