6/4/2007 6:44 AM | |
Posts: 2348 Rating:
|
In SCL you can use AT statement this way: tBoolArray: ARRAY [0..7] of BOOL; tByte: BYTE AT tBoolArray; |
3/17/2022 2:53 AM | |
Joined: 12/31/2018 Last visit: 4/27/2022 Posts: 1 Rating:
|
|
3/29/2022 3:54 PM | |
Joined: 6/24/2013 Last visit: 8/21/2025 Posts: 1693 Rating:
|
Hi Good news: Nothing to do in PLC apart od structuring bool tags together in data block (in packs of 32) - then use DINT tag in SCADA and local tags to split bits. 1. structure DB in the following way: STRUCT <machine part> H_BIT0 : Bool; // Bit 0 - put meaningful name for it
pack/unpack function. Example attached in the ZIP file. AttachmentCITECT_PACK.zip (681 Downloads) |
This contribution was helpful to
1 thankful Users |
Follow us on