etherlab/plc_etherlab.c
changeset 2081 b1801bf4365c
parent 2079 49242019a9ca
child 2106 4ec3b833f2d5
equal deleted inserted replaced
2080:6d0d94cd0fe0 2081:b1801bf4365c
    47 /* Beremiz plugin functions */
    47 /* Beremiz plugin functions */
    48 int __init_%(location)s(int argc,char **argv)
    48 int __init_%(location)s(int argc,char **argv)
    49 {
    49 {
    50     uint32_t abort_code;
    50     uint32_t abort_code;
    51     size_t result_size;
    51     size_t result_size;
    52     int i, rtstatus;
    52     int rtstatus;
    53     
    53     
    54 	MstrAttach.masterindex = %(master_number)d;
    54 	MstrAttach.masterindex = %(master_number)d;
    55 
    55 
    56 	master = ecrt_request_master(MstrAttach.masterindex);
    56 	master = ecrt_request_master(MstrAttach.masterindex);
    57 	if (!master) return -1;
    57 	if (!master) return -1;