Attached is the block to use the ifm controllers with ED&D Switches and a sample config file for the EDD Switch. You will need to configure the transmit and receive message ID's based on your needs. This is compatible for firmware versions 5 and above. Not tested w/ 32 bit controller.
Libraries Used:
J1939_2_v050001
Controller Library v050001 (Can 2 transmit in extended mode)
For EDD on CAN 1:
J1939_1_v050001
CAN1_EXT_v050001
A custome data type is used for the colors of the switches. Available colors are:
OFF
RED
GREEN
BLUE
YELLOW
CYAN
WHITE
MAGENTA
Use these values for the inputs SWx_LED_TOP/BOTTOM.
EX: Use a SEL block to select between 'OFF' and 'GREEN' to toggle an LED based upon the input of the SEL statement. I left the block without this function so you have the ability to use more than 2 colors at a time.