i have download libnodave-0.8.4 for the communication between PLCs and Linux. Under the linux,i run the program testMPI ,and got the following result:
# ./testMPI --list -2 --mpi=3 /dev/ttyS0
setting MPI address of PLC to:3
daveListReachablePartners List length: 126
Device at address:0
Device at address:3
ConnectPLC
PLC FD0: 16815238
PLC FD4: 151060480
PLC FD8: 49665
PLC FD12: 0.000000
5 blocks of type OB
OB1 34 1
OB82 34 1
OB86 34 1
OB100 34 1
OB121 34 1
error 53774 = no block present.
4 blocks of type FC
FC1 34 1
FC2 34 1
FC3 34 1
FC4 34 1
1 blocks of type DB
DB1 34 5
9 blocks of type SDB
SDB0 34 7
SDB1 34 7
SDB2 34 17
SDB3 34 7
SDB4 34 7
SDB22 34 7
SDB122 34 7
SDB200 34 16
SDB2000 34 7
Now disconnecting
i couldn't got the meaning of this paragraph,and the PLC has 16 Inputs and 16 Outputs ,like I124.0-I125.7 .How can i do with these I/Os ,could i read or write these I/Os,just like change I124.0 from 0 to 1,and how?
And thanks!
# ./testMPI --list -2 --mpi=3 /dev/ttyS0
setting MPI address of PLC to:3
daveListReachablePartners List length: 126
Device at address:0
Device at address:3
ConnectPLC
PLC FD0: 16815238
PLC FD4: 151060480
PLC FD8: 49665
PLC FD12: 0.000000
5 blocks of type OB
OB1 34 1
OB82 34 1
OB86 34 1
OB100 34 1
OB121 34 1
error 53774 = no block present.
4 blocks of type FC
FC1 34 1
FC2 34 1
FC3 34 1
FC4 34 1
1 blocks of type DB
DB1 34 5
9 blocks of type SDB
SDB0 34 7
SDB1 34 7
SDB2 34 17
SDB3 34 7
SDB4 34 7
SDB22 34 7
SDB122 34 7
SDB200 34 16
SDB2000 34 7
Now disconnecting
i couldn't got the meaning of this paragraph,and the PLC has 16 Inputs and 16 Outputs ,like I124.0-I125.7 .How can i do with these I/Os ,could i read or write these I/Os,just like change I124.0 from 0 to 1,and how?
And thanks!