Chapter 6: Serial Communications
6.7.1 – CLICK PLC Example Program (continued)
This rung manipulates the data retrieved (DH10) from the soft starter paramters P11 and P12.
Since each Modbus word actually has 2 values (1 in each byte), the data has to be manipulated to
put each relevant value in its' own register.
First, DH10 is loaded and the RSH instruction is performed to Shift the value to the right by 8 bits,
which moves the upper byte to the lower byte, and this is output to DH11 (P11 Pedestal).
Next, the LSH (Left Shift Register) instruction is used in the 2nd MATH box to reload the original
value in DH10, and move the lower byte to the upper byte (shifting left 8 bits), and we put the result
in DH12 as an intermediate step.
Finally, we load DH12 in the 3rd MATH box, and perform a RSH (Right Shift Register) instruction to
move the upper byte back to the lower byte, again, shifting 8 bits. Now the result is the bare lower
byte value from the original word and this result is output to DH13 as our final value.
To summarize, the original data is shifted to the right 8 bits, which moved our original upper byte to
the lower byte, and zeroed out the upper byte. This was the 1st MATH box. Then, the original
value is reloaded, moved to the left 8 bits, then moved to the right 8 bits. This zeroed out the
upper byte and resulted in the lower byte value. This took 2 MATH boxes. The values now reside
in DH11 and DH13.
Math
RSH ( DH10, 8h )
_Always_ON
b
SC1
P11 Pedestal
h
DH11
Result
Math
LSH ( DH10, 8h )
Intermediate
Calc
h
DH12
Result
16
Math
RSH ( DH12, 8h )
P12 SoftStart
Time
h
DH13
Result
This rung copies the Hex values in DH11 and DH13 to DS40, and DS41, respectively.
Copy
Src
Des
Single
P11 Pedestal
h
DH11
P11 Decimal Value
i
DS40
Copy
Src
Des
Single
P12 SoftStart Time
h
DH13
P12 Decimal Value
i
DS41
_Always_ON
b
SC1
17
END
18
SR44 Series Soft Starter User Manual
1st Ed, Rev B 07/31/2019
6–24
Содержание Stellar SR44
Страница 1: ...STELLAR SR44 SOFT STARTER USER MANUAL SR44 M WO 1st Edition Revision B...
Страница 2: ...BLANK PAGE SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019...
Страница 6: ...SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019 w 4 BLANK PAGE...
Страница 8: ...BLANK PAGE SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019...
Страница 12: ...Table of Contents BLANK PAGE SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019 t 4...
Страница 20: ...Chapter 1 Mechanical Installation BLANK PAGE SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019 1 8...
Страница 23: ...ELECTRICAL INSTALLATION 2 CHAPTER CHAPTER 2 2 CHAPTER BLANK PAGE 2 1c...
Страница 42: ...Chapter 2 Electrical Installation BLANK PAGE SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019 2 20...
Страница 66: ...Chapter 3 Applications BLANK PAGE SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019 3 22...
Страница 75: ...KEYPAD MENU ITEMS AND PARAMETERS CHAPTER 5 CHAPTER CHAPTER 5 BLANK PAGE 5 5 1c...
Страница 188: ...Chapter 6 Serial Communications BLANK PAGE SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019 6 34...
Страница 194: ...Chapter 7 Optional Hardware BLANK PAGE SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019 7 6...
Страница 224: ...Appendix B Applications Data BLANK PAGE SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019 B 6...
Страница 228: ...Appendix C Technical Hints BLANK PAGE SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019 C 4...
Страница 237: ...BLANK PAGE SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019...
Страница 238: ...SR44 Series Soft Starter User Manual 1st Ed Rev B 07 31 2019...