Matching address:
AC simulation volume 11 cid1=40 cid2=41
One AC screen two-way AC I is obtained from Baotou 7E
| Return 350 packet offset | content | Return to report address |
| 30-31 | Output current A | I+85~I+92 |
| 32-33 | Output current B | I+93~I+100 |
| 34-35 | Output current C | I+101~I+108 |
| 36-37 | 1 AC Phase A voltage | I+17~I+24 |
| 38-39 | 1 AC phase B voltage | I+25~I+32 |
| 40-41 | 1 AC phase C voltage | I+33~I+40 |
| 42-43 | 1 AC output frequency | I+41~I+48 |
| 44-45 | 2 AC phase A voltage | I+51~I+58 |
| 46-47 | 2 AC phase B voltage | I+59~I+66 |
| 48-49 | 2-channel AC phase C voltage | I+67~I+74 |
| 50-51 | 2 AC output frequency | I+75~I+82 |
Conversion method: DataBuf[0] DataBuf[1] DataBuf[2] DataBuf[3] DataBuf[4] DataBuf[5] DataBuf[6] DataBuf[7]
*10 Then sort
integerTemp[0] integerTemp[1]
Use the Round() function to perform rounding operations
AC switch quantity: cid1=40 cid2=43 Check the on-site data to get 6 bytes
Serial number | content | byte |
1 | The number of switches detected M=0 | 1 |
M+2 | Number of user-defined status P=3 | 1 |
M+3 | AC switching status (automatic E0H or manual E1H) | 1 |
M+4 | Lighting status (off E3H or on E2H) | 1 |
M+5 | Current working road number First (E4), Second (E5), Third (E6) | 1 |
| Return 350 packet offset | content | Return to report address |
| 6.1 | AC switching status | I+19~I+20 |
| 6.2 | Lighting status | I+21~I+22 |
Get 0 Manually get 1 Automatically get 0 Close Get 1 Work Add loop control problem error three times throw an error
The process of adding double bytes to single bytes {---------------------------------------------------------------------------------------------------------------- ------------------}{------------------------------------------------------------------------------------------------------------ ------------------}{------------------------------------------------------------------------------------------------------------ ---------------}{--------@param reAssign: Byte data obtained ------------------------ ------------}{-------2005-06-27 add by Fane----------------------------------------------- -------------------}PRocedure change2to1(input1,input2:byte;var reAssign: Byte);
Declare reAssign as var and pass parameters using reference method
Exchange alarm volume: cid1=40 cid2=44 Check the on-site data to get 24 bytes
Serial number | content | byte |
| Number of AC distribution systems on this screen M | 1 | |
| 1 input line/phase voltage AB/A | 1 | |
| 1 input line/phase voltage BC/B | 1 | |
| 1 input line/phase voltage CA/C | 1 | |
| 1 channel frequency | 1 | |
| 1-way detection fuse (or switch) number M | 1 | |
| 1 user-defined alarm number P=8 | 1 | |
| 1 user-defined byte | 8×1 | |
| 2-channel input line/phase voltage AB/A | 1 | |
| 2-channel input line/phase voltage BC/B | 1 | |
| 2-channel input line/phase voltage CA/C | 1 | |
| 2-channel frequency | 1 | |
| 2-way detection fuse (or switch) number M | 1 | |
| 2-way user-defined alarm number P=0 | 1 | |
| Phase A input current | 1 | |
| Phase B input current | 1 | |
| Phase C input current | 1 |
The first custom P=8 The second custom is 0 Note 20 20 Ignore