Posted 12 Mar 2022 Hi! I am new to plc-programming and i need few tips to finish my first project question 1: What is best way to convert bool's, lint, time and real into array? question 2: What i need to have for transferring that array into company's Http/web and how to do it? modem? Thanks for helping! Share this post Link to post Share on other sites
Posted 12 Mar 2022 Q1 - use the instruction ToAryByte to convert anything into a byte array. If you are just looking to make arrays of the said datatypes then assign the datatype LINT[16] and address them MyLINTArray[2] for example. Q2 - We need a lot more information here... I think the closest would be socket services (TCPSend for example) but that is more less raw data. You would need to format it beforehand. You would also need a connection to your company's servers - VPN, internet, etc. Are you maybe looking to serve up web pages from the PLC? Share this post Link to post Share on other sites
Posted 17 Mar 2022 On 12/03/2022 at 10:40 PM, photovoltaic said: Q1 - use the instruction ToAryByte to convert anything into a byte array. If you are just looking to make arrays of the said datatypes then assign the datatype LINT[16] and address them MyLINTArray[2] for example. Q2 - We need a lot more information here... I think the closest would be socket services (TCPSend for example) but that is more less raw data. You would need to format it beforehand. You would also need a connection to your company's servers - VPN, internet, etc. Are you maybe looking to serve up web pages from the PLC? On 12/03/2022 at 10:40 PM, photovoltaic said: Q1 - use the instruction ToAryByte to convert anything into a byte array. If you are just looking to make arrays of the said datatypes then assign the datatype LINT[16] and address them MyLINTArray[2] for example. Q2 - We need a lot more information here... I think the closest would be socket services (TCPSend for example) but that is more less raw data. You would need to format it beforehand. You would also need a connection to your company's servers - VPN, internet, etc. Are you maybe looking to serve up web pages from the PLC? Hi! Thanks for help! Our subcontractor will help me with Q2 Share this post Link to post Share on other sites