Moving 4 x BCD's into an Integer

reybar182

Member
Join Date
Sep 2015
Location
Melbourne
Posts
6
Hi,

I'm communicating with a generator controller via Modbus, and not sure how best to write the time to it.

The generator is expecting the following:

MSB1 =BCD(hour)
LSB1 = BCD(minute)
MSB2 =BCD(second)
LSB2 = 0

If I convert the RTC values to BCD, how would I go about concatenating them and sending it as a single 16 bit Integer via a write MSG instruction?

Thanks
 

Similar Topics

I'm a Siemens person, and this is one of my first AB programs. The customer wants everything programmed in Ladder. I have a lot of data (3...
Replies
14
Views
215
Hello, I have a compact Logix plc and I have been task with configuring alarms into our SCADA when an Analog signal stops moving. The analog...
Replies
6
Views
238
Hello, i am a beginner with a Siemens Logo 8 PLC. I would determine the direction of an object if it passes a whole cycle of 2 input sensors. See...
Replies
2
Views
180
Can an AOP be removed from Logix? I seem to have some version weirdness from an E&H AOP and I need to see if reinstalling the AOP will correct it.
Replies
5
Views
964
I'm making a meal of this, my brain's not in gear. Also, I'm new to S7 TIA/WinCC so excuse my ignorance... See redacted pic. Pressing F7 (SAVE...
Replies
10
Views
3,214
Back
Top Bottom