Skip to content
Snippets Groups Projects
Commit 267f30af authored by Florian Pose's avatar Florian Pose
Browse files

Neue Mini-Konfiguration.

parent 291ec899
No related branches found
No related tags found
No related merge requests found
...@@ -36,16 +36,14 @@ uint32_t k_pos; ...@@ -36,16 +36,14 @@ uint32_t k_pos;
uint8_t k_stat; uint8_t k_stat;
ec_field_init_t domain1_fields[] = { ec_field_init_t domain1_fields[] = {
{&r_ssi_input, "1", "Beckhoff", "EL5001", "InputValue", 0}, {NULL, "1", "Beckhoff", "EL1014", "InputValue", 0},
{&r_ssi_status, "1", "Beckhoff", "EL5001", "Status", 0}, {NULL, "2", "Beckhoff", "EL1014", "InputValue", 0},
{NULL, "2", "Beckhoff", "EL4132", "OutputValue", 0}, {NULL, "3", "Beckhoff", "EL1014", "InputValue", 0},
{NULL, "3", "Beckhoff", "EL3162", "InputValue", 0}, {NULL, "4", "Beckhoff", "EL1014", "InputValue", 0},
{r_4102, "4", "Beckhoff", "EL4102", "OutputValue", 0, 2}, {NULL, "5", "Beckhoff", "EL1014", "InputValue", 0},
{NULL, "5", "Beckhoff", "EL5001", "InputValue", 0}, {NULL, "6", "Beckhoff", "EL2004", "OutputValue", 0},
{NULL, "6", "Beckhoff", "EL1014", "InputValue", 0}, {NULL, "7", "Beckhoff", "EL2004", "OutputValue", 0},
{NULL, "#0xBEEF:7", "Beckhoff", "EL2004", "OutputValue", 0}, {NULL, "8", "Beckhoff", "EL2004", "OutputValue", 0},
{NULL, "8", "Beckhoff", "EL4132", "OutputValue", 0},
{NULL, "#48879:9", "Beckhoff", "EL4132", "OutputValue", 0},
{} {}
}; };
...@@ -61,8 +59,8 @@ void run(unsigned long data) ...@@ -61,8 +59,8 @@ void run(unsigned long data)
ecrt_domain_process(domain1); ecrt_domain_process(domain1);
// Prozessdaten verarbeiten // Prozessdaten verarbeiten
k_pos = EC_READ_U32(r_ssi_input); //k_pos = EC_READ_U32(r_ssi_input);
k_stat = EC_READ_U8(r_ssi_status); //k_stat = EC_READ_U8(r_ssi_status);
// Prozessdaten senden // Prozessdaten senden
ecrt_domain_queue(domain1); ecrt_domain_queue(domain1);
...@@ -74,8 +72,8 @@ void run(unsigned long data) ...@@ -74,8 +72,8 @@ void run(unsigned long data)
ecrt_domain_process(domain1); ecrt_domain_process(domain1);
// Prozessdaten verarbeiten // Prozessdaten verarbeiten
k_pos = EC_READ_U32(r_ssi_input); //k_pos = EC_READ_U32(r_ssi_input);
k_stat = EC_READ_U8(r_ssi_status); //k_stat = EC_READ_U8(r_ssi_status);
#endif #endif
if (counter) { if (counter) {
...@@ -83,8 +81,8 @@ void run(unsigned long data) ...@@ -83,8 +81,8 @@ void run(unsigned long data)
} }
else { else {
counter = ABTASTFREQUENZ; counter = ABTASTFREQUENZ;
printk(KERN_INFO "k_pos = %i\n", k_pos); //printk(KERN_INFO "k_pos = %i\n", k_pos);
printk(KERN_INFO "k_stat = 0x%02X\n", k_stat); //printk(KERN_INFO "k_stat = 0x%02X\n", k_stat);
} }
// Timer neu starten // Timer neu starten
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment