Welcome to
Code Exchange

As embedded electronics continues to transform our lives, engineers around the globe are looking for ways to increase their coding chops. To help engineers meet this need, element14 has unveiled Code Exchange-- a place where engineers can help each other.

Blog - Post List
  • Encoders work! i2c bus operational

    Yesterday I learned that j1939 is Canbus, and that our FC6A Plus PLCs support this. Today I learned that when I plug in the PLC to the network the arduino looses control over the HMI, and the PLC doesnt have it. ..so theres some unknown networki...
  • Omega 5SRTC hack, and basic IO on arduino to HMI is operational.

    Im doing my on the Line challenge figured out the issues with the HMI Coms,geting readdy to write the helper functions to make the arduino PLC Server respond with the IO of the arduino.6% memory use on a Mega!well anyway all I have for pots are these...
  • Now possible to deploy IDEC PLC code from server of choice.

    Ok The Docs arent great, and I literally just figured this out 2 days ago. but if you have a ZLD file (the raw instruction files for IDEC PLC Code)it is now possible to deploy native instructions from the server of your choice.This includes Linu...
  • More FC6A library uses

    Yesterday I wanted to reconfigure all the PLCs in my lab with settings for a specific use case. This involves changing the values of 3 registers to make the PLCs listen to a server over DHCP. my lab has 12 FC6A plcs. and loading windLDR on ...
  • Conditional breakpoint in VSCode

    Sometimes, you want to have a breakpoint that only halts execution (breaks ) if a certain condition is true. My user story: I have a GPS design that receives data from satellites. Sometimes, that radio receives "not guaranteed" data. The dat...