An example of usage of the X-NUCLEO-PLC01A1 Programmable Logic Controller Expansion Board.
Dependencies: X_NUCLEO_PLC01A1
PLC with the X-NUCLEO-PLC01A1 Expansion Board
This application provides a simple example of usage of the X-NUCLEO-PLC01A1 Programmable Logic Controller Expansion Board.
It shows how to use one PLC connected to the board, driving the status of each output channels according to the status of each input channels.
Revision 7:b7f0a8b4bf19, committed 2021-07-12
- Comitter:
- apalmieri
- Date:
- Mon Jul 12 14:19:31 2021 +0000
- Parent:
- 6:afd63b2b2d1a
- Commit message:
- Update example to be compliant with mbed-os 6
Changed in this revision
diff -r afd63b2b2d1a -r b7f0a8b4bf19 X_NUCLEO_PLC01A1.lib --- a/X_NUCLEO_PLC01A1.lib Thu Jul 13 16:44:30 2017 +0000 +++ b/X_NUCLEO_PLC01A1.lib Mon Jul 12 14:19:31 2021 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/ST/code/X_NUCLEO_PLC01A1/#de3fc5f5f065 +http://developer.mbed.org/teams/ST/code/X_NUCLEO_PLC01A1/#5d4336d0e372
diff -r afd63b2b2d1a -r b7f0a8b4bf19 main.cpp --- a/main.cpp Thu Jul 13 16:44:30 2017 +0000 +++ b/main.cpp Mon Jul 12 14:19:31 2021 +0000 @@ -138,6 +138,6 @@ ssrelay_handler(plc); #endif /* OUTPUT_CYCLING */ } - wait_ms(10); + ThisThread::sleep_for(chrono::milliseconds(10)); } }
diff -r afd63b2b2d1a -r b7f0a8b4bf19 mbed-os.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Mon Jul 12 14:19:31 2021 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#b1796dedeb8accde1cbaecf136fab96895e23d81
diff -r afd63b2b2d1a -r b7f0a8b4bf19 mbed.bld --- a/mbed.bld Thu Jul 13 16:44:30 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://mbed.org/users/mbed_official/code/mbed/builds/22da6e220af6 \ No newline at end of file