Skip to main content

Posts

Data Type and Primary Data Type

Data Type and Primary Data Type You will see about that date types if you are from Factory and Industrial Automation or IT field. Many novice programmers have trouble comprehending a PLC's data type. The format of a variable or constant used in a program is referred to as its data type. Data Type is also known as Variable Type as well.  You need to have a thorough understanding of the different kinds of data that PLCs handle while working with them. because it has a direct impact on programming outcomes. A PLC, for instance, requires comparisons to be made using the same data type. It is equivalent to not being able to convert kilograms to meters and compare masses. There are two types of Date Type ; Primary Data Type and Secondary Data Type. But I will only explain about Primary Data Type. I provide the photos of information about them.
Recent posts

Analog Output in Mitsubishi FX3U PLC

Mitsubishi FX3U PLC has the analog output of voltage (0-10V) or current (4-20mA). It features a 12-bit resolution (0 to 4095). That 12-bit resolution means that this digital value is converted by the analog output module into a physical voltage or current signal based on the configuration. The PLC converts digital data with 12-bit resolution into physical voltage through a process called Digital to Analog Conversion. In short form, it is called DAC. In this case, the Register contact AI/AO (M8011) is used as a trigger to activate the WR3A instruction. WR3A uses to write the data to an analog output channel on an FX3U analog module. It is used to write analog values to an analog output channel connected to the FX3U PLC. Reference : Instrumentationtools

Mitsubishi PLC's Parameter Settings for Modbus Communication

The MOV instruction is also used to save the hexadecimal representation of the Baud Rate, Data Bits, Parity, Stop Bit, and Comm. Protocol parameters in the D8120 register, which is stored in Hexadecimal Number. The binary format 0100 0000 1000 0001 is equivalent to the Hexadecimal number , where each bit denotes a distinct communication configuration. So, how do we use it? For example, let's assume that our desired communication setting is : Data Length         : 7 bit  Parity                    : None Stop Bit                : 1 bit Baud Rate            : 9600 bps Comm. Protocol  : Modbus Slave Slave ID               : 1 Therefore, Our Binary Code will be 0100 0000 1000 0001. Remember! This Binary Code B0 to B15 is from Least Significant Bit to Most Significa...

4-20mA Formulas

As seen in the accompanying image, the voltage output of a 4–20 mA transmitter can be transformed to a specific range, from 0 to a maximal amplitude Vmax: I [mA] = ( ( (V − Vmin) / ( Vmax − Vmin) ) × 16 ) + 4 (Voltage to Current) V [Voltage] = ( (I − 4 ) / 16) × ( Vmax − Vmin ) + Vmin (Current to Voltage) PV [units] = ( (I − 4 ) / 16) × ( PVmax − PVmin ) + PVmin (Current to Process Variable) Where, I is the current. V is the voltage. PV is the Process Variable. min is the Lower Range Value of the respective signal. max is the Upper Range Value of the respective signal. Keep in mind that the min and max values and units must match. For Voltage to Current, As an illustration, The output voltage of an analog output card is 3V, and its total range is 0–6V. Determine the corresponding 4–20 mA current value. I = ( ( (V − Vmin) / ( Vmax − Vmin) ) × 16 ) + 4 I = ( ( (3 − 0) / ( 6 − 0) ) × 16 ) + 4 I = 12A Reference : Instrumentationtools

How to Read the PLC Datasheet?

A PLC's datasheet contains a wealth of information that covers nearly every feature the PLC is capable of offering. The technical specifications of the PLC, such as the supply voltage, input and output types, and power rating of these IO points, will be your main concern if you are the installation engineer. The historical data may not be as important to you if you are only a PLC programmer. Instead, you will concentrate on information about the PLC memory, the amount of IO available, and the ability to add new modules. The following details in the PLC data sheet must be examined, depending on the different manufacturers: - PLC Memory  - Current and Voltage Rating  - Addressing Various Blocks and Data Areas - Specifications for Inputs and Outputs - Interfaces and Protocols for Communication - The Ambient Situation Different PLCs will have different features and capabilities, hence different information will be displayed on different PLC data sheets. Depending on whether you ar...