Skip to main content

Posts

MSB and LSB

We can control the parameters with better resolution owing to the MSB and LSB. The most significant bit is denoted by MSB, and the least important bit by LSB. The left-most bit in binary is known as the MSB, because it has the biggest impact on the number. For instance, 0011 would be the Most Significant 4 bits in the binary integer 0011 0101. 0101 would be the four least significant bits. The most significant bit (MSB) and least significant bit (LSB) are mainly utilized in industrial automation for data interpretation, control logic implementation, and communication protocol setting (endianness). Reference : Morning Star
Recent 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.

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