Activity for liamb

  • liamb liamb posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hi, did you end up finding a way to take 2's compliment?

  • liamb liamb posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Yep that was the case, PLC didn't support it.

  • liamb liamb posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I'm trying to add an alarm configuration object to a project in Codesys 3.5 SP12 however when I right click on application and try to add object there is no option for it. Is alarm configuration avaiblible on this service pack?

  • liamb liamb modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    I need to combine two 8 bit CANbus messages to 16 bits signed int then convert to decimal Decimal from signed 2's complement. I've been using the below code to read for new messages, combine them then assign them to a variable What is the best way to do this for from signed 2's complement? fbRxMessage351(Data := RxMessage351Data); IF fbRxMessage351.NewMessage THEN ChargeVoltage := (WORD_TO_REAL((RxMessage351Data[0]) + ((RxMessage351Data[1]) * 256))) * 0.1; END_IF

  • liamb liamb posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I need to combine two 8 bit CANbus messages to 16 bits signed int then convert to decimal Decimal from signed 2's complement. I've been using the below code to read for new messages, combine them then assign them to a variable What is the best way to do this for from signed 2's complement? fbRxMessage351(Data := RxMessage351Data); IF fbRxMessage351.NewMessage THEN ChargeVoltage := (WORD_TO_REAL((RxMessage351Data[0]) + ((RxMessage351Data[1]) * 256))) * 0.1; END_IF

1