https://github.com/epl-viz/convert-eds-xdd
Convert CANopen EDS to POWERLINK XDD
https://github.com/epl-viz/convert-eds-xdd
canopen cia eds ethernetpowerlink xdd
Last synced: 9 months ago
JSON representation
Convert CANopen EDS to POWERLINK XDD
- Host: GitHub
- URL: https://github.com/epl-viz/convert-eds-xdd
- Owner: epl-viz
- Created: 2017-02-21T22:16:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-14T15:40:13.000Z (over 8 years ago)
- Last Synced: 2025-06-21T17:18:07.936Z (about 1 year ago)
- Topics: canopen, cia, eds, ethernetpowerlink, xdd
- Language: Perl
- Homepage: https://metacpan.org/pod/Convert::EDS::XDD
- Size: 15.6 KB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
Awesome Lists containing this project
README
=pod
=encoding utf8
=head1 NAME
Convert::EDS::XDD - Convert CANopen EDS to POWERLINK XDD
=head1 SYNOPSIS
$ cpan Convert::EDS::XDD # install from CPAN
$ eds2xdd profile.eds > profile.xdd # Convert with the eds2xdd script
=head1 DESCRIPTION
EDS is an L based format specified by the CiA e.V. in order to describe CANopen devices. The Ethernet POWERLINK Standardization Group specifies an EDS-based L format for EPL devices.
This module takes in an EDS file or a string with its content and returns a XDD string. An L wrapper script is also installed into the C.
C is also available as a self-contained (fatpacked) script L.
=head1 LIMITATIONS
May not handle all details of the EDS. Pull requests and reports (L) are welcome.
=head1 METHODS AND ARGUMENTS
=over 4
=item eds2xdd($filename, [$encoding])
Here, the C<[]> indicate an optional parameter.
Returns the EDS' content as XML string on success or undef on error in file contents.
Function croaks if opening file fails.
C<$encoding> may be used to indicate the encoding of the file, e.g. C<'utf8'> or
C<'encoding(iso-8859-1)'>.
Do not add a prefix to C<$encoding>, such as C<< '<' >> or C<< '<:' >>.
=item eds2xdd_string($string)
Returns the EDS string as XML string
=back
=head1 GIT REPOSITORY
L
=head1 SEE ALSO
L
=head1 AUTHOR
Ahmad Fatoum C<< >>, L
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2017-2018 Ahmad Fatoum
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut