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.

Files at this revision

API Documentation at this revision

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

X_NUCLEO_PLC01A1.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
--- 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
--- 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));
     }
 }
--- /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
--- 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