How to convert HEX numbers in Citect ?

PlcPro

Member
Join Date
Feb 2009
Location
Israel
Posts
7
Hi All.
I have a PLC connected to citect by modbus.I need to transfer a value in HEX from the PLC to the Citect, and to convert it to Time value or to Decimal numbers.
In the PLC the value represents Time entered by the user,like HH:MM.The PLC is Unitronics Jazz.
Thank's
:confused:
 
Hi All.
I have a PLC connected to citect by modbus.I need to transfer a value in HEX from the PLC to the Citect, and to convert it to Time value or to Decimal numbers.
In the PLC the value represents Time entered by the user,like HH:MM.The PLC is Unitronics Jazz.
Thank's
:confused:

Look up StrToHex or HexToStr in the Citect help file
 
It's working ! I gets the correct numbers.
Only now, how do i display it in time format ##:## and not in number format ##.## ?
:p
 
Nop, TimeSerial fails the compilation.:mad:

How have you used it ?

Whats the exact compile error it gives ?

I think you will need to strip your string into chunks and pass each part into the TimeSerial function, it needs all 3 fields to be valid.
 
I think I'm going to use StrLeft and StrRight to spleet the string to 2 parts, and display them with an : between....
 
Dear All,

I want to creat a citect scada 7.0 project for communication with TSX3721101 modicon plc. I have fixed a variable %MW50:06 for reset all alam in plc. But when i try to creat a variaber tag in citect, I found a error.

Let me know the way of variable writing in citect for communiction with modicon plc.

Regards,
Lokman
 
Read the manual. You just have to define the bit as a variable tag and attach it to a button. You then define in the button object what you want the bit write to do eg down - turn on - up - turn off.
 

Similar Topics

Hi I need to convert a DINT with HEX value e.g A0F15663 to a string with the same value 'A0F15663'. Any tips of good instructions to use ...
Replies
11
Views
3,388
I actually solved this, but I thought this info may help others. Condition which prompted this need: I was using a function provided to me by...
Replies
13
Views
3,753
Hey All, i have been fortunate enough to play around with an Applied Motion Products Servo Drive SV200 with 100 watt/ 24vdc congif. I managed...
Replies
2
Views
1,881
I'm trying to display a Allen Bradley Controller Serial Number that's in HEX to String for my SCADA to display. Any ideas?
Replies
3
Views
2,847
Good morning, I am running a controllogix and I am connected to a hydrocarbon gas alalyzer over an EWEB module. I am picking up a Hex number...
Replies
40
Views
13,927
Back
Top Bottom