Hi Rick,
I found 58 FP DataSocket connections, all Booleans tied to individual PLC coils. You might have more if I missed a cluster or tab:
- 26 pub/subscribes to PLC coils spread between C202 and C267
- 32 subscribes to coils C0-C37 (on your Opto tab)
The maximum number of DS connections that gets mentioned in a common little blurb throughout NI's website/literature about when it would be good to drop using DataSocket to connect to OPC and switch to LV's DSC module varies from place to place. Usually it's 100, sometimes it's 50, and in one place I've seen 30. It is subjective and depends on your performance needs.
You can easily cut the number of DS connections to from 58 to 28; and with a bit a work it can go down to 3: just access all these Booleans from their DL 250 V-mem locations/registers.
The easy cut is for C0-C37. If you connect a U32 numeric to ALFG_DL1.VD40600, you get everything in 1 shot instead of 32. The U32 can easily be converted into a cluster for display purposes as shown in jpg (or you can just index the earlier Boolean array into 32 individ controls).
The cut to get from 28 to 3 DataSockets would require a change in all your writes to the other coils. The status of C200-C237 and C240-C2777 can be accessed as U32's from VD40610 and VD40612 respectively. Everytime you want to change one bit, you'd have to a bit of masking and write the whole 32bits (also in jpg). With a little bit of work in octal and hex, this can be programmed neatly in a subVI. I had one long ago for 16 bits.
No guarantee that your program will work with 3 DS though. It certainly is big. If you want other comments or have questions, just ask.
donald
=====================================================
Fading out. " ... J. Arthur Rank on gong."