[quote:b355df2098="apam"][code:1:b355df2098]
Str1 = Hex(h) ´bad
Cas = Val(str1) ´bad
'...
Str1 = Hex(m) ´bad
Tempword = Val(str1) ´bad
[/code:1:b355df2098][/quote:b355df2098]
First you convert to a Hex-string and then back, but you do it wrong, you need to use HexVal(), Val() will give a wrong result.
However, the more serious side-effect about disturbing a PWM isn't explained by this piece of code and wrong commands.
What I've said: "may lead then to a consequential error in your other code" likely applies to further code, you have to dug deeper.
↧