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 Significant Bit. If you still confuse about that you can see a figure that what I uploaded. After getting that Binary code, you need to convert from Binary Code to Hexadecimal Value. That will be H4081. After that it will be stored in D8120 Register. Slave ID 1 will be stored in D8121.
Reference : Instrumentationtools
#PLC #Mitsubishi #automation #industry #industrialautomation #factory #FactoryAutomation #engineering #engineering #Modbus #parameters #Communication #Control #binary #hexadecimal
Comments
Post a Comment