Forum Home › Forums › Understanding the Software › Convert decimal to hexadecimal from web browser
- This topic has 41 replies, 4 voices, and was last updated 2 years, 3 months ago by
kcks66.
-
AuthorPosts
-
August 2, 2023 at 6:49 am #13144
manjey73Participantpublic byte[] NewFreq1() { string tes = Encoding.UTF8.GetString(CmdData); uint teu = uint.Parse(tes)*100; byte[] teb = BitConverter.GetBytes(teu); return new byte[] { 0x00, 0x01, teb[1], teb[0]}; }We use the Binary command type and enter 30 and so on in string mode (not Hex)
August 2, 2023 at 6:56 am #13145kcks66
ParticipantHi manjey73,
Meantime, I tried to use automatic control module to perform quite similar task. My task is straight forward this round.
I want an output channel send out value follow an input channel value; as example input channel 1001 has 15, I want the output channel 2001 to send out 15 also.
I configured automatic control module as below but failed to get the result as I expected.
Pls advice and thank you.
August 2, 2023 at 7:09 am #13147
manjey73ParticipantTrigger parameters check Value. Edit Value = 15
Command Value = 15August 2, 2023 at 7:17 am #13148kcks66
ParticipantHi manjey73,
Ah, I think I didn’t ask the question properly. I wish the output channel send out value always follow input channel as the input channel value is always changed from 1 to 100.
August 2, 2023 at 7:30 am #13149
manjey73ParticipantThen you probably need a trigger to change the channel and specify “Send command” in the command.
And if necessary, use the formula in the command to check the value for the range 0-100 and, if it goes beyond the range, return Double.NaN to cancel the command
August 2, 2023 at 9:18 am #13151kcks66
ParticipantHi manjey73,
Yes. I managed to copy the input channel to the output channel by using data change trigger.
Now can I store a hexadecimal number in an input channel? I want to copy the hexadecimal number in an input channel to an output channel?
Thank you.
August 2, 2023 at 9:40 am #13152
manjey73ParticipantOn the 5th version, there is no channel display as a HEX number, as in the 6th version. Most likely only using ASCII String with the corresponding transformations using formulas.
August 2, 2023 at 9:41 am #13153
manjey73ParticipantTip: upgrade to version 6, it is somewhat more flexible
August 2, 2023 at 9:52 am #13154kcks66
ParticipantHi manjey73,
Currently I am waiting for an publish of instruction steps on how to migrate from V5 to V6. I will definitely want to use V6.
August 2, 2023 at 9:57 am #13155
manjey73ParticipantIt seems there were publications on the Russian forum. As far as I understand, there is a difficulty only in transferring the database
August 2, 2023 at 11:36 am #13159
MikhailModeratorHi,
Currently I am waiting for an publish of instruction steps on how to migrate from V5 to V6. I will definitely want to use V6.
Please read this topic. Instruction is inside the archive.
August 2, 2023 at 12:35 pm #13163kcks66
ParticipantHi Mikhail,
Noted. Will give it a try.
-
AuthorPosts
- You must be logged in to reply to this topic.