INTs are used to store steps of a sequence, number of repetitions, setpoints and much more. Once created, the tag can be used in multiple instructions we’ve reviewed in previous tutorials: Mathematical (MOV, MUL, ADD, SUB, etc.), Comparison (EQU, LES, GRT, etc.) & many more. You’d create an INT just like you would a boolean. The structure within a PLC can be broken down into 16 distinct booleans which correlates to the fact that an integer is 16 bits. An INT, as the name suggests, is used to hold an integer. Creating & Understanding INTs and DINTsĪn INT and a DINT are the next structures we’ll explore. The second way is to create arrays of BOOLs as we will see in the last section.
![rslogix 500 espaol rslogix 500 espaol](https://demo.fdocuments.in/img/378x509/reader023/reader/2020111423/55cf993b550346d0339c4ba7/r-1.jpg)
The first way is to use individual booleans from within DINTs as we’ll see in the next section. It’s important to keep in mind that creating a large number of BOOLs can be done through different means. Most basic instructions such as the XIC, XIO and OTE utilize BOOLs. Note that the types listed here will include the default Allen Bradley as well as custom UDTs.Īs a beginner, you’ll be creating a lot of Boolean tags while programming. The workaround to make that happen would require the user to delete the tag and re-create it again.īy typing in the tag “Data Type”, a window is opened from which the user may choose the type of tag one wants to create. Note that once the tag is created online, it’s impossible to change the type. Through the tag creation tab, the data type is specified within the “Data Type” tab. A boolean is used for most basic instructions and to evaluate most logic within PLC programming.Īt the point of creating a tag through laying out logic or by using the tag creator, the user may specify the data type for the tag. The most fundamental programming block is a boolean which stores the value equal to 0 or 1. Booleans in PLC Programming – XIC, XIO, OTE Instructions
![rslogix 500 espaol rslogix 500 espaol](https://demo.vdocuments.net/img/378x509/reader019/reader/2020033109/5ab36f8c7f8b9abc2f8e9f26/r-1.jpg)
In this tutorial, we’re exploring the data structures that are at the base of PLC programming and go over the key usages of the booleans, integers and double integers. BOOLs, INTs, DINTs, SINTs as well as the arrays of those structures are at the core of every programming language, but aren’t fully understood by most PLC programmers. Working with the basic structures in ladder logic is straightforward for some, but challenging for many. We’ve had a lot of questions about the different PLC Data Types & Data Structures over the last few months.