Making array and reading single values


I am little new to node red.I dont know javascript
I want to read 8 bits from PLC and the for each single bit status is to be shown on LED display.
But I dont know how to do it. picture shows the exmaple how its to be formed

Please tell what function should I write to store all bits in a array and then read each bits

Thanking you

Add a debug node showing us what you are getting from the OPC node and tell us what you want the LEDs to show for that data.